OpenSUSE 11.1 – Subversion server + Apache2
If you would like know how to install subversion and create new subversion repository in OpenSUSE 11.1 this post is for you.
Content:
Installation of subversion server |
Top |
- We have to install subversion and apache2 packages as the first step.
Run console and run command:
sudo /sbin/yast -i subversion-server subversion apache2 apache2-doc apache2-prefork libapr1 libapr-util1 neon - We enable webdav and webdav-svn modules in apache configuration. It allow browse SVN repository by browser. Please run these commands:
sudo a2enmod dav
sudo a2enmod dav_svn
- We have to create group and user svn for manipulation with subversion repository. Run these commands:
sudo groupadd -r svn
sudo useradd -r -g svn -d /srv/svn -s /bin/false svn - Now is time for creation of folder where files send to subversion-server will be stored. You can modify path as you want my chose is “/home/SVN”
sudo mkdir -p /home/SVN - We have to edit file “/etc/apache2/conf.d/subversion.conf”. I use will use nano for edit of this file. (if you don’t have nano installed you can do it by command
sudo /sbin/yast -i nano)
sudo nano /etc/apache2/conf.d/subversion.conf - Modify the configuration file. I deleted complete content and put in configuration below. You have to modify only attributes “
” and “SVNParentPath /home/SVN”. There is my configuration file:
# Repository with URL http://your_url/svn
# Free read access restricted commit access
DAV svn
SVNParentPath /home/SVN
SVNListParentPath On
# Limit write permission to list of valid users.
# Require SSL connection for password protection.
# SSLRequireSSL
AuthType Basic
# Message to give to the committer
AuthName "Write access requires a password"
# File listing users with write (commit) access
AuthUserFile /srv/svn/user_access/svn_passwdfile
Require valid-user
- We create now file for store passwords. Run these commands:
sudo mkdir /srv/svn
sudo mkdir /srv/svn/user_access
sudo touch /srv/svn/user_access/svn_passwdfile
sudo chown root:www /srv/svn/user_access/svn_passwdfile
sudo chmod 640 /srv/svn/user_access/svn_passwdfile
- We can add user to svn acces by command (modify word “user_name” by real user name)
sudo htpasswd2 /srv/svn/user_access/svn_passwdfile user_name - Restart apache server.
sudo rcapache2 restart - Create repository by command (please modify path “/home/SVN/myNewProject” to your path to subversion folder)
sudo svnadmin create /home/SVN/myNewProject - Modify permissions for folder what you created in previous step.
sudo chown -R wwwrun:www /home/SVN/myNewProject{db,locks}
sudo chown wwwrun:www /home/SVN/myNewProject
- OpenSUSE 11.1 – VMware Server 2
- JBoss 5.1 AS JDK6 – JBoss ESB installation
- My TOP plugins for Eclipse JEE
- Installation of JBoss AS 5.1 on Fedora Core 13
- OpenSUSE 11 32bit – VMware Player
- JBoss 5.1 AS JDK6 – JBoss RiftSaw – BPEL installation
Creation of new subversion repository and finishing configuration |
Top |
Related posts:
Vladislav Korecký @ 9 April 2009
English
Česky


dobry den, postupoval som podla vaseho navodu,
ale pri kroku :sudo rcapache2 restart mi vyskoci chybova hlaska :
linux-67fp:/etc/apache2/conf.d # sudo rcapache2 start
Starting httpd2 (prefork) Syntax error on line 2 of /etc/apache2/conf.d/subversion.conf:
DAV not allowed here
The command line was:
/usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
failed
neviete mi poradit ako to fixnut?
Narazil jsem na stejny problem. Resenim se ukazalo byt uzavrit instrukce v subversion.comnf do
DAV svn
…… etc….
ehm <Location /svn>
….
</Location>
Jen bych trochu poopravil poslední dva příkazy:
sudo chown -R wwwrun:www /home/SVN/myNewProject/{db,locks}
sudo chown wwwrun:www /home/SVN/myNewProject
Děkuji za upozornění, opraveno.