gplessis/dotdeb-php5 — Issue #3: php5-fpm SAPI error log functionality
Author: nicholasrobinson
Created: 2012-02-07 05:38:22+00:00
State: open

There is a problem with php5-fpm_5.3.10-1~dotdeb.1 / php5-common_5.3.10-1~dotdeb.1 . This version prevents fpm passing error_log output to nginx's /var/log/nginx/error.log via SAPI. I encounter this issue using nginx 1.0.11-1~dotdeb.1, but it is also present with older nginx releases. The problem is identical to that described here http://www.dotdeb.org/2012/01/12/php-5-3-9/#comment-23461

The problem is encountered when upgrading to php5-fpm_5.3.10-1~dotdeb.1 and eliminated by rolling back to php5-fpm_5.3.8-1~dotdeb.2. Error output via syslog/file functions correctly.

A sample php.ini used with both releases is attached:

/etc/php5/fpm/php.ini
```
[PHP]
engine = On
short_open_tag = Off
asp_tags = Off
precision = 14
y2k_compliance = On
output_buffering = 4096
zlib.output_compression = Off
implicit_flush = Off
unserialize_callback_func =
serialize_precision = 17
allow_call_time_pass_reference = Off
safe_mode = Off
safe_mode_gid = Off
safe_mode_include_dir =
safe_mode_exec_dir =
safe_mode_allowed_env_vars = PHP_
safe_mode_protected_env_vars = LD_LIBRARY_PATH
disable_functions =
disable_classes =
expose_php = On
max_execution_time = 30
max_input_time = 60
memory_limit = 128M
error_reporting = E_ALL & ~E_DEPRECATED
display_errors = Off
display_startup_errors = Off
log_errors = On
log_errors_max_len = 1024
ignore_repeated_errors = Off
ignore_repeated_source = Off
report_memleaks = On
track_errors = Off
html_errors = Off
variables_order = "GPCS"
request_order = "GP"
register_globals = Off
register_long_arrays = Off
register_argc_argv = Off
auto_globals_jit = On
post_max_size = 8M
magic_quotes_gpc = Off
magic_quotes_runtime = Off
magic_quotes_sybase = Off
auto_prepend_file =
auto_append_file =
default_mimetype = "text/html"
doc_root =
user_dir =
enable_dl = Off
file_uploads = On
upload_max_filesize = 2M
max_file_uploads = 20
allow_url_fopen = On
allow_url_include = Off
default_socket_timeout = 60
```

------------------------------------------------------------------------------------------

Older packages that do not exhibit this issue can be found here:

php5-fpm_5.3.8-1~dotdeb.2_amd64.deb
http://archives.dotdeb.org/dists/squeeze/php5/5.3.8/binary-amd64/php5-fpm_5.3.8-1~dotdeb.2_amd64.deb

(depends)
php5-common_5.3.8-1~dotdeb.2_amd64.deb
http://archives.dotdeb.org/dists/squeeze/php5/5.3.8/binary-amd64/php5-common_5.3.8-1~dotdeb.2_amd64.deb