Home  >  Article  >  Backend Development  >  wamp prompts You don't have permission to access/on this server (transfer)

wamp prompts You don't have permission to access/on this server (transfer)

WBOY
WBOYOriginal
2016-08-08 09:28:141252browse

Reprinted from http://blog.csdn.net/hong0220/article/details/40262729 for easy viewing later.

 Today I built the wamp integrated environment. It had already been set up, but when I accessed localhost, the message "You don't have permission to access/on this server" appeared. I didn't solve it myself. I checked http://blog.csdn. net/hong0220/article/details/40262729 and then modified successfully. Here’s how:

 

  • Find httpd.conf, open httpd.conf with notepad, and then change

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

here changed to:

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

There is another place to come

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

Change Deny from all to: Allow from all and then restart all services.

Now when I open localhost or 127.0.0.1, I find that it can be accessed, but when I access phpmyadmin, the prompt "You don't have permission to access /phpmyadmin/ on this server." appears.

  • Solution, open the following file:

C:wampaliasphpmyadmin.conf   //This is the content of your wamp installation directory, open it with notepad

Modify it like this:

  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

After saving the changes, restart wamp and call it a day!

 

The above has introduced the You don’t have permission to access/on this server prompt in wamp (transfer), including the content. I hope it will be helpful to friends who are interested in PHP tutorials.

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
Previous article:PHP basic study notes (6)Next article:PHP basic study notes (6)