sudo apt-get install subversion libapache2-svn
sudo svnadmin create /svn <-- use complete file path , no need to cd to the specific folder sudo gedit /etc/apache2/mods-enabled/dav_svn.conf in gedit :
( Location ) <-- the ( ) should be < > , blogger don't let me input that
DAV svn
(option1)SVNPath /svn <-- be careful, if u just want to test the respiratory first, use this (option2)SVNParentPath /svn
AuthType Basic AuthName "Subversion Repository"
AuthUserFile /etc/apache2/dav_svn.passwd
Require valid-user
< / Location >
------Create user and password for visiting the respiratory-------
sudo htpasswd -cm /etc/apache2/dav_svn.passwd guest01 <-can be htpasswd2 in other linux version
sudo /etc/init.d/apache2 restart
No comments:
Post a Comment