{"id":510,"date":"2012-05-28T15:33:47","date_gmt":"2012-05-28T14:33:47","guid":{"rendered":"http:\/\/blogs.silicontechnix.com\/?p=510"},"modified":"2012-05-28T15:58:26","modified_gmt":"2012-05-28T14:58:26","slug":"update-centos-5-php-5-1-to-php-5-3","status":"publish","type":"post","link":"https:\/\/blogs.silicontechnix.com\/?p=510","title":{"rendered":"Update PHP 5.1 to PHP 5.3 in CentOS"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p>Updating PHP in CentOS to latest PHP 5.3 or PHP 5.4 is not an easy task so I am writing this post. I had to do this for a project in which I need to install latest Zend Loader with PHP 5.3 support.<!--more--><\/p>\n<p>So let\u2019s get some action:<\/p>\n<pre class=\"brush:bash\">wget http:\/\/dl.fedoraproject.org\/pub\/epel\/5\/i386\/epel-release-5-4.noarch.rpm<\/pre>\n<pre class=\"brush:bash\">wget http:\/\/rpms.famillecollet.com\/enterprise\/remi-release-5.rpm<\/pre>\n<pre class=\"brush:bash\">rpm -Uvh remi-release-5*.rpm epel-release-5*.rpm<\/pre>\n<p>With the above command we have downloaded and installed the EPEL and<br \/>\nREMI repositories, you might ask your self what does EPEL and REMI stand<br \/>\nfor? Let me clarify you that:<\/p>\n<blockquote><p><strong>EPEL<\/strong><br \/>\nExtra Packages for Enterprise Linux (EPEL) is a<br \/>\nvolunteer-based community effort from the Fedora project to create a repository of high-quality add-on packages for <a title=\"Red Hat Enterprise Linux\" href=\"https:\/\/fedoraproject.org\/wiki\/Red_Hat_Enterprise_Linux\"> Red Hat Enterprise<\/a> <strong>(RHEL)<\/strong> and its compatible spin-offs such as CentOS or Scientific Linux. Fedora is the upstream of RHEL and add-on packages for EPEL are sourced from the Fedora repository primarily and built against RHEL.<\/p>\n<p><strong>REMI<\/strong><br \/>\nThis is a repository created by Remi Collet with the aim to give support for old Fedora releases to allow them to install recent software, also it gives you the ability to have your CentOS\/RHEL systems with the latest software available in the net.<\/p><\/blockquote>\n<p>Now it\u2019s time to update our PHP to the latest one (Which is PHP 5.3.0 (cli) (built: Jul 19 2009 18:22:52) in this moment)<\/p>\n<pre class=\"brush:bash\">yum --enablerepo=remi update php php-*<\/pre>\n<pre class=\"brush:bash\">\/etc\/init.d\/httpd restart<\/pre>\n<p>&nbsp;<\/p>\n<p>And that\u2019s it!<\/p>\n<p>You can check your installed PHP version executing:<\/p>\n<pre class=\"brush:bash\">php -v<\/pre>\n<p><a href=\"https:\/\/blogs.silicontechnix.com\/wp-content\/uploads\/2012\/05\/php-version.png\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"517\" data-permalink=\"https:\/\/blogs.silicontechnix.com\/?attachment_id=517\" data-orig-file=\"https:\/\/blogs.silicontechnix.com\/wp-content\/uploads\/2012\/05\/php-version.png\" data-orig-size=\"632,66\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}\" data-image-title=\"php-version\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/blogs.silicontechnix.com\/wp-content\/uploads\/2012\/05\/php-version-300x31.png\" data-large-file=\"https:\/\/blogs.silicontechnix.com\/wp-content\/uploads\/2012\/05\/php-version.png\" class=\"size-full wp-image-517 aligncenter\" title=\"php-version\" src=\"https:\/\/blogs.silicontechnix.com\/wp-content\/uploads\/2012\/05\/php-version.png\" alt=\"\" width=\"632\" height=\"66\" srcset=\"https:\/\/blogs.silicontechnix.com\/wp-content\/uploads\/2012\/05\/php-version.png 632w, https:\/\/blogs.silicontechnix.com\/wp-content\/uploads\/2012\/05\/php-version-300x31.png 300w\" sizes=\"auto, (max-width: 632px) 100vw, 632px\" \/><\/a><\/p>\n<p>Hope it help. Do let me know.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; Updating PHP in CentOS to latest PHP 5.3 or PHP 5.4 is not an easy task so I am writing this post. I had to do this for a project in which I need to install latest Zend Loader with PHP 5.3 support.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_s2mail":"no","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","enabled":false},"version":2}},"categories":[12,95,127],"tags":[223,8,224,225],"class_list":["post-510","post","type-post","status-publish","format-standard","hentry","category-programming","category-system-administration","category-tips","tag-centos","tag-php","tag-php-5-1","tag-php-5-3"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p12j6H-8e","_links":{"self":[{"href":"https:\/\/blogs.silicontechnix.com\/index.php?rest_route=\/wp\/v2\/posts\/510","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.silicontechnix.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.silicontechnix.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.silicontechnix.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.silicontechnix.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=510"}],"version-history":[{"count":12,"href":"https:\/\/blogs.silicontechnix.com\/index.php?rest_route=\/wp\/v2\/posts\/510\/revisions"}],"predecessor-version":[{"id":522,"href":"https:\/\/blogs.silicontechnix.com\/index.php?rest_route=\/wp\/v2\/posts\/510\/revisions\/522"}],"wp:attachment":[{"href":"https:\/\/blogs.silicontechnix.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=510"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.silicontechnix.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=510"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.silicontechnix.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=510"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}