This entry was posted on Wednesday, July 8th, 2009 at 11:15 pm. You can leave a response.
While phpMyAdmin is a terrific application to manage MySQL databases on your linux server, the default installation on Ubuntu (and presumably other *nix OS’s running Apache2) leaves access wide open to the Internet. Personally, even if I use strong passwords, I still like to keep the number of services and web applications open to the Internet to a minimum. As a result, I chose to limit access based upon IP address range to my local network. This procedure is very simple to do, and will cause any remote attempts to access phpMyAdmin to be presented with a 403 Forbidden error, yet all local attempts will be let through without question. Here’s the procedure: sudo nano /etc/apache2/conf.d/phpmyadmin.conf order deny, allow sudo /etc/init.d/apache2 restart
deny from all
allow from 192.168.1.0/24
