Change Default Access URL of phpMyAdmin

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:

# 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:

# phpMyAdmin default Apache configuration
 
Alias /ami /usr/share/phpmyadmin

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

1
sudo /etc/init.d/apache2 restart

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

phpmyadmin

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s