WAMP2.5 Forbidden

Forbidden

You don't have permission to access /DuoLamPHP/index.php on this server.


Apache/2.4.9 (Win64) PHP/5.5.12 Server at localhost Port 80
 
记得WAMP2.2安装之后不需要设置什么,这次总是爆出Forbidden错误
 
修改C:\wamp\bin\apache\apache2.4.9\conf\httpd.conf文件

<Directory />
AllowOverride none
Require all denied
</Directory>

修改成:

<Directory />
AllowOverride none
Require all granted
</Directory>

重启Apache

 

如果还是不行,注意检查一下

C:\Windows\System32\drivers\etc\hosts文件

看看里面是否有

#127.0.0.1       localhost

有的话,放开注释

 

 

------------------------------------------------------------------------

如果想从别的机器访问服务器

打开C:\wamp\bin\apache\apache2.4.9\conf\httpd.conf文件

和C:\wamp\bin\apache\apache2.4.18\conf\extra\httpd-vhosts.conf

<Directory "c:/wamp/www/">

。。。
Require local
</Directory>

修改成:

<Directory "c:/wamp/www/">

。。。
Require all granted
</Directory>

posted @ 2014-07-29 11:22  酷熊  阅读(934)  评论(0)    收藏  举报