Search Polybore

Thursday, March 12, 2009

How to stop phpmyadmin login page from being accessed from internet via apache2 virtual server. Linux OS server.

Polybore wanted to access phpmyadmin only from the local server, NOT from the internet. None of the solutions found via Google worked out so Polybore came up with this solution.

Edit your virtual server configuration text file in /etc/apache2/sites-available.

Modify the following to suit your set up and add within <virtualserver ip:80></virtualserver>:

<Directory /usr/share/phpmyadmin>
       # Restrict phpmyadmin access to just my worksation
        Order Deny,Allow
        Deny from all
        Allow from your.PC’

Restart apache and you will only be able to access phpmyadmin from the local PC NOT the internet.

If myphpadmin still can be accessed via the internet check that you used a local ip not localhost or

Check your hosts file to see ips listed for your server.


  1. Great blog, I don't think there is ever enough tech info out there!

  2. great, cheers for the info

  3. Thanks for your information