Koozali.org: home of the SME Server

php display_errors

Offline groyk

  • ****
  • 140
  • +0/-0
php display_errors
« on: June 11, 2009, 08:47:12 PM »
Hi

Ive tried to enable display_errors as standard on my SME 7.x server with no luck

I've changed following

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

mysql.allow_persistent                 = On
error_reporting                        = E_ALL & ~E_NOTICE
display_errors                         = On (WAS OFF BEFORE)
display_startup_errors                 = Off
log_errors                             = On
error_log                              = syslog
track_errors                           = Off
warn_plus_overloading                  = Off

And restarted the whole system.

But I still get a blank page on PHP errors, why??

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: php display_errors
« Reply #1 on: June 11, 2009, 09:04:21 PM »
Hi

Ive tried to enable display_errors as standard on my SME 7.x server with no luck

I've changed following

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

mysql.allow_persistent                 = On
error_reporting                        = E_ALL & ~E_NOTICE
display_errors                         = On (WAS OFF BEFORE)
display_startup_errors                 = Off
log_errors                             = On
error_log                              = syslog
track_errors                           = Off
warn_plus_overloading                  = Off

And restarted the whole system.

But I still get a blank page on PHP errors, why??
As you are doing it wrong: http://wiki.contribs.org/PHP#Display_Error_Messages
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline groyk

  • ****
  • 140
  • +0/-0
Re: php display_errors
« Reply #2 on: June 12, 2009, 09:52:13 AM »
Hi Cactus

Thank you for your fast reply.

Now I can get it work with php4

But how do I manage to let php5 do it?
I have installed PHP5 as cgi.

http://wiki.contribs.org/PHP5

Offline groyk

  • ****
  • 140
  • +0/-0
Re: php display_errors
« Reply #3 on: June 12, 2009, 10:03:11 AM »
Hi again cactus

Now I've found out. Ofcourse same procedure just

/etc/e-smith/templates/etc/php5/php.ini

then make custom template.