To get PHP error logging on when using Nginx with PHP-FPM you need may need to set catch_workers_output = yes in your pool configuration, on Debian and Ubuntu this would be /etc/php5/fpm/pool.d/www.conf by default.
https://forum.phalcon.io/discussion/9279/500-internal-server-error#C25763
初心者向け補足
プール向け設定ファイル = /etc/php-fpm.d/www.conf
全体の設定ファイル = /etc/php-fpm.confphp-fpmのログまとめ
error.log
php-fpm 全体で出す Errorログです。これは global ディレクティブでしか設定出来ません。 このファイルは、デフォルトでは各プールの標準エラーなどを出力されることはありません。各プールのエラーを出力したいならば catch_workers_output = yes を、プールの設定ファイルに記載します。 ただし、このパラーメータには注釈があります。
; Redirect worker stdout and stderr into main error log. If not set, stdout and ; stderr will be redirected to /dev/null according to FastCGI specs. ; Note: on highloaded environement, this can cause some delay in the page ; process time (several ms). ; Default Value: noパフォーマンスに若干影響するということなので、気になる人はデフォルトの noが良いでしょう。
このファイルはphp-fpm マスタープロセスがつかみます。ので、logrotate時にシグナルを打つ必要があります。
nginx + php-fpm の組み合わせのErrorログ出力を理解する - 続 カッコの付け方 2016
/usr/local/etc/logrotate.d/php-fpm /var/log/php-fpm.log { rotate 12 weekly missingok notifempty compress delaycompress postrotate [ ! -f /var/run/php-fpm.pid ] || kill -USR1 `cat /var/run/php-fpm.pid` endscript }