PHP error logging?


#1

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.


#2

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