题目: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 hosts Include conf/extra/httpd-vhosts.conf
前面的#去掉了,就引入了扩大设置,而扩大设置 文件里又没配好响应 的权限“Allow from all”,所以提醒此毛病。
引荐教程:PHP视频教程
以上就是php用户权限不足怎么办的细致内容,更多请关注ki4网别的相干文章!