{"id":1203,"date":"2011-04-15T10:51:44","date_gmt":"2011-04-15T15:51:44","guid":{"rendered":"http:\/\/bitpost.com\/news\/?p=1203"},"modified":"2012-08-27T12:38:39","modified_gmt":"2012-08-27T17:38:39","slug":"dangerous-php-ini-defaults-are-set-to-development-settings","status":"publish","type":"post","link":"https:\/\/bitpost.com\/news\/2011\/dangerous-php-ini-defaults-are-set-to-development-settings\/","title":{"rendered":"Dangerous php.ini defaults are set to development settings"},"content":{"rendered":"<p>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?  &#8220;ask yourself, do you feel lucky, punk?&#8221;).  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.<!--more-->  <\/p>\n<p>I had to check my old file <\/p>\n<pre><code>\/etc\/php\/apache2-php5\/php.ini<\/code><\/pre>\n<p> against the new <\/p>\n<pre><code>\/etc\/php\/apache2-php5.3\/php.ini<\/code><\/pre>\n<p>and ran into some important issues.  Here are the default php.ini settings that should be <strong>immediately changed<\/strong> for any production environment:<\/p>\n<pre><code>; Production Value: Off\r\n; http:\/\/php.net\/display-errors\r\n; MDM Fix the stupid fracking non-production default\r\n; display_errors = On\r\ndisplay_errors = Off\r\n--\r\n; Production Value: Off\r\n; http:\/\/php.net\/display-startup-errors\r\n; MDM Fix the stupid fracking non-production default\r\n;display_startup_errors = On\r\ndisplay_startup_errors = Off\r\n--\r\n; Production Value: Off\r\n; http:\/\/php.net\/track-errors\r\n; MDM Fix the stupid fracking non-production default\r\n;track_errors = On\r\ntrack_errors = Off\r\n--\r\n; Production value: Off\r\n; http:\/\/php.net\/html-errors\r\n; MDM Fix the stupid fracking non-production default\r\n; html_errors = On\r\nhtml_errors = Off\r\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>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? &#8220;ask yourself, do you feel lucky, punk?&#8221;). As usual, you must proceed with caution. And as usual, you will probably learn something [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"enabled":false},"version":2}},"categories":[15,24],"tags":[165,116,115,43,114,41],"class_list":["post-1203","post","type-post","status-publish","format-standard","hentry","category-gentoo-server","category-php","tag-annoyances","tag-dangerous","tag-development","tag-hacked","tag-production","tag-virtual-hosting"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9M11L-jp","jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/posts\/1203","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/comments?post=1203"}],"version-history":[{"count":9,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/posts\/1203\/revisions"}],"predecessor-version":[{"id":1467,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/posts\/1203\/revisions\/1467"}],"wp:attachment":[{"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/media?parent=1203"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/categories?post=1203"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bitpost.com\/news\/wp-json\/wp\/v2\/tags?post=1203"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}