I want to install php7 after upgrading to 16.04 from 14.04. Here is what I get:
Setting up php7.0-fpm (7.0.8-0ubuntu0.16.04.2) ...
Job for php7.0-fpm.service failed because the control process exited with error code. See "systemctl status php7.0-fpm.service" and "journalctl -xe" for details.
invoke-rc.d: initscript php7.0-fpm, action "start" failed.
dpkg: error processing package php7.0-fpm (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
php7.0-fpm
E: Sub-process /usr/bin/dpkg returned an error code (1)
The output of sudo php-fpm7.0 -t is:
[07-Aug-2016 10:32:35] ERROR: failed to open configuration file '/etc/php/7.0/fpm/php-fpm.conf': No such file or directory (2)
[07-Aug-2016 10:32:35] ERROR: failed to load configuration file '/etc/php/7.0/fpm/php-fpm.conf'
[07-Aug-2016 10:32:35] ERROR: FPM initialization failed