PHP5-FPM not reporting errors to web servers (fastcgi clients, such as nginx)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
php |
Unknown
|
Unknown
|
|||
php5 (Debian) |
Fix Released
|
Unknown
|
|||
php5 (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Precise |
Fix Released
|
Medium
|
Thomas Ward |
Bug Description
[TESTCASE]
* Cause PHP to throw an error, which would return a 403, 500, etc. Any PHP error or warning should return a message to nginx or webserver error logs. This does not occur, as intended, and was fixed upstream.
[Regression Potential]
* The upstream patch (attached later in the bug) fixes this, and is a targetted patch to resolve this issue. This patch was included in 5.4.x which was in Debian, and synced to Ubuntu Quantal.
* Regression potential from this is very low, given it is a highly specific patch.
[Other Info]
* [Other Info]
* The debdiff contains a fix also for LP Bug 1006738. As that bug is hard to create a test-case for, discussions with Clint Byrum on IRC made a note that for *that* bugfix, it would be a no-test-case bugfix.
* This bug was not initially tagged with the 'regression' tag. however, it is a regression in Precise from Oneiric.
-- Thomas Ward <trekcaptainusa-tw>
------
Since updating Ubuntu to 12.04, the included php version contains a bug that causes errors to not be sent upstream to the web server. This error is a regression from the version supplied with Ubuntu 11.10 (5.3.6-13ubuntu3.7 0).
Using php5-fpm version: 5.3.10-1ubuntu3.1
This bug has been reported and patched upstream, but has not yet been included in a release:
https:/
This bug makes running php5 in fastcgi mode on Ubuntu very problematic, as errors are never reported to the nginx error.log, which impedes debugging. This can be worked around by enabling an independent error log in php.ini, but it would be much simpler for new users if this worked out of the box.
Changed in php5 (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → Medium |
tags: | added: precise |
Changed in php5 (Debian): | |
status: | Unknown → Confirmed |
Changed in php5 (Debian): | |
status: | Confirmed → Fix Released |
Changed in php5 (Ubuntu Precise): | |
status: | New → Triaged |
importance: | Undecided → Medium |
description: | updated |
tags: | removed: cgi error logging nginx |
summary: |
- PHP5-FPM not reporting errors to web server (nginx) + PHP5-FPM not reporting errors to web servers (fastcgi clients, such as + nginx) |
Can you do me a favor and define what errors you're talking about? Are you talking specifically about php-level errors, and not HTTP status code errors (403, 404, 500, 502, etc.)?