Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ubuntu Apache: "Module php7 does not exist" [closed]

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.

like image 835
atorscho Avatar asked Mar 17 '16 10:03

atorscho


1 Answers

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.

like image 163
atorscho Avatar answered Sep 20 '22 14:09

atorscho