为了账号安全,请及时绑定邮箱和手机立即绑定

求救!!!!! PHP:Access forbidden!

安装的集成环境是XAMPP    我照Larry的《PHP基础教程》写好代码后,用浏览器打不开写好的index.php    提示是: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
Apache/2.4.10 (Win32) OpenSSL/1.0.1i PHP/5.5.15

httpd_conf中已修改成<Directory />
    #AllowOverride none
    #Require all denied
    Order deny,allow
    Allow from all
</Directory>

结果还是Access forbidden!    我该怎么办!求救!!!

正在回答

1 回答

启用Require all denied,改成Require all granted

具体解释看截图

http://img1.sycdn.imooc.com//550b93960001f3cc10680600.jpg

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消
PHP入门篇
  • 参与学习       455589    人
  • 解答问题       6303    个

PHP入门教程轻松学习,行业大牛帮您快速掌握PHP编程基础知识。

进入课程

求救!!!!! PHP:Access forbidden!

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信