---
title: "centos5.5 apache+svn安装配置"
author: "blueram"
date: "2013-04-28T23:04:28Z"
tags: []
categories: ["编程语言"]
slug: "centos5-5-apache-svn"
draft: false
lastmod: "2013-04-28T23:04:50Z"
id: 1856837
url: "https://blueram.iteye.com/blog/1856837"
---

系统自带的centos卸载掉。

重新安装参考

[http://www.iteye.com/topic/470516](http://www.iteye.com/topic/470516)

[http://www.cnblogs.com/dengqiye/archive/2009/07/11/1521464.html](http://www.cnblogs.com/dengqiye/archive/2009/07/11/1521464.html)

[http://read.newbooks.com.cn/info/181191.html](http://read.newbooks.com.cn/info/181191.html)

[http://altand.iteye.com/blog/1275383](http://altand.iteye.com/blog/1275383)

[http://tonyty163.blog.51cto.com/721698/758835](http://tonyty163.blog.51cto.com/721698/758835)

安装到最后，可以运行了。但是无论怎样都是403的错误，郁闷死了。

后来发现是authz.conf，就是apache httpd.conf里面引入的

```
<Location /svn/>
              DAV  svn
		  SVNListParentPath on
      		  #SVNPath /opt/svndata/
              SVNParentPath /opt/svndata/
              AuthzSVNAccessFile /opt/local/svn/authz.conf
              AuthType Basic
              AuthName "Subversion repository"
              AuthUserFile /opt/local/svn/passwd.conf
              Require valid-user
</Location>
```

 authz.conf 文件的内容，不要有注释，特别是#开头。我就是这个问题，搞了几个小时。

```
[groups]
admin=user1
[/]
@admin = rw
[repos1:/]
@admin = rw
```