Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: Guck Puppy on April 17, 2003, 10:55:35 PM

Title: PHP not working (error reporting disabled by default (5.6))
Post by: Guck Puppy on April 17, 2003, 10:55:35 PM
For anybody trying to debug PHP stuff, be aware that in

/etc/e-smith/templates/etc/php.ini/30ErrorHandling

display_errors          = Off

meaning you don't see a damn thing about why PHP things are going wrong.

G
Title: Re: PHP not working (error reporting disabled by default (5.
Post by: Dan Brown on April 17, 2003, 10:58:21 PM
Of course, it does get logged to the system log, so you're not left completely in the dark...
Title: Re: PHP not working (error reporting disabled by default (5.
Post by: Cory on April 18, 2003, 12:01:26 AM
I agree that by default php should atleast display errors... I just turned it on myself though... no biggie, but it might be good to change the default.
Title: Re: PHP not working (error reporting disabled by default (5.
Post by: Guck Puppy on April 20, 2003, 12:05:43 AM
Dan Brown wrote:
> Of course, it does get logged to the system log, so you're
> not left completely in the dark...

Right... that's quite nice if you do :

tail -f /var/log/messages | grep "httpd: PHP"

from the shell...

Thanks for the tip Dan.

G
Title: Re: PHP not working (error reporting disabled by default (5.
Post by: Charlie Brady on April 20, 2003, 02:12:56 AM
Guck Puppy wrote:

> Right... that's quite nice if you do :
>
> tail -f /var/log/messages | grep "httpd: PHP"
>
> from the shell...

No need to go to the shell. There is a search and highlight option in the log file viewer panel.

Charlie
Title: Re: PHP not working (error reporting disabled by default (5.
Post by: Guck Puppy on April 25, 2003, 01:16:44 AM
Charlie Brady wrote:

> > tail -f /var/log/messages | grep "httpd: PHP"
> > from the shell...
>
> No need to go to the shell. There is a search and highlight
> option in the log file viewer panel.

Yes, but as there's no "auto-refresh" in the log viewer panel, I have to go get the results - tailing gives me them as they happen...

I've asked for auto-refreshing in the wishlist though.

Cheers,

G
Title: Re: PHP not working (error reporting disabled by default (5.
Post by: Charlie Brady on April 25, 2003, 08:34:41 AM
Guck Puppy wrote:

> Yes, but as there's no "auto-refresh" in the log viewer
> panel, I have to go get the results - tailing gives me them
> as they happen...
>
> I've asked for auto-refreshing in the wishlist though.

Why don't you try to implement it yourself?

[Hopefully people understand that the wishlist is a sharing place of ideas that anyone might implement. There's no way we can provide all that's requested there.]

Charlie
Title: Re: PHP not working (error reporting disabled by default (5.
Post by: Guck Puppy on April 26, 2003, 02:51:04 AM
This wouldn't be possible via a custom template fragment though... would it?

This is core SME perlmagick/formagick stuff... right? Would it end up as an rpm?

G