Wamp2.5是新版,搭配的是Apache2.4.9,因为Apache配置命令升级,弄了一个下午,百度了很久都是几乎都是以前2.2的解决方案。
先介绍一下环境:Windows+wamp2.5(apache2.4.9)
1、在D:\wamp\bin\apache\apache2.4.9\conf目录下找到“httpd.conf”文件(建议先备份一下)
2、将“httpd.conf”下240行处的:
<Directory />
AllowOverride none
Require all denied
</Directory>
更改为
<Directory />
AllowOverride none
#Require all denied
Require all granted
</Directory>
3、将“httpd.conf”下约254行处的:
在“Require local”下面增加一条配置“Require all granted”,保存后退出。
实际上就是在“Require local”下面增加一条配置“Require all granted”,保存后退出。
4、重启Wmapserver,应该就OK了。