I have Ubuntu Server 16.04 installed with Webmin 1.831. I am getting this error when trying to run PHP ERROR: Module php7.0 does not exist
libapache2-mod-php7.0 is installed.
53 Answers
sudo apt purge libapache2-mod-php7.0 libapache2-mod-phpthen
sudo apt install libapache2-mod-php7.0 libapache2-mod-phpfixed it.
2I have faced the same problem and Here is the solution:
You have to install an additional package:
sudo apt-get install libapache2-mod-php7.0Now run
sudo a2enmod php7.0to enable it
Restart the server
sudo systemctl restart apache2.service For the latest php version as of Nov. 2020, I solved the same problem with the following commands - in that order.
$ sudo apt purge libapache2-mod-php7.4 libapache2-mod-php
$ sudo apt-get install libapache2-mod-php7.4
$ sudo a2enmod php7.4
$ sudo service apache2 stop
$ sudo service apache2 start 5