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.
Nội dung chính
- How do I completely uninstall phpMyAdmin?
- How do I completely install phpMyAdmin on Ubuntu?
- How do I uninstall and reinstall phpMyAdmin?
- How do I know if phpMyAdmin is installed on Ubuntu?
What is the problem?
Please help.
asked Feb 19, 2011 at 10:42
If your system is using dpkg and apt [debian, ubuntu, etc], try running the following commands in that order [be careful with the sudo rm
commands]:
sudo apt-get -f install
sudo dpkg -P phpmyadmin
sudo rm -vf /etc/apache2/conf.d/phpmyadmin.conf
sudo rm -vfR /usr/share/phpmyadmin
sudo service apache2 restart
answered Feb 27, 2011 at 21:16
forcefsckforcefsck
2,6251 gold badge16 silver badges12 bronze badges
2
I had to run the following command:
sudo apt-get autoremove phpmyadmin
Then I cleared my cache and it worked!
answered Jan 4, 2012 at 17:09
3
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
alony
10.6k3 gold badges38 silver badges46 bronze badges
answered Mar 10, 2012 at 23:09
BrantBrant
911 silver badge1 bronze badge
0
Try purge
sudo aptitude purge phpmyadmin
Not sure this works with plain old apt-get
though
answered Feb 19, 2011 at 10:46
xzyferxzyfer
13.7k5 gold badges34 silver badges46 bronze badges
0
I had same problem. Try the following command. This solved my problem.
sudo apt-get install libapache2-mod-php5
mtk
12.7k15 gold badges70 silver badges111 bronze badges
answered Jan 5, 2013 at 6:45
I messed up my phpmyadmin
, I
haven't logged in phpmyadmin
for a while and as a result I forgot my password.
I decided to purge PHPMyAdmin:
sudo apt-get purge phpmyadmin
I did get some error messages asking for my password, but I forgot that, so I just pressed ignore, after that, I installed phpmyadmin
again:
sudo apt-get install phpmyadmin
But now, when I logging to my phpmyadmin
, I get a 404 not found
error page!?
How do i completely remove phpmyadmin?
How do I completely uninstall phpMyAdmin?
Uninstall or Remove phpmyadmin, apache2, PHP, MariaDB from Linux [Ubuntu] Server via terminal.
REMOVE phpmyadmin. sudo apt-get purge phpmyadmin. OR. sudo apt-get remove phpmyadmin..
REMOVE php. sudo apt-get purge php.*.
REMOVE apache2..
How do I completely install phpMyAdmin on Ubuntu?
How to Install phpMyAdmin – Ubuntu 18.04 and 20.04.
Install phpMyAdmin package..
Setup user and grant permissions..
Access phpMyAdmin on browser..
Create a new user..
Secure phpMyAdmin..
How do I uninstall and reinstall phpMyAdmin?
Answer.
Connect to a Plesk server via SSH..
Get the phpMyAdmin database name and MySQL username: ... .
Check if the phpmyadmin database exists on the server: ... .
Remove this database from MySQL: ... .
Check if the phpmyadmin user exists in the mysql.user table: ... .
Restart MariaDB/MySQL: ... .
Remove the phpMyAdmin package: ... .
Reinstall phpMyAdmin:.
How do I know if phpMyAdmin is installed on Ubuntu?
Get the name of the package with dpkg --list | grep phpmyadmin..
For list of file installed use this dpkg --listfiles .