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)
Comments
After adding this 2 entries in apache2.conf. I got this error
DAV svn SVNParentPath /home/svnubuntu@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}
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.
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.
Found out the solution. It should under Location tag in apache
<Location /svn> DAV svn SVNParentPath /home/svn </Location?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
@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.
svnadmin create /home/svn/test -m 'initial project structure'
svnadmin: invalid option character: mType 'svnadmin help' for usage.