Ubuntu Apache: “Module php7 does not exist” [closed]

我的未来我决定 提交于 2019-12-03 08:19:17

问题


I am trying to upgrade PHP 5.5.9 to PHP 7 on my DigitalOcean Ubuntu 14.04 machine.

I've read many tutorials and articles how to do it, but each of them misses something. For example, somewhere they say you must sudo a2dismod php5 then sudo a2enmod php7. The problem is that I always get this message

$ sudo a2enmod php7
ERROR: Module php7 does not exist!

Does someone one how to resolve this problem, please?

Thanks in advance.


回答1:


Finally, thanks to the comment of Ed de Almeida, I found the solution.

I had to install an additional package:

$ sudo apt-get install libapache2-mod-php7.0

Now I could run sudo a2enmod php7.0.



来源:https://stackoverflow.com/questions/36057615/ubuntu-apache-module-php7-does-not-exist

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!