On my recent upgrade of php to 5.3, gentoo created a new slot so that people could run 5 and 5.3 in parallel. Gentoo is always giving you options (can you handle it? “ask yourself, do you feel lucky, punk?”). As usual, you must proceed with caution. And as usual, you will probably learn something along the way. This time around, the lesson is on php.ini defaults.
I had to check my old file
/etc/php/apache2-php5/php.ini
against the new
/etc/php/apache2-php5.3/php.ini
and ran into some important issues. Here are the default php.ini settings that should be immediately changed for any production environment:
; Production Value: Off
; http://php.net/display-errors
; MDM Fix the stupid fracking non-production default
; display_errors = On
display_errors = Off
--
; Production Value: Off
; http://php.net/display-startup-errors
; MDM Fix the stupid fracking non-production default
;display_startup_errors = On
display_startup_errors = Off
--
; Production Value: Off
; http://php.net/track-errors
; MDM Fix the stupid fracking non-production default
;track_errors = On
track_errors = Off
--
; Production value: Off
; http://php.net/html-errors
; MDM Fix the stupid fracking non-production default
; html_errors = On
html_errors = Off