Home  >  Article  >  Database  >  What is the reason for not having permission to access phpmyadmin?

What is the reason for not having permission to access phpmyadmin?

尚
Original
2019-12-13 16:36:303030browse

What is the reason for not having permission to access phpmyadmin?

Since port 80 was occupied when I installed wampserver, I changed the default port to 8080. Then the problem came. When I logged in to phpmyadmin, I always got the message "You don't have permission to access /phpmyadmin/ on this server." said that I do not have permission to access phpmyadmin.

Port 8080 is used for WWW proxy service, which can realize web browsing. Often when accessing a website or using a proxy server, the port number ":8080" will be added.

The reason for not having permission to access phpmyadmin: It is because phpmyadmin prohibits external network access.

Solution:

Open the httpd.conf file,

Change

# onlineoffline tag - don’t remove
Order Deny,Allow
Deny from all
Allow from 127.0.0.1

to

# onlineoffline tag - don’t remove
Order Allow,Deny
Allow from all

Open XXX/ wamp/alias/phpmyadmin.conf file,

change


Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Deny,Allow
Deny from all
Allow from 127.0.0.1

to


Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Deny,Allow
Allow from all

, save it, and then restart all Wamp services.

Recommended learning: phpmyadmin tutorial

The above is the detailed content of What is the reason for not having permission to access phpmyadmin?. For more information, please follow other related articles on the PHP Chinese website!

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