I can't run PHP scripts on my localhost, the browser renders a white screen. If I view the source of the page I can see the contents of the PHP file visibly.
Using:
$ sudo apt-get install libapache2-mod-php7.0
Reading package lists... Done
Building dependency tree
Reading state information... Done
libapache2-mod-php7.0 is already the newest version (7.0.6-6+donate.sury.org~xenial+1).
The following packages were automatically installed and are no longer required:
libgsoap8 libvncserver1
Use 'sudo apt autoremove' to remove them.
0 to upgrade, 0 to newly install, 0 to remove and 15 not to upgrade.
Suggests the module is installed. Upon trying to enable it:
$ sudo a2enmod php7.0
ERROR: Module php7.0 does not exist!
PHP is installed:
$ php -v
PHP 7.0.6-6+donate.sury.org~xenial+1 (cli) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
I tried this tutorial https://ivan.reallusiondesign.com/install-php-7-on-ubuntu/
only when i reach
$ sudo a2enmod php7.0
ERROR: Module php7.0 does not exist!
I'm running out of ideas. If you could help me get PHP7 to run on Apache/2.4.18 (Ubuntu) that would be good thanks.