There is plenty of documentation available on configuring SVN server. For the most that documentation is sufficient; but what is proven confusing is "
If you are struggling the chances are you are a novice and its not a question of "If's" and "but's" but getting a simple implementation up and running. If you are looking for advanced configuration options, this is not the page.
If you are smart enough to admit you are an idiot and you need the fix at the cost of your self-esteem, then this is the page for you.
Yup we are done. Hit your http://hostname/svn
You can take it a step futher with your authorization needs. This is a good resource: http://www.visualsvn.com/support/svnbook/serverconfig/pathbasedauthz/
errorcode=2 Could not open the requested SVN filesystem issues
"If you are struggling the chances are you are a novice and its not a question of "If's" and "but's" but getting a simple implementation up and running. If you are looking for advanced configuration options, this is not the page.
If you are smart enough to admit you are an idiot and you need the fix at the cost of your self-esteem, then this is the page for you.
- Ensure you have read the SVN setup guide https://help.ubuntu.com/community/Subversion
- Ensure your repo file System is owned by the process that runs Apache (apache2).
You can do the ps -ef | grep apache2, to see who owns the process. On an Ubuntu this will be www-data. So you WILL obey:
sudo chown -R www-data:www-data /pathToRepo/myRepo
sudo chmod -R g+rws pathToRepo/myRepo
Another thing to note is that myRepo is the folder with the conf, db sub folders. As a beginner it is confusing to know whats the SVNParentPath vs SVNPath. - Ensure you are modifying the right file. You do this by either configuring /etc/apache2/mods-available/dav_svn.conf or your default /etc/apache2/apache2.conf
Modify either one (not both, in your desperation you may have done this)
It is preferable to modify etc/apache2/mods-available/dav_svn.conf, unless you are more stubborn than curious. - Great, now we know where to modify, what do we modify next?
- SVNPath /pathToRepo/myRepo (and not SVNParentPath. Note that the SVNPath goes directly to your repo folder .. the one with conf sub-folder)
- You maybe curious if you got the default DAV svn wrong. Don't; just ignore it. It's fine. When things don't work, everything looks suspicious. Ignore this one and trust the default.
- AGAIN: Comment or remove anything to do with SVNParentPath. Experts will tell you; it depends on this or that. Don't listen to the "IF" and "BUT", remember that is why you are here. Follow on!
- Restart Apache with sudo /etc/init.d/apache2 restart
- Note: For authentication there is plenty of material available; one thing to caution is that once you have added the first user using sudo htpasswd -cm /etc/apache2/dav_svn.passwd user_name1; ensure you get rid of the "c" for subsequent users, or else it will replace not append.
Yup we are done. Hit your http://hostname/svn
You can take it a step futher with your authorization needs. This is a good resource: http://www.visualsvn.com/support/svnbook/serverconfig/pathbasedauthz/
Comments
Post a Comment