I recently upgraded my ubuntu 14.04 system to 16.04. In the upgrade process the php installation on my system became a MESS!! There were bits of php5 & php7.0 (default for ubuntu 16.04) floating around everywhere with NOTHING working. So I took a deep breath and purged ALL my php. Then I installed php7.0. I know it’s working now because I get sensible output from :
purvez@127:~/www/gi$ php -r ‘echo “\n\nYour PHP installation is working fine.\n\n\n”;’
However if I try running a phpinfo page from my browser then I don’t get ANY output nor any errors. My web server is apache2. There are no php7.0 related mods available OR enabled on the server. Only php7.0-fpm.conf available and enabled.
My website’s root is at :
If I change the name of the phpinfo.php file then I get an error in the browser so it is clearly seeing the file but php is not processing it.
My apache2 virtualhost file is as follows:
Options Indexes FollowSymLinks
Require all granted
Is there something else that I need to tell apache2 about where to find php?
All advice/assistance gratefully received with thanks.