1 之前使用wamp在本地通过localhost访问PHP网站,一直很正常,最近想要发布至服务器,需要域名解析,发现PHP网站无法使用ip登陆,比如输入ip+端口地址,会报错:you don't have permission to access / on this server wamp。这个愁死我了,上网搜索,基本都是想修改路径【C:wampalias】下的三个.conf文件, 修改如下:
<Directory "c:/wamp/apps/phpmyadmin4.0.4/">
Options Indexes FollowSymLinks MultiViews
AllowOverride none
Order allow,deny
Allow from all
Require all granted
</Directory>
可是经过试验,我发现还是不行,错误依旧,于是继续搜索,发现还有个文件中,左键点击,wamp图片,apche->httpf.conf,搜索Deny from all修改为allow from all,搜索AllowOverride all 修改为AllowOverride None