PHP-FPM not writing to error log

I'm running PHP-FPM 5.3.10 with Suhosin Patch 0.9.10 and Nginx 1.2.0 on Ubuntu 12.04

I've configured error logging for php in /etc/php/fpm/pool.d/mysite.conf as:

php_admin_value[error_log] = fpm-php.mysite.log
php_admin_flag[log_errors] = on

but this file isn't created and if I create it manually it doesn't get errors logged.

I read about a bug here: https://bugs.php.net/bug.php?id=61045 I'm not sure if this is the same thing and I'm not sure how to upgrade because I installed with aptitude install php5-fpm and that package doesn't seem to have been upgraded.

Any suggestions?

2 Replies

I believe you need to use the full path for the errorlog. The errorlog is probably being created, but not where you expect it to be.

You're right! Absolute path did the trick - amazing!

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct