php网页访问出错
php安装成功,<?php phpinfo();?>测试也成功,访问php网http://hiphotos.baidu.com/hwzlinux/abpic/item/5a79123870a2f728b9998f74.jpg页的时候提示错误,如图 看的不是很清楚,错误内容为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. 贴出配置
php配置文件
http://hi.baidu.com/hwzlinux/blog/item/7302b1d446a01702a08bb756.html apache的配置文件httpd.conf
apache配置http://hi.baidu.com/hwzlinux/blog/item/3a78f33dd0f6a9c49f3d62ca.html 配置都没有什么问题检查下/var/www/html下面所有文件的权限
看看apache用户是否有读取的权利 /html目录下的权限全是777,我在/html目录下建了个测试php的info.php,可以正常显示版本号 看错误提示是权限不对,403 错误。
页:
[1]