1. Install Package # Yum Install mod_dav_svn Subversion 2. Subversion Apache config, # vi/etc/httpd/conf.d/subversion.conf LoadModule dav_svn_module modules/mod_dav_svn.so Load Module Authz_svn_module modules/mod_authz_svn.so
<Location/repos> DAV svn svnparentpath/var/www/svn/repos <limitexcept get PROPFIND OPTIONS report> AuthType Basic authname "Subversion repos" authuserfile/etc/svn-auth-conf Require Valid-user & Lt;/limitexcept> </Location>
3. Configure User # htpasswd-cm/etc/svn-auth-conf yourusername new Password:re-type new password:adding for User YourUserName 4. Configure Repository # cd/var/www/# mkdir SVN # cd SVN # mkdir Repos # svnadmin Create MyProject # chown-r Apache.apach E MyProject #/sbin/service httpd restart 5. Test Repository 5.1 Access http://<server_name>/repos/myproject 5.2 svn Co http://<server_name>/repos/ MyProject 6. It ' s conventional to have/trunk,/branches, And/tags subdirectories for each project. # svn mkdir http://<server_name>/repos/myproject/trunk # svn mkdir http://<server_name>/repos/myproject/ Branches # SVN mkdir http://<server_name>/repos/myproject/tags