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

Posted 初学者!!!

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了WampServer出现You don’t have permission to access/on this server提示相关的知识,希望对你有一定的参考价值。

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

本地搭建WampServer,输入http://127.0.0.1访问正常,当输入http://localhost/,apache出现You don‘t have permission to access/on this server的提示,如何解决?

找到httpd.conf,用记事本打开httpd.conf,有两处需要修改:

  1. <Directory />
  2.     Options FollowSymLinks
  3.     AllowOverride None
  4.     Order deny,allow
  5.     Deny from all
  6. </Directory>

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

 还有一处将下面

  1. # onlineoffline tag - don‘t remove
  2. Order Deny,Allow
  3. Deny from all  
  4. Allow from 127.0.0.1
  5. </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的安装目录下的内容,用编辑器打开

修改成这样:

  1. <Directory "c:/wamp/apps/phpmyadmin3.5.1/">
  2.     Options Indexes FollowSymLinks MultiViews
  3.     AllowOverride all
  4.     Order Deny,Allow
  5.     Allow from all
  6.     Allow from 127.0.0.1
  7. </Directory>

修改保存后,重启wamp 

以上是关于WampServer出现You don’t have permission to access/on this server提示的主要内容,如果未能解决你的问题,请参考以下文章

You don't have permission to access / on this server. wampserver3.1.0配置外网访问的问题

You don't have permission to access

对于搭建网站中出现“You don't have permission to access this resource.”错误提示的解决思路

mac上的xampp出现Access forbidden! You don’t have permission to access the requested object. It is either

安装phpstudy 测试出现403错误 Forbidden You don't have permission to access / on this server. 跪求解

18 D - This cheeseburger you don't need(URAL1993)