Ajout d’un utilisateur:
htpasswd -m /etc/svn-auth-accounts jack
Ajout d’un nouveau projet (repo)
[root@localhost ~]# mkdir /var/www/svn [root@localhost ~]# cd /var/www/svn/ [root@localhost svn]# svnadmin create repo [root@localhost svn]# chown -R apache.apache repo/
Installation
yum install httpd subversion mod_dav_svn
[root@localhost ~]# vi /etc/httpd/conf.modules.d/10-subversion.conf #Alias /svn /var/www/svn <-- commenter cette ligne sous CentOs 7! <Location /svn> DAV svn SVNParentPath /var/www/svn/ AuthType Basic AuthName "SVN Repository" AuthUserFile /etc/svn-auth-accounts Require valid-user </Location>
htpasswd -cm /etc/svn-auth-accounts utilisateur
Creer un repo!
[root@localhost ~]# systemctl restart httpd.service [root@localhost ~]# systemctl enable httpd.service