Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

i am pretty new to dedicated hosting and aws cloud. i was able to setup my instance with a lamp stack and installed phpmyadmin, moved it away from the 'www' directory and gave it an alias in my httpd.conf
but i've read that disabling all together and accessing and managing my dB through a client such as MySQL Workbench would greatly improve security.

question: how would i remove / disable (which ever is best) phpmyadmin without destroying my sql dB's that i have created? the site is live and i am nervous about any disruption.

share|improve this question
up vote 5 down vote accepted

The first thing to do is remove the alias you configured and then restart apache.

If you installed phpmyadmin using a package manager (yum, apt-get) then put phpmyadmin back where it was originally and run the remove process for the package manager e.g.

apt-get remove phpmyadmin

yum remove phpmyadmin

etc. You can probably get away with just deleting the phpmyadmin directory tree too.

share|improve this answer
would 'yum remove phpmyadmin' affect files outside of 'phpmyadmin'? in other words does the line command affect .conf files or .ini files? – t q Mar 10 '12 at 20:10
It will affect only those files in the phpmyadmin package. Use rpm -qa | grep -i phpmyadmin to get the phpmyadmin package name then e.g. rpm -ql phpMyAdmin to list all the files in the package to show what would be removed. – Iain Mar 10 '12 at 20:28

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.