1. install Apache: Yum install httpd
2. Install SVN: Yum install mod_dav_svn Subversion
3. Configure SVN: Vim/etc/httpd/CONF. d/subversion. conf
<Location/SVN>
Dav SVN
Svnparentpath/home/SVN/Repo
Authtype basic
Authname "restricted access"
# File will be created by svnmanager, keep location in mind!
Authuserfile/home/SVN/CONF/passwdfile
Require valid-user
# Sslrequiressl
# File will be created by svnmanager, keep location in mind
Authzsvnaccessfile/home/SVN/CONF/accessfile
</Location>
4. Create a directory for storing repo and permission information: mkdir-P/home/SVN/repo/home/SVN/Conf
5. Create the svn permission information file: Touch/home/SVN/CONF/accessfile/home/SVN/CONF/passwdfile
6. install PHP: Yum install PHP
7. Download svnadmin: http://sourceforge.net/projects/ifsvnadmin/files/svnadmin-1.6.2.zip/download
8. Unzip svnadmin: unzip svnadmin-1.6.2.zip
9. Copy the project to the webserver directory: CP-R if. SVNAdmin-stable-1.6.2 // var/www/html/svnadmin
10. Authorization --- grant the Web Server user the permission to read and write the project.
Chmod-r 777/var/www/html/svnadmin/data/
Chown-r Apache: Apache/var/www/html/svnadmin/
11. Disable SELinux
Restart to take effect: Use the text editing tool to open/etc/SELinux/config and comment out SELinux = enforcing: # SELinux = enforcing = disabled
Effective immediately:/usr/sbin/setenforce 0 (disable SELinux immediately),/usr/sbin/setenforce 1 (enable SELinux immediately)
12. Start the webserver service: Service httpd restart
Build SVN server under centos