PHP-FPM not writing to Error Log, Round 2

Similar problem to http://forum.linode.com/viewtopic.php?t=9125&p=52481 but my paths are absolute already.

http://pastebin.com/gZbRAwRw contains my current php-fpm config. I am having a problem with php-fpm silently failing to load a script, the only reason I know it is failing at all is a 404 error in the nginx debug log, but the paths appear right - if I combine $DOCUMENTROOT and $SCRIPTNAME as given in the debug log, the file exists (it is not chrooted). I can't get anything more out of the nginx log, and despite a directive in the /etc/php-fpm.d/www.conf file for it to log to /var/log/php-fpm/www-error.log - it does not. I know it is using that file because ps aux gets me:

nginx 32436 0.0 5.4 357764 27000 ? S 01:52 0:02 php-fpm: pool www

showing it is using the right pool.

I'm using PHP 5.3.19, which should have the fixes for the bug some reported earlier in the year regarding logging. I have the setting on to log the output of child processes as well. Yet the log either doesn't exist, or if I create it manually it stays at 0 bytes. Any suggestions (for this, or for the nginx 404 thing for that matter) would be much appreciated.

1 Reply

For what its worth, I updated to PHP 5.4.9 and it started logging. Still having issues with WordPress and HTTPS but those are for another time. Thanks!

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