|
如题,系统是Arch linux + apche2.2.15 + php5.3.2
修改apache的配置文件httpd.conf中下面两行
<Directory "/srv/http">
DocumentRoot "/srv/http"
不管改什么都会报错,注释掉php的相关行也是一样。
错误如下:(改变目录)
Access forbidden!
You don't have permission to access the requested directory. There is either no index document or the directory is read-protected.
If you think this is a server error, please contact the webmaster.
Error 403
localhost
Tue Jun 8 02:10:53 2010
Apache/2.2.15 (Unix) mod_ssl/2.2.15 OpenSSL/1.0.0a DAV/2 PHP/5.3.2 with Suhosin-Patch
还有一个问题,使用虚拟目录也会出现类似的错误。
增加:(httpd.conf)
# Alias
Include conf/extra/httpd-alias.conf
文件:(/etc/httpd/conf/extra/httpd-alias.conf)
# phpmyadmin
Alias /phpmyadmin /home/angei/htdocs/phpmyadmin
注:/home/angei/htdocs/phpmyadmin这个目录已经建立。
错误如下:(于上面的不完全一样)
Access forbidden!
You don't have permission to access the requested object. It is either read-protected or not readable by the server.
If you think this is a server error, please contact the webmaster.
Error 403
localhost
Tue Jun 8 02:14:29 2010
Apache/2.2.15 (Unix) mod_ssl/2.2.15 OpenSSL/1.0.0a DAV/2 PHP/5.3.2 with Suhosin-Patch |
|