Comments on How To Install And Use SVN With Apache dav_svn On Ubuntu 14.04

How to Install and Use SVN with apache dav_svn on Ubuntu 14.04 This tutorial explains the process of installing and using SVN on Ubuntu 14.04 as per steps outlined below. Subversion is a popular open source version control system that enables users to record the history of source files and documents, and manage files and directories over a period of time. It is akin to a tree of files being placed into a central repository on the lines of a regular file server, barring that each modification made to these files and directories is always remembered.

7 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: Anto Daniel

After adding this 2 entries in apache2.conf. I got this error

DAV svn SVNParentPath /home/svn

ubuntu@svn:~/sample$ sudo service  apache2 restart * Restarting web server apache2   ...fail! * The apache2 configtest failed.Output of config test was:AH00526: Syntax error on line 229 of /etc/apache2/apache2.conf:DAV not allowed hereAction 'configtest' failed.The Apache error log may have more information.{noformat}

 

 

By: Anto Daniel

I got this error after adding 2 entries at the end of line in apache2.conf

DAV svn SVNParentPath /home/svn

$ sudo service  apache2 restart * Restarting web server apache2   ...fail! * The apache2 configtest failed.Output of config test was:AH00526: Syntax error on line 229 of /etc/apache2/apache2.conf:DAV not allowed hereAction 'configtest' failed.The Apache error log may have more information.

By: Anto Daniel

I got this error after adding 2 entries at the end of line in apache2.conf

DAV svn SVNParentPath /home/svn

$ sudo service  apache2 restart * Restarting web server apache2   ...fail! * The apache2 configtest failed.Output of config test was:AH00526: Syntax error on line 229 of /etc/apache2/apache2.conf:DAV not allowed hereAction 'configtest' failed.The Apache error log may have more information.

By: Anto Daniel

Found out the solution. It should under Location tag in apache

<Location /svn> DAV svn SVNParentPath /home/svn </Location?

By: Augustine

There are issues.

To make this work on Ubuntu 12.04

* Don't write anyting into '/etc/apache2/apache2.conf'  - it will not work.

Instead, add

<Location /svn>DAV svn SVNParentPath /home/svn  AuthType Basic  AuthName "augustine"  AuthUserFile /etc/subversion/passwd  Require valid-user</Location>

DAV svn

SVNParentPath /home/svn

AuthType Basic

AuthName "My SVN Repositories"

AuthUserFile /etc/svn-auth

Require valid-user

</Location>

to /etc/apache2/mods-available/dav_svn.conf

// Then restart apache

// Don't forget to change permission of the repository to R+W

$ sudo chmod -R 777 /home/svn   // Add Read + Write permission

 

Now it will work!!!!

 

DAV svn SVNParentPath /home/svn AuthType Basic AuthName "My SVN Repositories" AuthUserFile /etc/svn-auth Require valid-user

 

 

By: SteveO

@Augustine's method may well work, but I think the intent is that you edit the file /etc/apache2/mods-enabled/dav_svn.conf

In the modern linux fashion, the configuration options are documented and a sample is provided.  You will need to uncomment lines and change them as necessary for your installation.

Thanks for the how-to and the helpful comments from all.

 

By: UserV

svnadmin create /home/svn/test -m 'initial project structure'

svnadmin: invalid option character: mType 'svnadmin help' for usage.