How to disable remote login in phpmyadmin

The title pretty much sums up my question. I just want to learn how to disable remote login in my phpmyadmin. I would prefer only to enter phpmyadmin from localhost.

+4
source share
4 answers

Change /etc/phpmyadmin/apache.conf to:

  Order Allow,Deny Allow from localhost 
+4
source

Preventing remote login does not stop access to phpmyadmin unless you stop it in /etc/phpmyadmin/apache.conf

To enable phpmyadmin OFF access in ubuntu 14.04 with the apache web server , change /etc/phpmyadmin/apache.conf

Search for <Directory /phpmyadmin> or <Directory /usr/share/phpmyadmin> if you set the alias / phpmyadmin / usr / share / phpmyadmin to the same file.

Add or change the following lines :

 Order Deny, Allow Deny from all 

Restart apache2 using sudo apache2 restart service

To temporarily enable access to phpmyadmin ON, first find out your IP address. Search on Google what my IP address is. Then edit the vi / etc / phpmyadmin / apache.conf file. Add this line to the above Directory tag: Allow from <your ip address>

Restart apache2 using sudo apache2 restart service

+2
source

Use Allow from 127.0.0.1 instead of localhost and this will work.

www.jinises.com

0
source

Directory Search / phpmyadmin or Directory / usr / share / phpmyadmin

Paste Require local path between directory / directory

-1
source

Source: https://habr.com/ru/post/1415085/


All Articles