phpmyadmin uninstalled, but still prompting for login via browser

Discovered today that phpmyadmin is running on my public webservers(!). I immediately uninstalled it. That is, I thought I did until I went to [site]/phpmyadmin in my browser and found that the login prompt is still coming up.

I ran the apt-get utility first:

sudo apt-get purge phpmyadmin*
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  phpmyadmin*
0 upgraded, 0 newly installed, 1 to remove and 266 not upgraded.
After this operation, 25.0 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 523610 files and directories currently installed.)
Removing phpmyadmin (4:4.6.6-5) ...
Determining localhost credentials from /etc/mysql/debian.cnf: succeeded.
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
(Reading database ... 521935 files and directories currently installed.)
Purging configuration files for phpmyadmin (4:4.6.6-5) ...
dpkg: warning: while removing phpmyadmin, directory '/usr/share/phpmyadmin' not empty so not removed

Then ran dpkg to confirm..it says it was uninstalled:

sudo dpkg-reconfigure phpmyadmin
dpkg-query: package 'phpmyadmin' is not installed and no information is available
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
/usr/sbin/dpkg-reconfigure: phpmyadmin is not installed

Yet the browser still offers to log me in:

phpmyadmin login prompt

The one thing I did not do was remove the actual phpmyadmin database. I know I probably could have deleted it without negatively impacting anything, but the site these servers host is very, very high visibility and I didn't want to risk it. I didn't think leaving an orphaned database would cause any issues (beyond a bit of wasted disk space).

Is there some manually step I need to take beyond what's been done?

PS I found a similar question here, but it was over a year old and there was no resolution posted: Как полностью удалить phpMyAdmin?

1
задан 20 July 2020 в 23:17

1 ответ

В выводе apt-get, который вы разместили, есть следующая строка:

dpkg: предупреждение: при удалении phpmyadmin, directory '/ USR / доли / PHPMyAdmin' Проверьте содержимое этого каталога и, если внутри него нет ничего важного, просто удалите этот каталог. Это должно исправить проблему.

1
ответ дан 30 July 2020 в 22:04

Другие вопросы по тегам:

Похожие вопросы: