Wednesday, January 15, 2014

Lock down your phpMyAdmin access!

There are a couple of ways that I lock it down.. I won’t get into specifics because I don’t want you (or you!) trying to find it, but I can’t count the number of times I’ve seen an old phpMyAdmin install just sitting on someone’s server waiting for someone to type in the correct login and password and screw up your day. The following are a couple good-practice ways to lock it down so that you don’t have to lose sleep over wondering if someone’s going to get in easily.
Rename your phpmyadmin alias:
Edit: /etc/httpd/conf.d/phpmyadmin.conf
Look for:
(or something like that… )
and change it to something like:
Restrict access to your known ip address:
Edit /etc/httpd/conf/phpmyadmin.conf
At the top of the file you’ll see something like:
Modify it to only allow the ip addresses that you’ll connect from:
Restart apache and test it out!
Reference: http://www.linuxbrigade.com/lock-down-your-phpmyadmin-access/

No comments: