subversion

Subversion Server on CentOS 5

La seguente guida è una sintesi del documento originale consultabile al link http://wiki.centos.org/HowTos/Subversion

yum install mod_dav_svn subversion
cd /etc/httpd/conf.d/
nano subversion.conf

# Make sure you uncomment the following if they are commented out
LoadModule dav_svn_module     modules/mod_dav_svn.so
LoadModule authz_svn_module   modules/mod_authz_svn.so

# Add the following to allow a basic authentication and point Apache to where the actual
# repository resides.
<Location /repos>
        DAV svn
        SVNPath /var/www/svn/repos
        AuthType Basic
        AuthName “Subversion repos”
        AuthUserFile /etc/svn-auth-conf
        Require valid-user
</Location>

htpasswd -cm /etc/svn-auth-conf yourusername
htpasswd -m /etc/svn-auth-conf anotherusername
cd /var/www/
mkdir svn
cd svn
svnadmin create repos
chown -R apache:apache repos
/etc/init.d/httpd restart