wamp出现You don’t have permission to access/on this server提示

本地搭建wamp,输入http://127.0.0.1访问正常,当输入http://localhost/,apache出现You don’t have permission to access/on this server 提示解决办法.

找到 wampservsr 图标左键, 选择apach, 选中里面的httpd.conf文件,用记事本打开httpd.conf,然后将

<Directory />
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
</Directory>

改成:

<Directory />
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Allow from all
</Directory>

还有将这个也改了:

# onlineoffline tag - don't remove
Order Deny,Allow
Deny from all  
Allow from 127.0.0.1
</Directory>

Deny from all 改为:Allow from all ,然后重新启动所有服务。

打开localhost或127.0.0.1时发现可以访问了,但访问phpmyadmin时候出现“You don’t have permission to access /phpmyadmin/ on this server”提示。

解决方法,打开如下文件:

用记事本打开下面文件,并修改:
C:\wamp\alias\phpmyadmin.conf  //这个就是wamp的安装目录下的内容

<Directory "c:/wamp/apps/phpmyadmin3.5.1/">
    Options Indexes FollowSymLinks MultiViews
    AllowOverride all
    Order Deny,Allow
    Allow from all
    Allow from 127.0.0.1
</Directory>

修改保存后,重启wamp !

posted @ 2022-12-06 22:23  轻风细雨_林木木  阅读(334)  评论(0编辑  收藏  举报