Home > Database > Mysql Tutorial > apache 2.4 You don't have permission to access / on

apache 2.4 You don't have permission to access / on

WBOY
Release: 2016-06-07 15:43:23
Original
1294 people have browsed it

用的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就对了,亲测可行

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template