Configuring Subversion on Ubuntu
Hi Friends,
I am sharing method to configure Simple Subverion with Basic Authentication on Ubuntu.
To Install Subversion Open Terminal and Execute Following Commands :-
sudo apt-get install subversion libapache2-svn
Now Create Subversion repository in /svn (You can choose your own path)
sudo svnadmin create /svn
Give this permission to that /svn folder
sudo chown -R www-data:www-data /svn
Now We need to edit configuration file to add webDAV module :-
sudo vim /etc/apache2/mods-enabled/dav_svn.conf
The Location elements in configuration file dictates the root directory of subversion.
<Location /svn>
You have to uncomment The DAV line to Enable DAV Module:-
DAV svn (uncomment this line)
Now you have to set the same path which you created with svnadmin command
SVNPath /svn
To Enable Authentication you need to uncomment Following Three Lines:-
AuthType Basic
AuthName “Subversion Repository”
AuthUserFile /etc/apache2/dav_svn.passwd
To Create user on the repository use, execute following command:
sudo htpasswd2 -cm /etc/apache2/dav_svn.passwd <username>
(-c use for creating First time user and -m use for enctrypting your in md5 enctyption method)
Restart your apache2 service by executing this command:-
sudo /etc/init.d/apache2 restart
Now test your repository by this way :-
From Local PC :- http://localhost/svn
From Remote PC :- http://<your-subversion-computer-ip>/svn
Now If you want all user must be Authenticated for even Read-Access then add this line exact below AuthUserFile
Require valid-user
save & exit from File.
Restart Apache Service :-
sudo /etc/init.d/apache2 restart
You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.



















[...] Click on Below link to Continue Reading at Ask4 IT Solutions ( IT Solutions Provider India) Click on this link to continue reading :- http://blog.ask4itsolutions.com/2009/01/09/configuring-subversion-on-ubuntu/ [...]