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
source share