I have this php-fpm.conf
[example.com]
listen = 127.0.0.1:9001
listen.owner = example.com
listen.group = example.com
listen.mode = 0660
listen.backlog = -1
user = example.com
group = example.com
pm = dynamic
pm.max_requests = 0
pm.max_children = 2
pm.start_servers = 1
pm.min_spare_servers = 1
pm.max_spare_servers = 1
chroot = /home/vhosts/example.com/
request_terminate_timeout = 2
request_slowlog_timeout = 1
slowlog = /home/vhosts/example.com/log/php-slow.log
catch_workers_output = yes
env[HOSTNAME] = $HOSTNAME
env[PATH] = /usr/local/bin:/usr/bin:/bin
env[TMP] = /tmp
env[TMPDIR] = /tmp
env[TEMP] = /tmp
php_flag[display_errors] = on
php_admin_value[session.save_path] = /tmp
php_admin_value[error_log] = /home/vhosts/example.com/log/php-error.log
php_admin_flag[log_errors] = on
php_admin_value[memory_limit] = 100M
php_value[max_execution_time] = 20
I don't understand why /home/vhosts/example.com/log/php-error.log is empty, I caused some errors like 10 / 0 (Zero division) etc etc, I see the error as output but the php-error.log still empty.
I chrooted my vhost, but If i change
/home/vhosts/example.com/log/php-error.log
to
/log/php-error.log
I get a really strange error, when I do "10 / 0"!
Fatal error: main(): Timezone database is corrupt - this should *never* happen! in /web/index.php on line 10