I'm using Alpine / Nginx / PHP-FPM 7.1.2.
I can't get PHP error's to display or output to the error.log
in my Nginx server block. The access.log
seems to work just fine.
I've got this at the bottom of www.conf
in /usr/local/etc/php-fpm.d/
php_flag[display_errors] = on
php_admin_value[error_log] = /var/log/fpm-php.www.log
php_admin_flag[log_errors] = on
There is nothing in Docker logs and there are no errors in /var/log/fpm-php.www.log
either...
What do I need to do display and log errors?
I've also tried the error log as: /proc/self/fd/2
Я думаю, это было потому, что уровень сообщения об ошибках не был установлен в моем Dockerfile:
RUN echo "php_admin_value[error_reporting] = E_ALL & ~E_NOTICE & ~E_WARNING & ~E_STRICT & ~E_DEPRECATED">>/usr/local/etc/php-fpm.d/www.conf
Это приводит к появлению ошибок на экране и в журнале.
Надеюсь, кому-нибудь поможет ..