Ubuntu Version: 14.04 LTS
Apache Version: apache2 2.4.7-1ubuntu4.1
SVN Version: 1.8.10 (r1615264)
1. Login as a normal user, and update ubuntu repositories
sudo apt-get update
2. download apache2 http server and SVN
sudo apt-get install subversion apache2 libapache2-svn apache2-utils
3. make a folder for saving SVN repositories
sudo mkdir -p /svn/4. Edit dav_svn.conf file
sudo nano /etc/apache2/mods-enabled/dav_svn.conf5. Our setting file
<Location /svn> DAV svn SVNParentPath /svn AuthType Basic AuthName "Subversion Repository" AuthUserFile /etc/subversion/passwd Require valid-user </Location>6. Build account and password for SVN
sudo htpasswd [-c] /etc/subversion/passwd username
*-c : create new passed file, and use for 1st create username/password!
Once you use this parameter, it will over-write old passwd file including old username/passwords!
Once you use this parameter, it will over-write old passwd file including old username/passwords!
7. Create SVN files for repository
sudo svnadmin create /svn/[repository name]
8. Set the permission to access those repositories
sudo chown -R www-data:www-data /svn
9. Restart Apache2 Server
sudo /etc/init.d/apache2 restart
10. check SVN is ready or not
URL: http://localhost/svn/[repository name]
open that URL in your browser and you also have to input the username/password that you just set up.
沒有留言:
張貼留言