On Friday 08 March 2002 22:13, Michael Sims wrote:
> I hope this isn't too obvious of a question, but I've been looking around
> for the past hour and can't seem to find an answer to this.
> Currently I have set the "error_log = syslog" directive in my php.ini file
> (this is on a Redhat 7.2 machine running PHP 4.1.2, and the syslog deamon
> that comes with RH 7.2 (sysklogd-1.4.1-4)) and it's working fine, sending
> all PHP errors to /var/log/messages.
> I'd love to be able to send any errors from PHP to a completely separate
> file, say something like /var/log/php_errors. Does anyone know of a way to
> do this? I gather it has to do with using /etc/syslog.conf to redirect
> messages from a particular facility to that file, but I have no idea which
> facility PHP uses. I tried grepping the source but it's a bit over my head
> so I didn't really know what to look for...
error_log = /some/path/or/another/php-error.log
Make sure the user running the webserver (with RH7.2 it should be apache) has
write access to the above directory/file
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
A handful of patience is worth more than a bushel of brains.
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php