Subversion Server on CentOS 5

La seguente guida è una sintesi del documento originale consultabile al link

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/
LoadModule authz_svn_module   modules/

# 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

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