Install and configure a ready for use subversion based on fedora
1.install subversion.
yum install subversion
2.install httpd.
yum install httpd
3.install web modules.
yum install mod_dav_svn
4.create the target dir.
mkdir -p /opt/svn/repos
5.change the owner and group.
chown -R apache:apache /opt/svn/repos/
6.create the repo you need.
svnadmin create /opt/svn/repos/docs
svnadmin create /opt/svn/repos/elegantiz
7.create the apache2 configration file for subversion
vim /etc/httpd/conf.d/subversion.conf
#add content blow:
LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so
<Location /repos>
DAV svn
SVNParentPath /opt/svn/repos/
#
# # Limit write permission to list of valid users.
# <limitexcept>
# # Require SSL connection for password protection.
# # SSLRequireSSL
#
AuthType Basic
AuthName "Authorization Realm"
AuthUserFile /etc/svn-auth-file
Require valid-user
AuthzSVNAccessFile /etc/svn-access-file
# </limitexcept>
</Location>
8.create and add some user to svn-auth-file.
htpasswd -cm /etc/svn-auth-file user_a
htpasswd -m /etc/svn-auth-file user_b
9.grant the permission to the user.
vi /etc/svn-access-file
#add content blow:
[docs:/]
user_a=rw
user_b=r
[elegantiz:/]
user_a=rw
user_b=r
10.get ready to use.
/etc/init.d/httpd restart
yum install subversion
2.install httpd.
yum install httpd
3.install web modules.
yum install mod_dav_svn
4.create the target dir.
mkdir -p /opt/svn/repos
5.change the owner and group.
chown -R apache:apache /opt/svn/repos/
6.create the repo you need.
svnadmin create /opt/svn/repos/docs
svnadmin create /opt/svn/repos/elegantiz
7.create the apache2 configration file for subversion
vim /etc/httpd/conf.d/subversion.conf
#add content blow:
LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so
<Location /repos>
DAV svn
SVNParentPath /opt/svn/repos/
#
# # Limit write permission to list of valid users.
# <limitexcept>
# # Require SSL connection for password protection.
# # SSLRequireSSL
#
AuthType Basic
AuthName "Authorization Realm"
AuthUserFile /etc/svn-auth-file
Require valid-user
AuthzSVNAccessFile /etc/svn-access-file
# </limitexcept>
</Location>
8.create and add some user to svn-auth-file.
htpasswd -cm /etc/svn-auth-file user_a
htpasswd -m /etc/svn-auth-file user_b
9.grant the permission to the user.
vi /etc/svn-access-file
#add content blow:
[docs:/]
user_a=rw
user_b=r
[elegantiz:/]
user_a=rw
user_b=r
10.get ready to use.
/etc/init.d/httpd restart