make phpmyadmin secure

make phpmyadmin secure

By default, phpMyAdmin installs its web interface to a well-known location, like yourhost.com/phpMyAdmin. In order to make the phpMyAdmin installation more secure, it is a good idea to change this to a different, unique name. In order to do so, open the apache.conf file in the phpMyAdmin’s configuration directory. On many Linux servers, this file is located in /etc/phpmyadmin/. At the top of apache.conf, look for the following line:

1
2
3
# phpMyAdmin default Apache configuration
 
Alias /phpmyadmin /usr/share/phpmyadmin

Simply change the alias to point to the unique URL you want for your installation. For example:

1
2
3
# phpMyAdmin default Apache configuration
 
Alias /securephpmyadmin /usr/share/phpmyadmin

After this is done, restart the Apache service to see the changes:

sudo /etc/init.d/apache2 restart
-or-
sudo service apache2 restart

Now visit the new URL, and phpMyAdmin should be there. For example, yoursite.com/securephpmyadmin.

There are no comments published yet.

Leave a Comment