PHP log errors

PHP log errors

am 30.12.2007 11:45:35 von twomt

Hello,

I am logging errors into a phperrors.log file and not anymore display
them through the browser.

Only problem I have now is that it does not show errors generated by php
scripts called from the browser, but only by those that are executed
from the command line or through cron.

Does anyone have an idea if I am doing something wrong here?

display_errors = Off

log_errors = On
error_log = /home/user/domain/public_html/phperrors.log

Thanks,
twomt

--
Nemesis War
Online browser based space combat game.
It's free, it's great, you'll love it.
Come join us at http://www.nemesiswar.net/

Re: PHP log errors

am 30.12.2007 17:53:12 von luiheidsgoeroe

On Sun, 30 Dec 2007 11:45:35 +0100, twomt wrot=
e:
> I am logging errors into a phperrors.log file and not anymore display =
=

> them through the browser.

A very wise descision.

> Only problem I have now is that it does not show errors generated by p=
hp =

> scripts called from the browser, but only by those that are executed =

> from the command line or through cron.
>
> Does anyone have an idea if I am doing something wrong here?
>
> display_errors =3D Off
>
> log_errors =3D On
> error_log =3D /home/user/domain/public_html/phperrors.log

Possibly the cli and the webserver use a different php.ini. What does a =
=

phpinfo() in both tell you? And if not, has the webserver write privilig=
es =

to your logfile?
-- =

Rik Wasmus

Re: PHP log errors

am 31.12.2007 07:48:17 von twomt

Rik Wasmus wrote:
> On Sun, 30 Dec 2007 11:45:35 +0100, twomt wrote:
>> I am logging errors into a phperrors.log file and not anymore display
>> them through the browser.
>
> A very wise descision.
>
>> Only problem I have now is that it does not show errors generated by
>> php scripts called from the browser, but only by those that are
>> executed from the command line or through cron.
>>
>> Does anyone have an idea if I am doing something wrong here?
>>
>> display_errors = Off
>>
>> log_errors = On
>> error_log = /home/user/domain/public_html/phperrors.log
>
> Possibly the cli and the webserver use a different php.ini. What does a
> phpinfo() in both tell you? And if not, has the webserver write
> priviliges to your logfile?
> --Rik Wasmus

So simple...

Thanks for the push in the right direction ;)

--
Nemesis War
Online browser based space combat game.
It's free, it's great, you'll love it.
Come join us at http://www.nemesiswar.net/