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
-
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
-
Of course, it does get logged to the system log, so you're not left completely in the dark...
-
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.
-
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
-
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
-
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
-
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
-
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