{"id":816,"date":"2018-06-07T15:59:55","date_gmt":"2018-06-07T15:59:55","guid":{"rendered":"http:\/\/sls.gmu.edu\/web\/?p=816"},"modified":"2020-02-19T18:15:50","modified_gmt":"2020-02-19T18:15:50","slug":"upgrading-to-php-7","status":"publish","type":"post","link":"https:\/\/sls.gmu.edu\/web\/2018\/06\/07\/upgrading-to-php-7\/","title":{"rendered":"Upgrading to PHP 7"},"content":{"rendered":"<p>This guide is for CentOS Linux systems running PHP 5.3 and up.<\/p>\n<p>Start by logging into WHM and making sure the server is on Apache 4. Use EasyApache 4 to upgrade if necessary.<\/p>\n<p>To upgrade PHP 7, SSH into the server and download Remi and EPEL Repository:<\/p>\n<p><code>$ wget -q http:\/\/rpms.remirepo.net\/enterprise\/remi-release-7.rpm<br \/>\n$ wget -q https:\/\/dl.fedoraproject.org\/pub\/epel\/epel-release-latest-7.noarch.rpm<\/code><\/p>\n<p>Enable the respositories:<\/p>\n<p><code># rpm -Uvh remi-release-7.rpm epel-release-latest-7.noarch.rpm<br \/>\nFOR PHP 7.0 EXECUTE:<br \/>\n# yum-config-manager --enable remi-php70<br \/>\nFOR PHP 7.1 EXECUTE:<br \/>\n# yum-config-manager --enable remi-php71<\/code><\/p>\n<p>Then upgrade to PHP 7:<br \/>\n<code># yum update<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This guide is for CentOS Linux systems running PHP 5.3 and up. Start by logging into WHM and making sure the server is on Apache 4. Use EasyApache 4 to upgrade if necessary. To upgrade PHP 7, SSH into the server and download Remi and EPEL Repository: $ wget -q http:\/\/rpms.remirepo.net\/enterprise\/remi-release-7.rpm $ wget -q https:\/\/dl.fedoraproject.org\/pub\/epel\/epel-release-latest-7.noarch.rpm &hellip; <a href=\"https:\/\/sls.gmu.edu\/web\/2018\/06\/07\/upgrading-to-php-7\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Upgrading to PHP 7&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[11],"tags":[41],"class_list":["post-816","post","type-post","status-publish","format-standard","hentry","category-web-development","tag-php"],"_links":{"self":[{"href":"https:\/\/sls.gmu.edu\/web\/wp-json\/wp\/v2\/posts\/816","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sls.gmu.edu\/web\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sls.gmu.edu\/web\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sls.gmu.edu\/web\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sls.gmu.edu\/web\/wp-json\/wp\/v2\/comments?post=816"}],"version-history":[{"count":0,"href":"https:\/\/sls.gmu.edu\/web\/wp-json\/wp\/v2\/posts\/816\/revisions"}],"wp:attachment":[{"href":"https:\/\/sls.gmu.edu\/web\/wp-json\/wp\/v2\/media?parent=816"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sls.gmu.edu\/web\/wp-json\/wp\/v2\/categories?post=816"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sls.gmu.edu\/web\/wp-json\/wp\/v2\/tags?post=816"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}