...
Code Block |
---|
sudo apt-get install libapache2-svn |
Enable To check if Web-Dav is enabled run the 2 following commands
Code Block |
---|
sudo a2enmod dav
sudo a2enmod dav_svn |
Before creating repositories users and a group must be defined to have access to create or it will not work
so we add the group subversion and the user www-data which is what apache uses
Code Block |
---|
sudo mkdir /var/svn-repos
sudo addgroup --gid 3003 subversion
sudo useradd -d /home/www-data/ -m -g subversion -u 2003 -c "svn user" -s /bin/bash www-data
sudo chown -R www-data:subversion /var/svn-repos/*
sudo chmod -R 750 /var/svn-repos/* |
Creating Repositories
First go to or create the directory you want to create the repositories in for this example we've created the svn-reps directory in /var/
...
Code Block |
---|
#How to create an FSFS-backed repository svnadmin create --fs-type fsfs /var/svn-repsrepos/project_alpha #How to create a Berkeley-db-backed repository svnadmin create --fs-type bdb /var/svn-repsrepos/project_omega |
The repositories directory needs proper permissions for apache and other users
...