Procedure
-
Install the subversion, apache2 and libapache2-svn
packages.
# apt-get install subversion apache2 libapache2-svn
-
Create an svn directory, at the root of your
system for example.
# mkdir /svn
-
Change the owner of the directory to the webserver user,
www-data by default.
# chown www-data:www-data /svn
-
Switch to www-data user.
# su -l www-data -s /bin/bash
-
Create a new SVN repository, my_repo for
example.
$ svnadmin create /svn/my_repo
-
Create a user and a password.
$ htpasswd -cmb /svn/passwd talend_admin secretpassword
-
Open the SVN configuration file.
# vi /etc/apache2/mods-enabled/dav_svn.conf
-
Update it as follows:
<Location /my_repo> DAV svn SVNPath /svn/my_repo AuthUserFile /svn/passwd Require valid-user AuthType basic AuthName "Subversion" </Location>
-
Restart Apache Subversion.
# /etc/init.d/apache2 restart
- If you have SELinux (Security-Enhanced Linux) enabled on your system, see Handling "permission denied" error on SELinux.