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.
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.
sudo apt purge libapache2-mod-php7.0 libapache2-mod-php
then
sudo apt install libapache2-mod-php7.0 libapache2-mod-php
fixed it.
php7.2
too.
– D. Dan
Aug 16 '18 at 12:50
php7.2
, even the answers below!, looks like apache2 isn't recognize php!
– Ibrahim.H
Jul 23 '21 at 20:08
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
ERROR: Module php7.4 does not exist!
dpkg: error processing package apache2 (--configure):
installed apache2 package post-installation script subprocess returned error exit status 1`
– Richard Chambers Jun 27 '23 at 23:09
Im trying to install ruTorrent, this requires the installation of Apache and PHP. I noticed that PHP was not working and when I run a2enmod php7.0 to verify if PHP is working I get the error above.
– Dominic Kasheimer May 08 '17 at 01:14Setting up libapache2-mod-php7.0 (7.0.15-0ubuntu0.16.04.4) ... dpkg: error processing package libapache2-mod-php7.0 (--configure): subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: libapache2-mod-php7.0 E: Sub-process /usr/bin/dpkg returned an error code (1)
– Dominic Kasheimer May 08 '17 at 23:31{}
button in the editor toolbar) will be much more readable there; alternatively you can use a pastie service for longer listings and include the link of your pastie in your question. Overall it’s best to have everything relevant in one place. Additionally, comments may be deleted for various reasons. Thanks. – David Foerster May 09 '17 at 06:19sudo apt-get install -f libapache2-mod-php7.0
? Thanks. – David Foerster May 09 '17 at 06:20