This tutorial is to setup the SVNServer from base using Apache2 in Ubantu only.
> sudo apt-get update
> sudo apt-get install subversion apache2 libapache2-svn apache2-utils
> sudo addgroup subversion
> sudo mkdir /home/svn
> sudo chown -R www-data:subversion /home/svn
> sudo chmod -R g+ws /home/svn
> sudo svnadmin create /home/svn/myWebsite
sudo vim /etc/apache2/mods-available/dav_svn.conf
& add the following entry at the end of file.
<Location /svn/myWebsite> DAV svn SVNPath /home/svn/myWebsite AuthType Basic AuthName "myWebsite subversion Repository" AuthUserFile /etc/subversion/passwd <LimitExcept GET PROPFIND OPTIONS REPORT> Require valid-user </LimitExcept> </Location>
sudo htpasswd -c /etc/subversion/passwd rajesh
sudo chown -R www-data:subversion /home/svn/myWebsite
sudo chmod -R g+rws /home/svn/myWebsite
sudo /etc/init.d/apache2 restart
sudo htpasswd /etc/subversion/passwd user1
sudo /etc/init.d/apache2 restart
All DONE.
Now you can access the SVN Server using….
http://uvo12exe3iancqqq622.vm.cld.sr/svn/myWebsite/
If you are still not able to open the url, that means you have IPtables services running and stopping you to access the server. For testing, you can stop theĀ sudo ufw stop
- Use of runtime variables to save into another variable using register in Ansible - September 6, 2018
- Ansible & Ansible Tower Variable Precedence Hierarchy - September 6, 2018
- How to use template in Ansible? - September 6, 2018