按照http://mhbjava.javaeye.com/blog/26594 搭建的svn,当访问 http://localhost/svn/test 时提示
500 apache Internal Server Error .
查看apache 的log
错误提示如下:
[error] [client 127.0.0.1] (13)Permission denied: Could not open password file: /home/svnroot/repository/authfile
这个错误的原因是 apache没有权限打开authfile这个文件。
在apache的安装目录下 httpd.conf文件中找到apache所在的用户组和用户
suse下类似
User daemon
Group daemon
接下来把 repo 所在的目录递归的更改成daemon.daemon
#chwon -R daemon.daemon /XXX/XXX/repo
重启apache就可以了