apache 2.4 You don't have permission to access / on
程序员文章站
2022-05-11 17:11:52
...
用的2.4版本,以前版本解决: 马上打开apache的配置文件httpd.conf,逐行检查。在大约快一半的地方有以下这段代码: Directory/ OptionsFollowSymLinks AllowOverrideNone Orderdeny,allow Denyfromall /Directory 发现了吧。由于配置了php后,这里的Denyfro
用的2.4版本,以前版本解决:
马上打开apache的配置文件httpd.conf,逐行检查。在大约快一半的地方有以下这段代码:
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
发现了吧。由于配置了php后,这里的“Deny from all”已经拒绝了一切连接。把该行改成“allow from all”,修改后的代码如下,问题解决。
Options FollowSymLinks
AllowOverride None
Order deny,allow
allow from all
再次在浏览器里打开http://localhost,显示it works!
现在的解决:
Require all denied
httpd-conf 配置文件 修改 allow from all的步骤时候
配置文件里面只有Require all denied 应该相当于 allow from all吧?
你这是新版的wamp,把Require all denied改为Require all granted就对了,亲测可行
推荐阅读
-
You don’t have permission to access /index.php on.
-
对于搭建网站中出现“You don't have permission to access this resource.”错误提示的解决思路
-
You don't have permission to access / on this server,Forbidden
-
CentOS7.0下安装Apache2.4.20版本,安装完成之后,报 You don't have permission to access / on this server.
-
wamp不能使用phpmyadmin,提示“You don't have permission to access /phpmyadmin/ on this server.”...
-
Apache启动后出现You don't have permission to access on this server的解决办法
-
PHP错误:Forbidden You don't have permission to access / on thi_PHP教程
-
apache出现You don't have permission to access / on thi_PHP教程
-
Apache出现 You don't have permission to access /phpmya
-
wamp不能使用phpmyadmin,提示“You don't have permission