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>:
# Restrict phpmyadmin access to just my worksation
Deny from all
Allow from your.PC’s.lanip.here
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 127.0.0.1
Check your hosts file to see ips listed for your server.