{"id":103,"date":"2011-07-19T15:52:21","date_gmt":"2011-07-19T12:52:21","guid":{"rendered":"http:\/\/meekconsulting.com\/?p=103"},"modified":"2011-07-19T15:52:21","modified_gmt":"2011-07-19T12:52:21","slug":"upgrading-php-on-redhat-5","status":"publish","type":"post","link":"https:\/\/meekconsulting.com\/?p=103","title":{"rendered":"Upgrading PHP on redhat 5"},"content":{"rendered":"<p>\ufeff<\/p>\n<p>I updated the php ona redhat box today.<\/p>\n<p>This upgrade now seems to fix a bug in PHP that wouldn\u2019t allow values of > 1.5 Gig on file uploads<\/p>\n<p>I have the settings now set to allow up to 2.5Gig.<\/p>\n<p>The steps I took to upgrade it were:<\/p>\n<p>\u00a0<\/p>\n<p>Be sure to save the \/etc\/php.ini\u00a0 file first:<\/p>\n<blockquote><p>cp \/etc\/php.ini \/etc\/php.ini.save<\/p>\n<p>\u00a0<\/p>\n<p>service httpd stop<\/p>\n<p>\u00a0<\/p>\n<p>yum erase php.x86_64 php-cli.x86_64 php-common.x86_64 php-devel.x86_64 php-mysql.x86_64 php-pdo.x86_64 php-pear.noarch php-pear-MDB2.noarch php-pear-MDB2-Driver-mysql.noarch<\/p>\n<p>\u00a0<\/p>\n<p>yum install php53.x86_64 php53-cli.x86_64 php53-common.x86_64 php53-devel.x86_64 php53-mysql.x86_64 php53-pdo.x86_64 php-pear.noarch php-pear-MDB2.noarch php-pear-MDB2-Driver-mysql.noarch<\/p>\n<p>\u00a0<\/p><\/blockquote>\n<p>Edit the Newly installed php.ini file and copy the customizations we have ( at the top of the file ) \u00a0(NOTE these also exist further down in the file and need to be commented out there in the new file so the only reference to those settings is at the top with our desired values.<\/p>\n<p>\u00a0<\/p>\n<p>service httpd start<\/p>\n<p>[root@svn_repo etc]# vi \/etc\/php.ini<\/p>\n<p>[PHP]<\/p>\n<p>***** Customizations *******<\/p>\n<p>allow_call_time_pass_reference = On<\/p>\n<p>include_path=\u201d.:\/usr\/share\/pear:\/php\/includes:\/usr\/local\/lib\/php\/Smarty\u201d<\/p>\n<p>max_execution_time = 60000<\/p>\n<p>max_input_time = 60000<\/p>\n<p>memory_limit = 2500M<\/p>\n<p>upload_tmp_dir = \/www\/upload_tmp_dir<\/p>\n<p>\u00a0<\/p>\n<p>; Maximum allowed size for uploaded files.<\/p>\n<p>;\u00a0 IMPORTANT NOTE<\/p>\n<p>;\u00a0 DO NOT SET THESE variables > 1500M<\/p>\n<p>;\u00a0 apache gets confused and treats it as a negative number<\/p>\n<p>;\u00a0 and not allow anything to post..\u00a0 K. Meek 10\/09<\/p>\n<p>; NOTE \u2014 make sure the post_max_size and upload_max_filesize is not set to another value below!!<\/p>\n<p>post_max_size = 2500M<\/p>\n<p>upload_max_filesize = 2500M<\/p>\n<p>\u00a0<\/p>\n<p>;*****\u00a0 end customizations ****<\/p>\n<p>\u00a0<\/p>\n<p>\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\ufeff I updated the php ona redhat box today. This upgrade now seems to fix a bug in PHP that wouldn\u2019t allow values of > 1.5 Gig on file uploads I have the settings now set to allow up to &hellip; <a href=\"https:\/\/meekconsulting.com\/?p=103\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/meekconsulting.com\/index.php?rest_route=\/wp\/v2\/posts\/103"}],"collection":[{"href":"https:\/\/meekconsulting.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/meekconsulting.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/meekconsulting.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/meekconsulting.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=103"}],"version-history":[{"count":1,"href":"https:\/\/meekconsulting.com\/index.php?rest_route=\/wp\/v2\/posts\/103\/revisions"}],"predecessor-version":[{"id":104,"href":"https:\/\/meekconsulting.com\/index.php?rest_route=\/wp\/v2\/posts\/103\/revisions\/104"}],"wp:attachment":[{"href":"https:\/\/meekconsulting.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=103"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/meekconsulting.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=103"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/meekconsulting.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=103"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}