/usr/local/apache2/bin/apxs -c mod_rewrite.c文件地址 -lgdbm
判断模块有没有
root@0503:/home/phpjx/httpd-2.2.21# /usr/local/httpd/bin/httpd -M | grep -E "dav"
Syntax OK
dav_module (static)
dav_fs_module (static)
http://zhidao.baidu.com/link?url=-ldxGF8f09muZ39xQk3YZDhnC1U0YlXieOhNrehUousrsLBdmvKL88A4j5ibvU2rnd-HRVko8xBZQfpUsz3cw_
http://blog.csdn.net/elimago/article/details/2456821
http://blog.csdn.net/fbysss/article/details/337996
http://snowolf.iteye.com/blog/740347
http://bbs.csdn.net/topics/200082711
http://zhengzhuangjie.iteye.com/blog/1555895
配置
cd /home/phpjx/httpd/
./configure --prefix=/usr/local/httpd --enable-module=so --enable-rewrite --enable-ssl=static --with-ssl=/usr/local/ssl --enable-module=ssl --enable-dav --enable-dav-svn --enable-maintainer-mode
make && make install
vim /usr/local/httpd/conf/httpd.conf
ubuntu
- sudo apt-get install libapache2-svn
centos
- sudo yum install mod_dav_Linux
54 LoadModule dav_svn_module modules/mod_dav_svn.so
55 LoadModule authz_svn_module modules/mod_authz_svn.so
ps aux|grep svnserve
svnadmin create /var/www/svn
普通方式以svn://ip/repository访问
这种以http://ip/repository来访问
422
423 DAV svn
424 SVNParentPath /var/www/svndata
425 #SVNPathAuthz off
426 AuthType Basic
427 AuthName "开心每一天!"
428 AuthUserFile /var/www/html/passwd
429 Require valid-user
430 AuthzSVNAccessFile /var/www/svndata/accessfile
431 #Satisfy Any
432
生成passwd文件
/usr/local/httpd/bin/htpasswd -bc /var/www/html/passwd yansiyu 123456
vim /var/www/svndata/accessfile
1 [groups]
2 admin = yansiyu
3 anonymous = guest
4 [/]
5 * = r
6 @admin = rw
7 @anonymous = r
8
访问网址http://localhost/svn/svn版本库名称
如果出现403错误,那么检查下passwd与accessfile文件的权限
转:http://blog.csdn.net/cpdoor2163_com/article/details/8282508
Linux系统,Subversion command-line client, version 1.6.11:
~/.subversion/auth/svn.simple/
Windows系统,TortoiseSVN 1.6.8:
C:\Documents and Settings\user\Application Data\Subversion\auth\svn.simple
需要说明的是:
通常Windows系统中TortoiseSVN的svn密码是加密保存的。
Linux系统中Subversion client的svn密码通常是明文保存的。所以Linux系统中svn密码的安全是依赖账户安全的。
那个经典话题:
Windows系统的安全是以文件、文件夹为单位进行保护的;Linux系统的安全是以账户为单位进行保护的。因此,Linux系统中账户是不能像Windows系统中那样随便"借给"别人使用的。