{"id":1049,"date":"2011-07-11T12:02:50","date_gmt":"2011-07-11T17:02:50","guid":{"rendered":"http:\/\/oceanimagery.com\/journal\/?p=1049"},"modified":"2011-07-15T13:12:46","modified_gmt":"2011-07-15T18:12:46","slug":"upgrading-php-for-wordpress-v3-2","status":"publish","type":"post","link":"http:\/\/oceanimagery.com\/journal\/2011\/07\/11\/upgrading-php-for-wordpress-v3-2\/","title":{"rendered":"Upgrading PHP for WordPress v3.2&#8230;"},"content":{"rendered":"<p><a href=\"http:\/\/wordpress.org\/download\/\" target=\"_blank\">WordPress v3.2<\/a> was just released last week and if you didn&#8217;t bother to read the Development Blog you probably didn&#8217;t get the memo that some of the minimum system requirements for the new version of WordPress\u00a0have changed. Your system must now support PHP 5.2.4 or better and MySQL 5.0 or better. In other words, older systems that do not get maintained and updated on a somewhat regular basis might have a problem when users of WordPress try to update their blogs to version 3.2! If you&#8217;re an end-user running your blog on someone else&#8217;s server, you will simply need to contact your server administrator and have them perform the upgrades. \u00a0If you&#8217;re like me and maintain your own servers, you&#8217;ll have to perform the upgrades yourself.<\/p>\n<p>You can find the how-to info online at the <a title=\"php.net\/downloads\" href=\"http:\/\/php.net\/downloads.php\" target=\"_blank\">php.net<\/a> Website or by searching your particular system and the module you&#8217;re looking to upgrade on Google. For my system, which is a Linux system running CentOS v5.6, it was a fairly easy upgrade, but the trick is that only one version of PHP can be installed and running on the server at a time. PHP 5.1.x will not upgrade automatically to the new version PHP 5.3.6, so you first have to uninstall\u00a0the old version completely before installing the new version. If you&#8217;re running CentOS 5.6 (or <a title=\"Red Hat 5.6 Release Notes\" href=\"http:\/\/docs.redhat.com\/docs\/en-US\/Red_Hat_Enterprise_Linux\/5\/html-single\/5.6_Release_Notes\/index.html#id977001\">Red Hat 5.6 for Linux<\/a>) there are now PHP 5.3 packages already included in the OS, and ready to be installed.\u00a0<!--more--><\/p>\n<p>Here&#8217;s how you can upgrade from an installed version of PHP 5.1.x to PHP 5.3.6 using &#8216;command line&#8217;.<\/p>\n<p>1) First stop the Apache Web Server:<\/p>\n<p>~# service httpd stop<\/p>\n<p>2) Remove the old 5.1.x PHP Packages:<\/p>\n<p>~# yum remove php php-*<\/p>\n<p>~# yum remove php-common<\/p>\n<p>3)\u00a0Install the new PHP 5.3 packages:<\/p>\n<p>~# yum install php53<\/p>\n<p>~# yum install php53-cli<\/p>\n<p>~# yum install php53-common<\/p>\n<p>~# yum install php53-devel (If you need development support)<\/p>\n<p>~# yum install php53-gd (Needed for a verity of WordPress plugins)<\/p>\n<p>~# yum install php53-mbstring<\/p>\n<p>~# yum install php53-mysql<\/p>\n<p>~# yum install php53-soap<\/p>\n<p>~# yum install php53-xml<\/p>\n<p>~# yum install php53-xmlrpc<\/p>\n<p>~# yum install php53-bcmath<\/p>\n<p>~# yum install php53-snmp<\/p>\n<p>4) Start Apache again:<\/p>\n<p>~# service httpd start<\/p>\n<p>And that&#8217;s all there is to it. You need to also check to see what MySQL database version you&#8217;re running, but if it&#8217;s 5.0 or better you shouldn&#8217;t have any problems updating to WordPress 3.2.<\/p>\n\n<!-- Facebook Like Button v1.9.6 BEGIN [http:\/\/blog.bottomlessinc.com] -->\n<iframe src=\"http:\/\/www.facebook.com\/plugins\/like.php?href=http%3A%2F%2Foceanimagery.com%2Fjournal%2F2011%2F07%2F11%2Fupgrading-php-for-wordpress-v3-2%2F&amp;layout=standard&amp;show_faces=false&amp;width=450&amp;action=like&amp;colorscheme=dark\" scrolling=\"no\" frameborder=\"0\" allowTransparency=\"true\" style=\"border:none; overflow:hidden; width:450px; height: 30px; align: left; margin: 2px 0px 0px 0px\"><\/iframe>\n<!-- Facebook Like Button END -->\n","protected":false},"excerpt":{"rendered":"<p>WordPress v3.2 was just released last week and if you didn&#8217;t bother to read the Development Blog you probably didn&#8217;t get the memo that some of the minimum system requirements for the new version of WordPress\u00a0have changed. Your system must now support PHP 5.2.4 or better and MySQL 5.0 or better. In other words, older [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,214],"tags":[329,212,213,68,66],"class_list":["post-1049","post","type-post","status-publish","format-standard","hentry","category-computers","category-wordpress-2","tag-computers","tag-linux","tag-php","tag-upgrade","tag-wordpress"],"_links":{"self":[{"href":"http:\/\/oceanimagery.com\/journal\/wp-json\/wp\/v2\/posts\/1049","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/oceanimagery.com\/journal\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/oceanimagery.com\/journal\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/oceanimagery.com\/journal\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/oceanimagery.com\/journal\/wp-json\/wp\/v2\/comments?post=1049"}],"version-history":[{"count":11,"href":"http:\/\/oceanimagery.com\/journal\/wp-json\/wp\/v2\/posts\/1049\/revisions"}],"predecessor-version":[{"id":1112,"href":"http:\/\/oceanimagery.com\/journal\/wp-json\/wp\/v2\/posts\/1049\/revisions\/1112"}],"wp:attachment":[{"href":"http:\/\/oceanimagery.com\/journal\/wp-json\/wp\/v2\/media?parent=1049"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/oceanimagery.com\/journal\/wp-json\/wp\/v2\/categories?post=1049"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/oceanimagery.com\/journal\/wp-json\/wp\/v2\/tags?post=1049"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}