Installation & Setup
- # yum install mod_dav_svn subversion
- # vim /etc/httpd/conf.d/subversion.conf
- make sure 2 lines upper this config file.
- LoadModule dav_svn_module modules/mod_dav_svn.so
- LoadModule authz_svn_module modules/mod_authz_svn.so
- modify these
- <Location /repos> # root path for http connection on /svn
- DAV svn # svn = connection method
- SVNPath /var/www/svn/repos # local svn path
- AuthType Basic #
- AuthName "Subversion repos" # show login information
- AuthUserFile /etc/svn-auth-conf # account & password located file
- Require valid-user # svn login required password
- #Satisfy Any # svn login password no required
- </Location>
Create first user
- # htpasswd -cm /etc/svn-auth-conf yourusername
Create other users
- # htpasswd -m /etc/svn-auth-conf anotherusername
Establish version control area
- # mkdir /var/www/svn
- # cd /var/www/svn
- # svnadmin create mts
- # chown -R apache.apache mts
- # service httpd restart
沒有留言:
張貼留言