Change Default Access URL of phpMyAdmin

By default, phpMyAdmin installs its web interface to a well-known location, like 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:

sudo /etc/init.d/apache2 restart

Now visit the new URL, and phpMyAdmin should be there. For example,