Home >Backend Development >PHP Problem >What to do if a 403 error occurs when opening phpMyAdmin under PHP

What to do if a 403 error occurs when opening phpMyAdmin under PHP

coldplay.xixi
coldplay.xixiOriginal
2020-08-17 14:17:412841browse

The solution to the 403 error when opening phpMyAdmin under PHP: first find the [alias directory] file in the apache folder; then open the code file [http://localhost/phpmyadmin]; finally change [127.0.0.1 】Change to all.

What to do if a 403 error occurs when opening phpMyAdmin under PHP

[Related learning recommendations: php programming (video)]

Open under PHP The solution to the 403 error in phpMyAdmin:

Look at the code inside and you will understand it

The solution is directly posted as follows:

What to do if a 403 error occurs when opening phpMyAdmin under PHP

The code is as follows:

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

Change it to

Allow from 127.0.0.1 => Allow from all That is, replace 127.0.0.1 with all

OK, everything is done (if it doesn’t work, restart wamp)

Related learning recommendations: Programming video

The above is the detailed content of What to do if a 403 error occurs when opening phpMyAdmin under PHP. 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