go to  ForumEasy.com   
JavaPro
Home » Archive » Message


[Email To Friend][View in Live Context][prev topic « prev post | next post » next topic]
  Configure Apache with Subversion
 
Subject: Configure Apache with Subversion
Author: Linux
In response to: Create SVN repository and users
Posted on: 11/04/2017 05:43:20 AM


First enable the required Apache modules

$ sudo a2enmod dav
$ sudo a2enmod dav_svn


$ sudo nano /etc/apache2/mods-enabled/dav_svn.conf


<Location /svn>

   DAV svn
   SVNParentPath /var/lib/svn

   AuthType Basic
   AuthName "Subversion Repository"
   AuthUserFile /etc/apache2/dav_svn.passwd
   Require valid-user
     
</Location>


Restart Apache
$ sudo systemctl restart apache2


or

$ sudo service apache2 restart


Now you should be able to access from browser by:
http://10.11.12.13/svn/xyz/


 

> On 11/04/2017 05:40:30 AM Linux wrote:


Repository xyz:
$ sudo mkdir -p /var/lib/svn/
$ sudo svnadmin create /var/lib/svn/xyz          <-- create repository named 'xyz'
$ sudo chown -R www-data:www-data /var/lib/svn   <-- change owner
$ sudo chmod -R 775 /var/lib/svn


Users
$ sudo htpasswd -cm /etc/apache2/dav_svn.passwd admin  <-- admin
$ sudo htpasswd -m /etc/apache2/dav_svn.passwd user1   <-- user1
$ sudo htpasswd -m /etc/apache2/dav_svn.passwd user2   <-- user2





References:

 


 
Powered by ForumEasy © 2002-2022, All Rights Reserved. | Privacy Policy | Terms of Use
 
Get your own forum today. It's easy and free.