Ubuntu Apache: "Module php7 does not exist"

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.

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.


Need Your Help

Factory Girl - what's the purpose?

ruby factory-bot

What's the purpose of Factory Girl in rspec tests when I could use before(:each) blocks? It feels like the only difference between Factory Girl and a before(:each) is that the factory prepares object

jQuery moving a table row - Pretty effect

jquery animation jquery-plugins

I'm working on a simple suggestion voting system where users can +1 or -1 suggestions (in a similar way to how stack-overflow rates questions).