出现500的原因是由于配置的时候少生成了授权文件,
通过锁定服务器的日志文件 tail -f /var/log/apache2/error.log 得到的错误日志如下:
[Sat Aug 25 09:16:33 2012] [error] [client 192.168.1.101] Could not fetch resource information. [500, #0]
[Sat Aug 25 09:16:33 2012] [error] [client 192.168.1.101] Could not open the requested SVN filesystem [500, #2]
[Sat Aug 25 09:16:33 2012] [error] [client 192.168.1.101] Could not open the requested SVN filesystem [500, #2]
[Sat Aug 25 09:20:07 2012] [notice] caught SIGTERM, shutting down
[Sat Aug 25 09:20:08 2012] [notice] Apache/2.2.16 (Ubuntu) DAV/2 SVN/1.6.12 configured -- resuming normal operations
[Sat Aug 25 09:49:34 2012] [notice] caught SIGTERM, shutting down
[Sat Aug 25 09:49:36 2012] [notice] Apache/2.2.16 (Ubuntu) DAV/2 SVN/1.6.12 configured -- resuming normal operations
[Sat Aug 25 10:05:05 2012] [notice] caught SIGTERM, shutting down
[Sat Aug 25 10:05:06 2012] [notice] Apache/2.2.16 (Ubuntu) DAV/2 SVN/1.6.12 configured -- resuming normal operations
[Sat Aug 25 10:17:37 2012] [error] [client 192.168.1.101] (2)No such file or directory: Could not open password file: /etc/apache2/dav_svn.passwd
解决方法是生成对应的文件:
现在通过命令设置SVN账户:
Shell代码 收藏代码
1. sudo htpasswd -c /etc/apache2/dav_svn.passwd <username>
sudo htpasswd -c /etc/apache2/dav_svn.passwd <username>
这里用到参数-c,是因为/etc/apache2/dav_svn.passwd文件不存在,如果文件存在,则无需该参数!否则,将覆盖掉原有密码文件!
形如:
引用
sudo htpasswd -c /etc/apache2/dav_svn.passwd snowolf
New password:
Re-type new password:
Updating password for user snowolf
可以追加多个账户!
引用
sudo htpasswd /etc/apache2/dav_svn.passwd zlex
New password:
Re-type new password:
Updating password for user zlex
分享到:
相关推荐
SVN搭建和使用手册,svn中文教程,SVN客户端使用简要教程
对于如何搭建svn,以及涉及到的依赖包都是做了说明,而且将包都提供,使用者按照文章中的说明,一步步的操作即可,可以无脑操作。 文章中还介绍对于svn的配置以及如何去设置用户,在搭建过程中常见问提的说明。 对于...
详细介绍了eclipse如何搭建svn项目管理工具,有svn项目密码设置,svn发布,下载
svn搭建方法。搭建Windows SVN服务器及TortoiseSVN使用帮助和下载
使用svn可进行对代码进行有效管理 避免了版本的混乱和无序
Svn服务器搭建简单教程 Svn服务器搭建简单教程 Svn服务器搭建简单教程 搭建SVN服务器必不可少
客户端和服务端的详细配置,以及使用方法和注意事项
SVN服务器搭建
redhat5.4 SVN搭建 web同步 redhat5.4 SVN搭建 web同步 redhat5.4 SVN搭建 web同步 redhat5.4 SVN搭建 web同步 redhat5.4 SVN搭建 web同步
SVN搭建与创建 SVN安全机制 SVN备份恢复机制 客户端使用方法
svn 搭建所需要的程序,里面有客户端和服务器端的安装程序,可以提供你下载和安装
svn搭建https访问之mod_dav_svn安装包 linux安装包 搭建https访问
SVN服务器搭建和使用
svn搭建服务端说明,详细说明了如何在电脑上搭建SVN环境,给团队开发提供SVN版本控制功能
windoes_svn搭建、Eclipse_svn插件的使用
SVN服务端环境搭建,实例化演示如何搭建SVN 服务器。
Windows系统下如何搭建svn服务器; 实现SVN自动邮件提醒版本变化
本地搭建apache+svn服务端,亲测可以使用,从网上找了很多。Apache是安装版本,不需要额外配置,里面也有操作说明
主要是Svn搭建,主要操作步骤和流程
svn Linux 搭建配置 流程 详细介绍了如何在linux系统上搭建svn客户端