Home  >  Article  >  Database  >  What to do if access to phpmyadmin is not allowed

What to do if access to phpmyadmin is not allowed

藏色散人
藏色散人Original
2020-04-07 16:35:562210browse

What to do if access to phpmyadmin is not allowed

Access not allowedphpmyadminWhat should I do?

Solution to the problem of not having permission to access phpmyadmin

Since port 80 was occupied when I installed wampserver, I changed the default port to 8080, and then the problem came , when I log in to phpmyadmin, it always pops up "You don't have permission to access /phpmyadmin/ on this server." saying that I don't have permission to access phpmyadmin. I found a solution online and shared it.

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 the XXX/wamp/alias/phpmyadmin.conf file,

Change

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

to

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

and save it, then restart all Wamp services.

By the way, where to change the user name and password?

Find the config.inc.php file, go in and change it. I won’t go into details, most people can understand it.

The above is the detailed content of What to do if access to phpmyadmin is not allowed. 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