when something about the php7.0 extension goes wrong, i decide to reinstall the php7.0. first step, i delete all the file under /etc/php/, second step, i install php7.0 with command
apt-get install php7.0 php7.0-dev php7.0-common php7.0-fpm ,
now the error comes out with Setting up php7.0-fpm (7.0.9-1+deb.sury.org~xenial+1) ... 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 "restart" 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)
after that , i execute the command
systemctl status php7.0-fpm.service
output is about below:
php7.0-fpm.service - The PHP 7.0 FastCGI Process Manager
Loaded: loaded (/lib/systemd/system/php7.0-fpm.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2016-08-17 21:25:43 EDT; 3min 8s ago
Docs: man:php-fpm7.0(8)
Process: 20685 ExecStart=/usr/sbin/php-fpm7.0 --nodaemonize --fpm-config /etc/php/7.0/fpm/php-fpm.conf (code=exited, status=78)
Main PID: 20685 (code=exited, status=78)
Aug 17 21:25:43 systemd[1]: Starting The PHP 7.0 FastCGI Process Manager...
Aug 17 21:25:43 php-fpm7.0[20685]: [17-Aug-2016 21:25:43] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/pdo_mysql.so' - /usr/li
Aug 17 21:25:43 php-fpm7.0[20685]: [17-Aug-2016 21:25:43] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/pdo_sqlite.so' - /usr/l
Aug 17 21:25:43 php-fpm7.0[20685]: [17-Aug-2016 21:25:43] ERROR: Unable to globalize '/usr/local/etc/php/7.0/php-fpm.d/*.conf' (ret=2) from /etc/php/7.0/fpm/php-fpm.conf at line 125.
Aug 17 21:25:43 php-fpm7.0[20685]: [17-Aug-2016 21:25:43] ERROR: failed to load configuration file '/etc/php/7.0/fpm/php-fpm.conf'
Aug 17 21:25:43 php-fpm7.0[20685]: [17-Aug-2016 21:25:43] ERROR: FPM initialization failed
Aug 17 21:25:43 systemd[1]: php7.0-fpm.service: Main process exited, code=exited, status=78/n/a
Aug 17 21:25:43 systemd[1]: Failed to start The PHP 7.0 FastCGI Process Manager.
Aug 17 21:25:43 systemd[1]: php7.0-fpm.service: Unit entered failed state.
Aug 17 21:25:43 systemd[1]: php7.0-fpm.service: Failed with result 'exit-code'.
obviously, it was lack of some file like php-fpm.conf alse i don't find some file like php-fpm.conf.example under that direct
but what i waa is why it will lack of these file. for install purpose, wasn't it create these files automaticly. or else if i forgot some important steps during installing. could someone give some advise to my comfusion! i will appriciate it.
