-
Notifications
You must be signed in to change notification settings - Fork 275
Closed
Labels
Description
What problem are you trying to solve?
PHP scripts often use error_log() as a quick and dirty logging mechanism. Devbox's PHP plugin does not set error_log in devbox.d/php/php.ini, so calls to error_log() have no effect.
There is a PHPFPM_ERROR_LOG_FILE env variable, and error_log is set in devbox.d/php/php-fpm.conf. I suspect the original author mixed up the php-fpm error_log with the PHP error_log. php-fpm's error_log is relatively uninteresting (logs mainly starts and stops of php-fpm), whereas PHP's error_log is full of interest.
What solution would you like?
I would like to introduce a PHP_ERROR_LOG_FILE env var, alongside the existing PHPFPM_ERROR_LOG_FILE.
PHP_ERROR_LOG_FILE should default to {{ .Virtenv }}/error.log, and should be enabled by default (as with php-fpm's error log).
Alternatives you've considered
No response