Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: phil on May 12, 2004, 04:08:30 PM

Title: Edit php.ini to turn on display_errors?
Post by: phil on May 12, 2004, 04:08:30 PM
Is there a way I can safely alter the PHP configuration file to turn on the display_errors feature?

I did locate php.ini on my e-smith box but it showed up several template files, -

Code: [Select]
/etc/e-smith/templates/etc/php.ini
/etc/e-smith/templates/etc/php.ini/20ResourceLimits
/etc/e-smith/templates/etc/php.ini/00PHP
/etc/e-smith/templates/etc/php.ini/70DynamicExtension00
/etc/e-smith/templates/etc/php.ini/10LanguageOptions
/etc/e-smith/templates/etc/php.ini/30ErrorHandling
/etc/e-smith/templates/etc/php.ini/40DataHandling
/etc/e-smith/templates/etc/php.ini/50PathsDirectories
/etc/e-smith/templates/etc/php.ini/60FileUploads
/etc/e-smith/templates/etc/php.ini/65FopenWrappers
/etc/e-smith/templates/etc/php.ini/70DynamicExtension30imap
/etc/e-smith/templates/etc/php.ini/70DynamicExtension50ldap
/etc/e-smith/templates/etc/php.ini/70DynamicExtension70mysql
/etc/e-smith/templates/etc/php.ini/80ModuleSettings
/etc/e-smith/templates/etc/php.ini/template-begin
/etc/php.ini


I'm unsure which file to edit and I don't want to mess anything up...

SME Server 6.0, PHP 4.1.2
Title: Edit php.ini to turn on display_errors?
Post by: ergozd on May 12, 2004, 04:15:16 PM
It should be in

30ErrorHandling file
Title: Edit php.ini to turn on display_errors?
Post by: phil on May 12, 2004, 04:43:27 PM
Cheers, I've changed this file, but I'm not sure if it's had any effect. Do I need to restart Apache (or the machine)?

Loading up a PHP file with phpinfo(); in it shows that display_errors is still Off.
Title: Edit php.ini to turn on display_errors?
Post by: ergozd on May 12, 2004, 06:15:57 PM
In order to activate your change(-s)

Generate new PHP.INI file
# /sbin/e-smith/expand-template /etc/php.ini

Load your new PHP settings
# service httpd restart

Best rgds, Ergin
Title: Edit php.ini to turn on display_errors?
Post by: phil on May 14, 2004, 04:02:23 PM
Excellent - worked a treat. Thanks Ergin  :-)