Completely removing phpMyAdmin [closed]

2019-01-31 04:05发布

I installed virtualmin and phpmyadmin separately using the apt-get command. phpMyAdmin didn't work because of Virtualmin's security settings (suexec). When I visit mydomain.com/phpmyadmin, it would download the whole PHP page instead of execute it. I tried disabling suexec but it didn't work. So now I want to remove phpMyAdmin. I removed it using the apt-get remove command and also deleted the /etc/phpmyadmin folder. But still, when I visit mydomain.com/phpmyadmin, it downloads the page. It probably means phpmyadmin wasn't completely deleted.

What is the problem?

Please help.

5条回答
一纸荒年 Trace。
2楼-- · 2019-01-31 04:30

Try running these commands in that order, they're redundant but it's ok

sudo dpkg -P phpmyadmin  
sudo rm -f /etc/apache2/conf.d/phpmyadmin.conf
sudo service apache2 restart
查看更多
叛逆
3楼-- · 2019-01-31 04:41

Try purge

sudo aptitude purge phpmyadmin

Not sure this works with plain old apt-get though

查看更多
祖国的老花朵
4楼-- · 2019-01-31 04:44

I was having a similar problem. PHP was working on my sites configured by virtualmin but not for phpmyadmin. PHPMyAdmin would not execute and the file was being downloaded by the browser. Everything I was reading was saying that libapache2-mod-php5 was not installed but I knew it was... so the thing to do was to purge it and reinstall.

sudo apt-get purge libapache2-mod-php5

sudo apt-get install libapache2-mod-php5

sudo apt-get purge phpmyadmin

sudo apt-get install phpmyadmin

sudo /etc/init.d/apache2 restart
查看更多
beautiful°
5楼-- · 2019-01-31 04:44

I had same problem. Try the following command. This solved my problem.

sudo apt-get install libapache2-mod-php5
查看更多
欢心
6楼-- · 2019-01-31 04:50

I had to run the following command:

sudo apt-get autoremove phpmyadmin

Then I cleared my cache and it worked!

查看更多
登录 后发表回答