To use SVN functions such as SVN_AUTH_PARAM_DEFAULT_USERNAME for the project, install the php_svn Extension Library.
PHP version: PHP 5.3.14 (php-v)
Operating system: CentOS release 5.5 (Final) (lsb_release-)
I. Compile and install php
II. Compile and install subversion
III. Compile and install php-svn
| The code is as follows: |
Copy code |
|
# Yum install subversion-devel neon-devel
# Yum install php-pear |
Download the source installation package from http://pecl.php.net/package/svnand decompress it to its directory.
| The code is as follows: |
Copy code |
#/Usr/local/php/bin/phpize
#. /Configure-with-svn =/usr/include/subversion-1/-with-svn-apr =/usr/lib64/APR-1/-with-php-config =/usr/ local/php/bin/php-config
# Make & make install
|
Check if svn. so is generated under/usr/local/php/lib/php/extensions/no-debug-non-zts-20090626/.
Then add extension = "svn. so" to php. ini.
Restart fastcgi.
You can see SVN options in phpinfo ().
Note:
/Usr/lib64/APR-1/for the location of the apr Directory found out, otherwise you need to install the first yum install apr.