Change Default Access URL of phpMyAdmin

(0 votes, average 0 out of 5)

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 /secretadmin /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.


Partner Links:
Last Updated on Tuesday, 03 August 2010 16:06  
Related Articles

» Matplotlib IOError: Error While Writing to Output Stream

When using the Python Matplotlib library, Python may throw the following error:1IOError: error while writing to output streamCommonly this is caused because Python does not have access to the output stream -- in this case, usually some file that Matplotlib is attempting to write to.  This is typical when the Python script is being used on a web server.  For instance, the following code might not work if the directory "output" does not have write permissions on a...

» How to Use a Linux (or Mac OS X) Terminal

Every computer hobbyist, at some point, learns to use Linux.  The transition from using a UI based interface in Windows or Mac to performing many functions through the terminal can be a jarring experience for many people.  Many users find the terminal difficult to use and inferior to navigating a UI.  However, the Linux terminal is an extremely powerful device that many learn to love and use often.  Here is a basic introduction to get your feet wet with a terminal.  It...

» How to Install an Updated Driver For NVIDIA Graphics Cards

Whether you are putting a new graphics card into your computer or just want to update the driver, it is recommended that you visit the Manufacturers website. Here you will receive the latest update that will include many enhancements and improvements. Follow these steps to install the latest driver on your computer:Make sure your graphics card is installed or recognized by the system.Open up a web browser, like Internet Explorer, Mozilla Firefox, or Google Chrome, and visit...