Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

up vote 3 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
1  
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

 
discard

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.