group.of.nepali.translators team mailing list archive
-
group.of.nepali.translators team
-
Mailing list archive
-
Message #07525
[Bug 1623540] Re: If php.ini is incorrect, php-frm starts without warning with default values
Hello and thank you for reporting this bug.
With 16.10, the helper script has been removed, so the problem is not
exactly reproducible. With 16.04, it looks to be a simple typo with the
grep ([ERROR] rather than ERROR) in the script. Modifying it in that way
leads to a successful prevention of php-fpm starting on parse errors. I
will work on fixing 16.10 (if possible) and then SRU'ing the fix for
16.04.
Thanks,
Nish
** Changed in: php7.0 (Ubuntu)
Status: New => Triaged
** Changed in: php7.0 (Ubuntu)
Importance: Undecided => High
** Also affects: php7.0 (Ubuntu Xenial)
Importance: Undecided
Status: New
** Changed in: php7.0 (Ubuntu Xenial)
Status: New => Triaged
** Changed in: php7.0 (Ubuntu Xenial)
Importance: Undecided => High
** Changed in: php7.0 (Ubuntu)
Assignee: (unassigned) => Nish Aravamudan (nacc)
** Changed in: php7.0 (Ubuntu Xenial)
Assignee: (unassigned) => Nish Aravamudan (nacc)
--
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
https://bugs.launchpad.net/bugs/1623540
Title:
If php.ini is incorrect, php-frm starts without warning with default
values
Status in php7.0 package in Ubuntu:
Triaged
Status in php7.0 source package in Xenial:
Triaged
Bug description:
OS: Ubuntu 16.04 Xenial
PHP: php7.0-fpm 7.0.8-0ubuntu0.16.04.2
If /etc/php/7.0/fpm/php.ini has syntax error, php7.0-fpm starts
silently (!! no error messages even in logs), but uses default values.
To make php.ini incorrect, just 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
root@xenial:~# /usr/lib/php/php7.0-fpm-checkconf; echo $?
0
So, if php.ini is incorrect, php-fpm silently starts with default
values: post_max_size=8m, expose_php is enabled, disable_functions is
empty and so on.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/php7.0/+bug/1623540/+subscriptions