php 完全删除 phpMyAdmin
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5050296/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Completely removing phpMyAdmin
提问by webnat0
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.
我使用 apt-get 命令分别安装了 virtualmin 和 phpmyadmin。由于 Virtualmin 的安全设置 (suexec),phpMyAdmin 不起作用。当我访问 mydomain.com/phpmyadmin 时,它会下载整个 PHP 页面而不是执行它。我尝试禁用 suexec 但它没有用。所以现在我想删除phpMyAdmin。我使用 apt-get remove 命令删除了它,并删除了 /etc/phpmyadmin 文件夹。但是,当我访问 mydomain.com/phpmyadmin 时,它会下载该页面。这可能意味着 phpmyadmin 没有被完全删除。
What is the problem?
问题是什么?
Please help.
请帮忙。
回答by forcefsck
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
回答by Joseph Petry
I had to run the following command:
我必须运行以下命令:
sudo apt-get autoremove phpmyadmin
Then I cleared my cache and it worked!
然后我清除了我的缓存并且它起作用了!
回答by Brant
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.
我遇到了类似的问题。PHP 在我由 virtualmin 配置的站点上工作,但不适用于 phpmyadmin。PHPMyAdmin 不会执行并且文件正在被浏览器下载。我正在阅读的所有内容都说未安装 libapache2-mod-php5 但我知道它是......所以要做的就是清除它并重新安装。
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
回答by xzyfer
Try purge
尝试 purge
sudo aptitude purge phpmyadmin
Not sure this works with plain old apt-get
though
不知道这个作品与普通的旧apt-get
虽然
回答by Batnasan Byambasuren
I had same problem. Try the following command. This solved my problem.
我有同样的问题。试试下面的命令。这解决了我的问题。
sudo apt-get install libapache2-mod-php5