heweizhi 发表于 2007-11-4 15:08:01

php网页访问出错

php安装成功,<?php phpinfo();?>测试也成功,访问php网http://hiphotos.baidu.com/hwzlinux/abpic/item/5a79123870a2f728b9998f74.jpg页的时候提示错误,如图

heweizhi 发表于 2007-11-4 15:09:58

看的不是很清楚,错误内容为
Forbidden
you don't have permission to access /info.php on this server.
Additionally,a403 Forbidden error was encountered while trying to use an ErrorDocument tohandle the request.

npcomet 发表于 2007-11-4 15:15:06

贴出配置

heweizhi 发表于 2007-11-4 20:28:50

php配置文件

http://hi.baidu.com/hwzlinux/blog/item/7302b1d446a01702a08bb756.html

npcomet 发表于 2007-11-4 20:38:10

apache的配置文件

heweizhi 发表于 2007-11-5 15:25:33

httpd.conf

apache配置http://hi.baidu.com/hwzlinux/blog/item/3a78f33dd0f6a9c49f3d62ca.html

npcomet 发表于 2007-11-5 17:06:04

配置都没有什么问题

检查下/var/www/html下面所有文件的权限
看看apache用户是否有读取的权利

heweizhi 发表于 2007-11-6 11:16:35

/html目录下的权限全是777,我在/html目录下建了个测试php的info.php,可以正常显示版本号

hew 发表于 2007-11-9 10:41:27

看错误提示是权限不对,403 错误。
页: [1]
查看完整版本: php网页访问出错