Fix PHP Not Rendered on Ubuntu LAMP Server

Some users reported they installed Apache webserver and PHP7 on Ubuntu 16.04 server / vps that they could not make PHP to render their PHP scripts / pages when. Well, recently I found out that they may have simply missed some dependencies to put in. Ubuntu 16.04 is sold with PHP7 package automatically. Ergo then most-likely you’ll have PHP7 to install if you have managed to install via apt-get. Some users blamed PHP7 incompatibility but since the phpinfo page doesn’t work that it means that PHP does not render any pages that are php. How exactly to correct it then?

Actually it is easy. The cause that is main that libapache2 module and libapache2 for php7 module are not installed yet. Simply use apt-get command to install those modules that are missing restart Apache2 to resolve the issue :

apt-get install-y&# that are libapache2-mod-php***************************************************);
solution apache2 restart

that’s it.

libapache2-mod-php7.0 module

Please look over my guide that is complete on to put in LAMP on Ubuntu 16.03 host.

About The Author

LEAVE A REPLY

Please enter your comment!
Please enter your name here