nanobox-io/nanobox-engine-php

php.ini set to log on a file not being watched

fariasf opened this issue · 2 comments

The default php.ini is set to log on /data/var/log/php/error.log (https://github.com/nanobox-io/nanobox-engine-php/blob/master/templates/php/php.ini.mustache#L36).

But php-server, and I think the default log_watch value for prod (not sure if that's the right file) watch for a different path: /data/var/log/php/php_error.log.

As a result, the default behavior ignores the PHP error logs (they are stored, but not displayed to the user unless adding a custom log_watch entry to the boxfile for production and starting the servers with a custom command for local development).

This should be fixed now

Thanks! Indeed, PR #76 fixes it. LGTM!