Koozali.org: home of the SME Server

PHP not working (error reporting disabled by default (5.6))

Guck Puppy

PHP not working (error reporting disabled by default (5.6))
« 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

Dan Brown

Re: PHP not working (error reporting disabled by default (5.
« Reply #1 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...

Cory

Re: PHP not working (error reporting disabled by default (5.
« Reply #2 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.

Guck Puppy

Re: PHP not working (error reporting disabled by default (5.
« Reply #3 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

Charlie Brady

Re: PHP not working (error reporting disabled by default (5.
« Reply #4 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

Guck Puppy

Re: PHP not working (error reporting disabled by default (5.
« Reply #5 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

Charlie Brady

Re: PHP not working (error reporting disabled by default (5.
« Reply #6 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

Guck Puppy

Re: PHP not working (error reporting disabled by default (5.
« Reply #7 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