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/