# yum install mod_dav_svn subversion
2. Configure
2.1 Configure /etc/httpd/conf.d
# vim /etc/httpd/conf.d/subversion.conf
#
# Needed to do Subversion Apache server.
LoadModule dav_svn_module modules/mod_dav_svn.so
# Only needed if you decide to do "per-directory" access control.
LoadModule authz_svn_module modules/mod_authz_svn.so
#
# Example location directive.
#
<Location /svn/repos>
DAV svn
SVNPath /var/www/svn/repos
#
# # Limit write permission to list of valid users.
# <LimitExcept GET PROPFIND OPTIONS REPORT>
# # Require SSL connection for password protection.
# # SSLRequireSSL
#
AuthzSVNAccessFile /etc/svn-acl-conf
AuthType Basic
AuthName "Subversion repos"
AuthUserFile /etc/svn-auth-conf
Require valid-user
# </LimitExcept>
</Location>
2.2 Creating your first user
#
# htpasswd -cm /etc/svn-auth-conf root
#
2.3 Configuring ACL
#
# vim /etc/svn-acl-conf
[repos:/]
user = access
[groups]
staff = root
#
3. Create repository root directory
# cd /var/www
# mkdir svn
# cd /var/www/svn
# svnadmin create repos
# chown -R apache:apache repos
# service httpd restart
#
4. Starting Svn Service as a deamon
# svnserve -d -r /var/www/svn/repos
5. Referencias
Nenhum comentário:
Postar um comentário