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’s.lanip.here
</Directory>
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.
Great blog, I don't think there is ever enough tech info out there!
ReplyDeletegreat, cheers for the info
ReplyDeletenice tidbit thanks.
ReplyDeleteThanks for your information
ReplyDelete