This article original from Http://blog.csdn.net/voipmaker reprint annotated source.
The general company will build its own code warehouse, such as Svn,git, this article describes if you build the SVN server from the top of the CentOS
1. Install Apache SVN module and SVN
Yum Install MOD_DAV_SVN Subversion
2. Configure the SVN configuration file
Vim/etc/httpd/conf.d/subversion.conf
<Location/repos> DAV svn svnparentpath/var/www/svn authtype Basic authname "Authorization Realm " authuserfile/etc/svn-pass Require valid-user</location>
The above path can be modified according to your own situation
3. Add SVN users
Htpasswd-m/etc/svn-pass TestUser
Add user passwords as prompted
4. Create SVN directories and warehouses
Mkdir/var/www/svncd/var/www/svnsvnadmin Create Test_projectchown apache:apache test_project-rchcon-r-T Httpd_ sys_content_t /var/www/svn/test_projectchcon-r-t httpd_sys_rw_content_t /var/www/svn/test_project
5. Restart Apach, enter on the browser
Http://ip/repos/test_project will prompt for username and password, svn client can also download code.
Build your own SVN code hosting service