SOURCE installation Linux Apache integrated Subversion research

Source: Internet
Author: User

    1. Install Apache Subversion separately

      http://my.oschina.net/u/234018/blog/297849

      http://my.oschina.net/u/234018/blog/298292

    2. Modify Apache Configuration

      2.1 Mod_authz_svn.so and mod_dav_svn.so copied to apache/usr/local/apache/modules/

[[email protected] libexec]# Cd/usr/local/subversion/libexec/[[email protected] libexec]# ll total dosage 3968-rwxr-xr-x 1 root ro OT 197099 August 5 13:55 mod_authz_svn.so-rwxr-xr-x 1 root root 3860365 August 5 13:55 mod_dav_svn.socp/usr/local/subversion /libexec/mod_authz_svn.so/usr/local/apache/modules/cp/usr/local/subversion/libexec/mod_dav_svn.so/usr/local/ apache/modules/

2.2 Modifying the configuration httpd.conf file

Remove Comments LoadModule dav_module modules/mod_dav.soloadmodule dav_fs_module modules/mod_dav_fs.so new plus loadmodule dav_svn_ Module Modules/mod_dav_svn.soloadmodule authz_svn_module modules/mod_authz_svn.so file end plus this <location/home/devtac/ svn/case> DAV SVN svnpath/home/devtac/svn/case</location>

PS: Be sure to check that there are no corresponding. So files in the/usr/local/apache/modules/


Apache configuration to this end

3 Subversion Configuration

3.1 Export the repository to the Apache web directory

SVN checkout--username=admin--password=admin file:///home/devtac/svn/case//usr/local/apache/htdocs/


3.2 Modifying the hook file

[[email protected] modules]# cd /home/devtac/svn/case/hooks/[[email protected]  Hooks]# pwd/home/devtac/svn/case/hooks[[email protected] hooks]# ll Total Dosage  40-rwxrwxrwx  1 root root 2215 8 Month    6 10:32 post-commit-rw-r--r-- 1  root root 1977 8 Month    5 16:36 post-commit.tmpl-rw-r--r-- 1  root root 1638 8 Month    5 16:36 post-lock.tmpl-rw-r--r-- 1  root root 2289 8 Month    5 16:36 post-revprop-change.tmpl-rw-r--r--  1 root root 1567 8 Month    5 16:36 post-unlock.tmpl-rw-r--r--  1 root root 3426 8 Month    5 16:36 pre-commit.tmpl-rw-r--r--  1 root root 2410 8 Month    5 16:36 pre-lock.tmpl-rw-r--r--  1 root root 2786 8 Month    5 16:36 pre-revprop-change.tmpl-rw-r--r-- 1 root root  2100 8 Month    5 16:36 pre-unlock.tmpl-rw-r--r-- 1 root root 2780  8 Month    5 16:36 start-commit.tmplcp post-commit.tmpl  post-commitpost-commit  file End plus svn=/usr/local/subversion/bin/svn               #svn  command directoryWEB=/usr/local/apache/htdocs                    #apache   htdoc directory$svn update --username admin --password admin $ Web file modification end gives execute permission chmod 777 post-commit

SVN Configuration Modification Complete

3.2 Execute Post-commit Error

svn:E155036:Please See the ' SVN upgrade ' command
svn:E155036:The working copy at ' E:\we '
is too old (format ten) to work with Client version ' 1.8.9 (r1591380) ' (expects F
ormat 31). You need to upgrade the working copy first.

Method:

[Root@localhost hooks]# cd/usr/local/apache/htdocs/

[Root@localhost htdocs]#/USR/LOCAL/SUBVERSION/BIN/SVN Upgrade


And then we'll do the post-commit.

Related Article

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.