Home>Article>Database> How to set phpmyadmin to prohibit external network access

How to set phpmyadmin to prohibit external network access

Jennifer Aniston
Jennifer Aniston Original
2019-12-28 13:38:36 3406browse

How to set phpmyadmin to prohibit external network access

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

How to set phpmyadmin to prohibit external network access

FoundDeny from allmeans deny all access, but allow access from 127.0.0.1.

Then, deleteAllow from 127.0.0.1, and change Deny from all toAllow from all, which means allowing access from all addresses.

Finally, save the modified configuration file and restart the server.

If the following problem occurs:

Forbidden You don't have permission to access /phpMyAdmin/index.php on this server.

Open the httpd.conf file of apache and modify

How to set phpmyadmin to prohibit external network access

to:

How to set phpmyadmin to prohibit external network access

Finish!

Recommended related articles and tutorials:phpmyadmin tutorial

The above is the detailed content of How to set phpmyadmin to prohibit external network access. 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