问题:you don't have permission to access /index.html on this server.
原因:index.html是用root用户建的文件,apache权限不够。
解决方法:更改文件权限;chmod 755 index.html
如果是win 2003下出现这个问题,请按以下方式解决:
打开apache配置文件httpd.conf,找到这么一段:
<directory /> options followsymlinks allowoverride none order deny,allow deny from all satisfy all</directory>
然后试着把deny from all中的deny改成了allow,保存后重起了apache,然后测试网页,访问测试网站完全正常了。
第二种方法是apache的配置文件httpd-vhosts.conf里,打开扩展配置
# virtual hostsinclude conf/extra/httpd-vhosts.conf
前面的#去掉了,就引入了扩展配置,而扩展配置 文件里又没配好相应 的权限“allow from all”,所以提示此错误。
推荐教程:php视频教程
以上就是php用户权限不足怎么办的详细内容。