Methods of Prohibiting External Network Use in phpmyadmin

  • 2021-07-26 07:01:26
  • OfStack

In this paper, an example is given to describe the method of prohibiting the use of external network in phpmyadmin. Share it for your reference. The specific methods are as follows:

First, find phpmyadmin. conf in the phpmyadmin folder
You can see the configuration in the following paragraph 1 in the file

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

Finding Deny from all means disabling all access but allowing access from 127.0. 0.1
Then we delete Allow from 127.0. 0.1
And Deny from all is modified to Allow from all
It means to allow access from all addresses

Save the modified configuration file, restart the server and access it with domain name.

Forbidden
You don't have permission to access /phpMyAdmin/index.php on this server.
If this happens, please open httpd. conf of apache and set the

<Directory />
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
</Directory>

Modify to

<Directory />
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from None
</Directory>

Just do it.

I hope this article is helpful to everyone's PHP programming.


Related articles: