{"id":546,"date":"2021-07-21T18:43:13","date_gmt":"2021-07-21T23:43:13","guid":{"rendered":"https:\/\/muthii.com\/blog\/?p=546"},"modified":"2021-07-27T22:18:34","modified_gmt":"2021-07-28T03:18:34","slug":"update-remi-php-to-next-version","status":"publish","type":"post","link":"https:\/\/muthii.com\/blog\/?p=546","title":{"rendered":"Update Remi PHP to next version"},"content":{"rendered":"\n<p>Since Centos ships with an old PHP version, there are many tutorials on how to install Remi PHP which enables you to use more modern versions of PHP on your site. But when it came time to update from PHP72 to php73\/4 I couldn&#8217;t find a lot of docs on this so I decided to put this one up to remind me next time am doing this.<\/p>\n\n\n\n<p>First, we will need to enable the PHP version we want to install such as below.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># yum-config-manager --enable remi-php73\n# yum-config-manager --enable remi-php74<\/code><\/pre>\n\n\n\n<p>In my case, I was moving from php72 to 73 before 74 so I enabled 73 and disabled 72.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># yum-config-manager --enable remi-php73\n# yum-config-manager --disable remi-php72<\/code><\/pre>\n\n\n\n<p>After enabling the version you want to move to and disabling your current version, run yum update and restart your webserver.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># yum update\n# apachectl restart<\/code><\/pre>\n\n\n\n<p>To validate the update was successful check the current version of PHP as reported in your terminal, and those are the steps needed to move from one Remi PHP version to another.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># php -v\nPHP 7.3.29 (cli) (built: Jun 29 2021 09:30:31) ( NTS )\nCopyright (c) 1997-2018 The PHP Group\nZend Engine v3.3.29, Copyright (c) 1998-2018 Zend Technologies<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Since Centos ships with an old PHP version, there are many tutorials on how to install Remi PHP which enables you to use more modern versions of PHP on your site. But when it came time to update from PHP72 to php73\/4 I couldn&#8217;t find a lot of docs on this so I decided to &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/muthii.com\/blog\/?p=546\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Update Remi PHP to next version&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,102,10,46],"tags":[],"_links":{"self":[{"href":"https:\/\/muthii.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/546"}],"collection":[{"href":"https:\/\/muthii.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/muthii.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/muthii.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/muthii.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=546"}],"version-history":[{"count":2,"href":"https:\/\/muthii.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/546\/revisions"}],"predecessor-version":[{"id":550,"href":"https:\/\/muthii.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/546\/revisions\/550"}],"wp:attachment":[{"href":"https:\/\/muthii.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=546"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/muthii.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=546"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/muthii.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=546"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}