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.
发布评论
评论(5)
如果您的系统使用 dpkg 和 apt(debian、ubuntu 等),请尝试按该顺序运行以下命令(请小心使用
sudo rm
命令):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):我必须运行以下命令:
然后我清除了缓存并且它起作用了!
I had to run the following command:
Then I cleared my cache and it worked!
我也有类似的问题。 PHP 可以在我的由 virtualmin 配置的网站上运行,但不能在 phpmyadmin 上运行。 PHPMyAdmin 将不会执行,并且浏览器正在下载该文件。我读到的所有内容都说 libapache2-mod-php5 没有安装,但我知道它是......所以要做的就是清除它并重新安装。
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.
尝试
purge
,但不确定这是否适用于普通的旧
apt-get
Try
purge
Not sure this works with plain old
apt-get
though我有同样的问题。尝试以下命令。这解决了我的问题。
I had same problem. Try the following command. This solved my problem.