PHP error logging?


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/ - the file is zero-size.

My /home/username/logs/ file seems fine, it gets updated with every request.

Any advice is appreciated, thanks.


Use php.ini settings. php flags in htaccess won’t work.

Maximum Cash Discount on any plan with MAXCASH

How To Install PHP.INI / ionCube on DreamHost