{"id":3561,"date":"2020-09-25T13:09:10","date_gmt":"2020-09-25T18:09:10","guid":{"rendered":"http:\/\/www.incredigeek.com\/home\/?p=3561"},"modified":"2020-09-25T13:09:10","modified_gmt":"2020-09-25T18:09:10","slug":"librenms-upgrade-php-from-7-2-to-7-4-centos-7","status":"publish","type":"post","link":"https:\/\/www.incredigeek.com\/home\/librenms-upgrade-php-from-7-2-to-7-4-centos-7\/","title":{"rendered":"LibreNMS upgrade PHP from 7.2 to 7.4 &#8211; CentOS 7"},"content":{"rendered":"\n<p>First you&#8217;ll need to install the remi repo<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo wget https:\/\/dl.fedoraproject.org\/pub\/epel\/epel-release-latest-7.noarch.rpm\nsudo wget http:\/\/rpms.remirepo.net\/enterprise\/remi-release-7.rpm\nrpm -Uvh remi-release-7.rpm epel-release-latest-7.noarch.rpm<\/pre>\n\n\n\n<p>You&#8217;ll need to install yum-utils, disable all old php versions, and enable the remi-php74<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo yum install -y yum-utils\nsudo yum-config-manager --disable remi-php56\nsudo yum-config-manager --disable remi-php71\nsudo yum-config-manager --disable remi-php72\nsudo yum-config-manager --disable remi-php73\nsudo yum-config-manager --enable remi-php74<\/pre>\n\n\n\n<p>If you run into issues you may want to see if you have the webtatic repo installed.  I had to disable it to get php to update.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">vi \/etc\/yum.repos.d\/webtatic<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">[webtatic]\nname=Webtatic Repository EL7 - $basearch\nbaseurl=https:\/\/repo.webtatic.com\/yum\/el7\/$basearch\/\nmirrorlist=https:\/\/mirror.webtatic.com\/yum\/el7\/$basearch\/mirrorlist\nfailovermethod=priority\n<strong>enabled=0   &lt;- Disabled by changing to a 0<\/strong>\ngpgcheck=1\ngpgkey=file:\/\/\/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-webtatic-el7<\/pre>\n\n\n\n<p>And running the yum update should update it to php 7.4<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo yum update<\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p>More information available here.<\/p>\n\n\n\n<figure class=\"wp-block-embed-wordpress wp-block-embed is-type-wp-embed is-provider-mystery-data\"><div class=\"wp-block-embed__wrapper\">\nhttps:\/\/www.mysterydata.com\/how-to-install-upgrade-to-php-7-4-on-rhel-centos-vestacp\/\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>First you&#8217;ll need to install the remi repo sudo wget https:\/\/dl.fedoraproject.org\/pub\/epel\/epel-release-latest-7.noarch.rpm sudo wget http:\/\/rpms.remirepo.net\/enterprise\/remi-release-7.rpm rpm -Uvh remi-release-7.rpm epel-release-latest-7.noarch.rpm You&#8217;ll need to install yum-utils, disable all old php versions, and enable the remi-php74 sudo yum install -y yum-utils sudo yum-config-manager &#8211;disable &hellip; <a href=\"https:\/\/www.incredigeek.com\/home\/librenms-upgrade-php-from-7-2-to-7-4-centos-7\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[352],"tags":[353,445,1080,1079,1078],"class_list":["post-3561","post","type-post","status-publish","format-standard","hentry","category-librenms","tag-librenms","tag-php","tag-php7-4","tag-php74","tag-upgrading"],"_links":{"self":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/3561","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/comments?post=3561"}],"version-history":[{"count":1,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/3561\/revisions"}],"predecessor-version":[{"id":3563,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/3561\/revisions\/3563"}],"wp:attachment":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/media?parent=3561"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/categories?post=3561"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/tags?post=3561"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}