Home >Database >Mysql Tutorial >wamp出现You don’t have permission to access/on this server

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

WBOY
WBOYOriginal
2016-06-07 15:43:161464browse

找到 httpd.conf,用记事本打开 httpd.conf ,然后将 Directory/ OptionsFollowSymLinks AllowOverrideNone Orderdeny,allow Denyfromall /Directory 这里改成: Directory/ OptionsFollowSymLinks AllowOverrideNone Orderdeny,allow Allowfromall /Directo

  • 找到httpd.conf,用记事本打开httpd.conf,然后将

  1.     Options FollowSymLinks
  2.     AllowOverride None
  3.     Order deny,allow
  4.     Deny from all

这里改成:

  1.     Options FollowSymLinks
  2.     AllowOverride None
  3.     Order deny,allow
  4.     Allow from all

 还有一处将下面

  1. # onlineoffline tag - don't remove
  2. Order Deny,Allow
  3. Deny from all  
  4. Allow from 127.0.0.1

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. "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

修改保存后,重启wamp ,搞定收工!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn