CentOS5.5 install the php_svn module to use PHP to submit files to SVN

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.