Access SVN through apache in CentOS

Source: Internet
Author: User

Note: We assume that SVN has been successfully installed on CentOS and can be accessed normally.

 

Install the SVN module under Apache:

Yum install httpd-devel subversion mod_dav_svn mod_auth_mysql

Confirm that the svn module has been installed: mod_dav_svn


# Cd/etc/httpd/modules <br/> # ls | grep svn <br/> mod_authz_svn.so <br/> mod_dav_svn.so

(If there are two files above, the module is successfully installed)

 

Configure/etc/httpd/conf/httpd. conf

(Httpd installation directory, usually/etc/httpd or/usr/local/appache2)

In the Apache configuration file httpd. in conf (the default path is/usr/local/apache2/conf), The LoadModule command has been used to load the module (if not, manually add it). the syntax of the LoadModule command is very simple, it is to map a named module to the location of the shared link library on the disk:
LoadModule dav_svn_module modules/mod_dav_svn.so

 

Test whether Apache can be started properly:

# Vim/etc/httpd/conf/httpd. conf-Edit what you need and save the file <br/> # service httpd start <br/> # chkconfig httpd on
 
Access: http: // localhost in a browser

If you can see the Apache page, it indicates that Apache has started properly.

 

Reference: http://blog.sn00py.cn/2009/04/%E5%9C%A8centos%E4%B8%8B%E5% AE %89%E8%A3%85svn/

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.