PHP error logging?
Posted by: kenahoo
Posted on: 2009-08-19 19:44:00
I'm a little confused about where my PHP error stream (e.g. error_log() output) is going. In my .htaccess I've got "php_flag log_errors On" (which according to phpinfo() doesn't seem to have any effect). In my script, I've got "ini_set("log_errors","On");" (which does turn on the switch, according to phpinfo()). But still when I call error_log("Test error log"), I don't see any content in /home/username/logs/sitename.org/http/error.log - the file is zero-size.
My /home/username/logs/sitename.org/http/access.log file seems fine, it gets updated with every request.
Any advice is appreciated, thanks.