Ubuntu18.08 + php7 apache2 php file does not resolve the solution

1. Nothing else to intend to build a test platform and found that php file did not parse

 

 2. The journey began Baidu

Here found a solution

https://my.oschina.net/feanlau/blog/2001441

3. Later still going to remember this

sudo apt-get install libapache2-mod-php
sudo a2enmod php

 If the display is

This module does not exist!

 Completely uninstall libapache2-mod-php, and then reinstall it:

sudo apt-get remove --purge libapache2-mod-php
sudo apt-get install libapache2-mod-php

Then restart apache2

sudo /etc/init.d/apache2 restart

 problem solved

 

Guess you like

Origin www.cnblogs.com/mke2fs/p/12317065.html