If /etc/php/7.0/fpm/php.ini has syntax error, php7.0-fom starts silently (!! no error messages even in logs), but uses default values.
To make php.ini incorrect, add this line:
# Wrong comment (
Systemd servive unit for php7.0-fpm has config check:
ExecStartPre=/usr/lib/php/php7.0-fpm-checkconf
But is does not work:
root@xenial:~# /usr/sbin/php-fpm7.0 --fpm-config /etc/php/7.0/fpm/php-fpm.conf --test
PHP: syntax error, unexpected '(' in /etc/php/7.0/fpm/php.ini on line 6
[14-Sep-2016 14:24:46] NOTICE: configuration file /etc/php/7.0/fpm/php-fpm.conf test is successful
OS: Ubuntu 16.04 Xenial 16.04.2
PHP: php7.0-fpm 7.0.8-0ubuntu0.
If /etc/php/ 7.0/fpm/ php.ini has syntax error, php7.0-fom starts silently (!! no error messages even in logs), but uses default values.
To make php.ini incorrect, add this line:
# Wrong comment (
Systemd servive unit for php7.0-fpm has config check:
ExecStartPre= /usr/lib/ php/php7. 0-fpm-checkconf
But is does not work:
root@xenial:~# /usr/sbin/ php-fpm7. 0 --fpm-config /etc/php/ 7.0/fpm/ php-fpm. conf --test 7.0/fpm/ php.ini on line 6 7.0/fpm/ php-fpm. conf test is successful
PHP: syntax error, unexpected '(' in /etc/php/
[14-Sep-2016 14:24:46] NOTICE: configuration file /etc/php/
root@xenial:~# /usr/lib/ php/php7. 0-fpm-checkconf ; echo $?
0