如果您安裝有問題,可以留言,歡迎評論。
Ubuntu 14.04.4 3.13.0-24-generic
apt-get update
apt-get install subversion apache2 libapache2-svn apache2-utils
mkdir /var/svn
cd /var/svn
svnadmin create php
svnadmin create python
chown -R root.root /var/svn
/etc/apache2/sites-available/subversion.conf
<Location /svn>
DAV svn
SVNParentPath /var/svn
AuthType Basic
AuthName "Subversion User Authentication "
AuthUserFile /etc/svn-users
Require valid-user
</Location>
step 5 Create SVN Users:
touch /etc/svn-users
htpasswd -c /etc/svn-users use1
htpasswd /etc/svn-users user2
Apache2 svn HTTP 405 Method Not Allowed解決方法:
在/etc/apache2/mods-available/dav_svn.conf
<Location /svn>
DAV svn
SVNParentPath /var/svn
AuthType Basic
AuthName "Subversion Repository"
AuthUserFile /etc/svn-users
<LimitExcept GET PROPFIND OPTIONS REPORT>
Require valid-user
</LimitExcept>
</Location>
可以checkout,但是不能commit,修改如下:
chown -R www-data:www-data /var/svn
如果您安裝有問題,可以留言,歡迎評論。
參考:https://bugs.launchpad.net/raspbian/+bug/1455657