Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

EA4 Pecl install SVN ( subversion )

Discussion in 'EasyApache' started by cPanelSteven, Oct 13, 2016.


Was this helpful with installing the PHP SVN module when the pecl install method failed?

  1. Yes

    1 vote(s)
  2. No

    0 vote(s)
  3. N/A

    0 vote(s)
  1. cPanelSteven

    cPanelSteven Technical Analyst Staff Member

    Oct 20, 2009
    Likes Received:
    Trophy Points:
    Recently it was noticed that the command "pecl install svn" just doesn't work for some reason. This could be because the module's header file needs to be updated in order to be compatible with the system's version of svn.

    All hope is not lost though. I found an easy workaround for the issue on github which should allow the module to get installed successfully.

    Disclaimer : If you aren't familiar with running commands via SSH as the root user you should consult with your systems administrator or datacenter for additional help. The below commands can only be performed as the root user or a system level administrator account.

    First ensure you have installed SVN via yum.

    yum install subversion subversion-devel
    Keep in mind that the below steps are tailored to PHP version 5.6 with EasyApache 4.

    cd /usr/local/src
    git clone
    cd php-svn
    ./configure --with-php-config=/opt/cpanel/ea-php56/root/usr/bin/php-config
    make install 
    Next enable it :

    cd /opt/cpanel/ea-php56/root/etc/php.d
    echo > svn.ini
    You can test if the module is loaded by running this command :

    /opt/cpanel/ea-php56/root/usr/bin/php -i |grep -i svn
    It should show the below output indicating that the module has been successfully installed.

    SVN revision => $Id: 14b80e175ed4d5bf11c890e1f30ea8225935b16c $ 
    svn svn support => enabled 
    svn client version => 1.7.14 
    svn extension version => 2.0 
    To apply the above steps to other PHP versions with EA4 you would need to do the following assuming you've already cloned the git repository from the above steps.

    cd /usr/local/src/php-svn 
    make clean
    ( replace $xx with your php version below. EA4 php versions are indicated with the two digit version starting with major version then minor version. An example of this would be $xx = 56 for php version 5.6)

    ./configure --with-php-config=/opt/cpanel/ea-php$xx/root/usr/bin/php-config
    make install 
    Next enable it ( remember to replace $xx with your php version ) :

    cd /opt/cpanel/ea-php$xx/root/etc/php.d
    echo > svn.ini
    Should be all set at this point.

    Best Regards,
    cPanelMichael likes this.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice