php error log
and sets the following parameters:
maxexecutiontime = 30
memory_limit = 128M
errorreporting = ECOMPILEERROR|ERECOVERABLEERROR|EERROR|ECOREERROR
display_errors = Off
log_errors = On
error_log = /var/log/php.log
register_globals = Off
I have restarted apache after entering these parameters. PHP works fine but I need to debug a script from the error log. There is no php.log file in the directory /var/log
As I have set up apache and php according to the guide, I'm surprised that the error log is not working. Any suggestions gratefully received.
4 Replies
It might not have permissions now to create a file in /var/log/
1 edit php.ini to redirect logs to /var/www/php/php.log
2 restarted apache
3 chowned /var/www/php to www-data
4 triggered an error in php
This worked immediately so many thanks. I think maybe the guide should be amended to avoid this problem.