分页: 1 / 2
安装 subversion 指南
发表于 : 2005-09-09 15:16
由 oneleaf
sudo apt-get install subversion
sudo apt-get install libapache2-svn
sudo mkdir -p /svn
sudo svnadmin create /svn
sudo chown -R www-data:www-data /svn
编辑 /etc/apache2/mods-available/dav_svn.conf 打开仓库
sudo /etc/init.d/apache2 restart
完成!
如果你是通过squid代理出去的,请修改
/etc/squid/squid.conf
增加:
extension_methods REPORT MERGE MKACTIVITY CHECKOUT
发表于 : 2005-09-09 23:05
由 oneleaf
关于帐号管理使用
htpasswd2 -c /etc/apache2/dav_svn.passwd username
来创建一个新的帐号文件
使用
htpasswd2 /etc/apache2/dav_svn.passwd username
来增加用户。
因此它的帐号是与系统无关的方便管理。
发表于 : 2006-04-25 15:52
由 eexpress
按oneleaf的修改成这样。
/etc/apache2/mods-available/dav_svn.conf
代码: 全选
<VirtualHost *>
ServerAdmin webmaster@localhost
ServerName svn.exp.org
#ServerAlias svn.exp.org
#CustomLog /var/log/apache2/svn.exp.org-access.log combined
<Location />
DAV svn
SVNPath /home/exp/svn
AuthType Basic
AuthName "Subversion Repository"
AuthUserFile /etc/apache2/dav_svn.passwd
AuthzSVNAccessFile /etc/apache2/dav_svn.authz
<LimitExcept GET PROPFIND OPTIONS REPORT>
Require valid-user
</LimitExcept>
</Location>
</VirtualHost>
还执行了,
svnserve -d -T -r /home/exp/svn
http://127.0.0.1 显示成这样
代码: 全选
Index of /
Name Last modified Size Description
svn/ 25-Apr-2006 15:04 -
Apache/2.0.55 (Ubuntu) DAV/2 SVN/1.3.0 Server at 127.0.0.1 Port 80
而
http://svn.ubuntu.org.cn/ 显示是这样。
代码: 全选
Revision 351: /
home/
test/
Powered by Subversion version 1.2.0 (r14790
发表于 : 2006-04-25 15:56
由 oneleaf
只能将这个修改在 /etc/apache2/sites-enabled/default
/etc/apache2/mods-available/dav_svn.conf 这个文件不要修改。
格式完全不同,不敢改了。
发表于 : 2006-04-25 16:35
由 eexpress
/etc/apache2/sites-enabled$ ll
总计 0
lrwxrwxrwx 1 root root 36 2006-04-25 14:02
000-default -> /etc/apache2/sites-available/default
$ cd /etc/apache2/sites-available/
$ sudo vi default
代码: 全选
NameVirtualHost *
<VirtualHost *>
ServerAdmin webmaster@localhost
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
# Uncomment this directive is you want to see apache2's
# default start page (in /apache2-default) when you go to /
#RedirectMatch ^/$ /apache2-default/
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
ServerSignature On
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
</VirtualHost>
发表于 : 2006-04-25 17:58
由 oneleaf
就是修改这个。
发表于 : 2006-04-26 13:36
由 eexpress
修改了,不知道合oneleaf心意不

。反正我的是
代码: 全选
Forbidden
You don't have permission to access / on this server.

不知道这个是不是要设置。
发表于 : 2006-04-26 19:45
由 eexpress
viewtopic.php?t=3517&highlight=svn+apache
代码: 全选
在Apache2配置文件/etc/apache2/apache2.conf中新建一个虚拟主机,并将它指向/home/svn。配置信息节选:
<Location /faq>
DAV svn
SVNPath /home/svn/faq
AuthType Basic
AuthName "Documentation Team Repository"
AuthUserFile /etc/subversion/passwd
<LimitExcept GET PROPFIND OPTIONS REPORT>
Require valid-user
</LimitExcept>
</Location>
发表于 : 2006-04-29 9:34
由 greenwoodboy
我配置了一个,能check out ,但不能提交
发表于 : 2006-05-16 10:31
由 fuqiang
权限控制
发表于 : 2007-02-27 9:14
由 lb_bn
谢谢分享。。。。
发表于 : 2007-07-10 0:24
由 forrid
好像可以
Re: 安装 subversion 指南
发表于 : 2007-12-14 16:25
由 duanyong
oneleaf 写了:sudo apt-get install subversion
sudo apt-get install libapache2-svn
sudo mkdir -p /svn
sudo svnadmin create /svn
sudo chown -R www-data:www-data /svn
编辑 /etc/apache2/mods-available/dav_svn.conf 打开仓库
sudo /etc/init.d/apache2 restart
完成!
如果你是通过squid代理出去的,请修改
/etc/squid/squid.conf
增加:
extension_methods REPORT MERGE MKACTIVITY CHECKOUT
楼主,你是做笔记,还是给新手看呢?
发表于 : 2007-12-14 16:37
由 lorenxu
可以发到外部网吗?
发表于 : 2008-03-23 16:34
由 xygz
我现在配置完成,在本地用svn co file:///home/svn/proj1
svn co
http://localhost/svn/proj1
都可以正常,但是在远程用TORTOISESVN就不能连接,在apache2/access.log里看到一串的
192.168.1.132 - xygz [23/Mar/2008:16:16:24 +0800] "PROPFIND /svn/proj1/!svn/bc/0 HTTP/1.1" 207 323 "-" "SVN/1.4.4 (r25188) neon/0.26.3"
类似这样的,然后就没有反应了,如果客户端强行关闭tortoise svn,那么LOG里还会出来XMP PARSER ERROR STATUS=20014,没招了,不知道什么问题,好多地方也有人类似的问题,但找不出解决方法来