{"id":772,"date":"2020-10-14T17:39:56","date_gmt":"2020-10-14T14:39:56","guid":{"rendered":"https:\/\/www.scalahosting.com\/kb\/?p=772"},"modified":"2022-08-30T13:32:59","modified_gmt":"2022-08-30T10:32:59","slug":"how-to-change-the-php-version-of-a-website","status":"publish","type":"post","link":"https:\/\/www.scalahosting.com\/kb\/how-to-change-the-php-version-of-a-website\/","title":{"rendered":"How to Change the PHP Version of a Website"},"content":{"rendered":"\n<p><span style=\"font-weight: 400;\">If your job has anything to do with computers, you are most probably familiar with the constant reminders about the <\/span><b>importance of using the latest version of every single piece of software<\/b><span style=\"font-weight: 400;\"> you interact with. Chances are, you are even more familiar with the problems this could cause sometimes.<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">Unfortunately, far too often, compatibility issues, higher hardware requirements, and bugs go hand-in-hand with the process of applying software updates. Yet, despite this, experts continue to advocate the use of the most recent versions of<\/span><b> every single piece of software<\/b><span style=\"font-weight: 400;\">. PHP, the programming language that powers close to <\/span><b>80% of the world&#8217;s websites<\/b><span style=\"font-weight: 400;\">, is no exception. But do website owners actually heed the advice?<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">PHP&#8217;s latest major release is <\/span><b>PHP 7.4<\/b><span style=\"font-weight: 400;\">, but according to <\/span><b>W3Techs&#8217; usage statistics<\/b><span style=\"font-weight: 400;\">, about<\/span><b> 43% of all PHP websites still use PHP 5.<\/b><span style=\"font-weight: 400;\"> Of the rest, nearly a third employ <\/span><b>PHP 7.2<\/b><span style=\"font-weight: 400;\">, which is rapidly approaching its <\/span><b>end of support in November 2020.<\/b><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><b>Changing the PHP version in SPanel<\/b><\/h2>\n\n\n\n<p><b>Because PHP is so popular and because different websites<\/b><span style=\"font-weight: 400;\"> require different versions of the programming language, we needed to make sure that<\/span><b> changing the PHP version is quick and easy<\/b><span style=\"font-weight: 400;\">. Here&#8217;s how to do it:<br><\/span><\/p>\n\n\n\n<ol class=\"wp-block-list\"><li><strong>Log into SPanel&#8217;s User Interface and open the PHP manager.<\/strong><br>The default login URL for SPanel&#8217;s User Interface is <em>https:\/\/yourdomain.com\/spanel <\/em>(make sure you swap yourdomain.com for your actual domain). The <strong>PHP Manager<\/strong> is available under the <strong>Tools <\/strong>section on the homepage.<\/li><\/ol>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"853\" height=\"305\" src=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2020\/10\/250.png\" alt=\"How to Change the PHP Version of a Website, Changing the PHP version in SPanel\" class=\"wp-image-3572\" srcset=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2020\/10\/250.png 853w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2020\/10\/250-300x107.png 300w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2020\/10\/250-768x275.png 768w\" sizes=\"(max-width: 361px) 660px, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 910px, 1140px\" \/><\/figure>\n\n\n\n<ol class=\"wp-block-list\" start=\"2\"><li><strong>Click the Change button next to the website you want to modify.<\/strong><br>You&#8217;ll see a list of all the domains and subdomains hosted on your account. You can change the PHP versions of all of them individually.<\/li><\/ol>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"874\" height=\"595\" src=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2020\/10\/251.png\" alt=\"How to Change the PHP Version of a Website, Changing the PHP version in SPanel 2\" class=\"wp-image-3574\" srcset=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2020\/10\/251.png 874w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2020\/10\/251-300x204.png 300w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2020\/10\/251-768x523.png 768w\" sizes=\"(max-width: 361px) 660px, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 910px, 1140px\" \/><\/figure>\n\n\n\n<ol class=\"wp-block-list\" start=\"3\"><li><strong>Choose the PHP version you want to use and save the changes.<\/strong><br>A popup appears with all available PHP versions. Pick the one you want to use and click <strong>Change<\/strong>.<\/li><\/ol>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"835\" height=\"485\" src=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2020\/10\/252.png\" alt=\"How to Change the PHP Version of a Website, Changing the PHP version in SPanel 3\" class=\"wp-image-3578\" srcset=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2020\/10\/252.png 835w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2020\/10\/252-300x174.png 300w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2020\/10\/252-768x446.png 768w\" sizes=\"(max-width: 361px) 660px, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 910px, 1140px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><b>Why is it important to use PHP&#8217;s latest version?<\/b><\/h2>\n\n\n\n<p><span style=\"font-weight: 400;\">We had to give our customers the chance to <\/span><b>run their websites on older PHP versions<\/b><span style=\"font-weight: 400;\">, but this doesn&#8217;t mean that we&#8217;re encouraging it. There are a number of different reasons why you should <\/span><b>switch to PHP&#8217;s latest version,<\/b><span style=\"font-weight: 400;\"> if possible.<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">As always, the most important advantage that the new version brings is the added security. <\/span><b>PHP vulnerabilities<\/b><span style=\"font-weight: 400;\"> are discovered day in, day out, and you need to ensure that <\/span><b>you are protected from them<\/b><span style=\"font-weight: 400;\">. Many people aren&#8217;t.&nbsp;<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">Quite a few websites run on <\/span><b>PHP 5.6<\/b><span style=\"font-weight: 400;\">, for example, which <\/span><b>stopped receiving security updates in January 2019<\/b><span style=\"font-weight: 400;\">. All the security holes that have been discovered since then remain unplugged for websites running on it.<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">Of course, there are other benefits to using the latest version. New <\/span><b>features and performance upgrades <\/b><span style=\"font-weight: 400;\">are constantly introduced, and although there are teething problems and bugs sometimes, when the community supporting the <\/span><b>project is as big as PHP&#8217;s<\/b><span style=\"font-weight: 400;\">, the issues tend to get sorted quite quickly.<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">The only real problems that can appear are related to compatibility. <\/span><b>Older Content Management System plugins and themes<\/b><span style=\"font-weight: 400;\"> might not work correctly under newer PHP versions. If that is the case, however, chances are, <\/span><b>these themes and plugins<\/b><span style=\"font-weight: 400;\"> are security problems themselves, so you might want to think about ditching them for something more modern.&nbsp;<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">In a worst-case scenario, you&#8217;d need to reconfigure the entire website to work with the newer PHP version, which could be a significant task. Even in such cases, however, the <\/span><b>security benefits outweigh any disadvantages by a mile<\/b><span style=\"font-weight: 400;\">.<\/span><\/p>\n\n\n\n<p class=\"youtube-player\" id=\"oFjpDuWFmJU\">How to Change the PHP Version<\/p>\n\n\n\n<p><script type=\"application\/ld+json\">\n{\n\"@context\": \"https:\/\/schema.org\",\n\"@type\": \"VideoObject\",\n\"name\": \"How to Change the PHP Version\",\n\"description\": \"A series of instructional videos about ScalaHosting's SPanel. Learn how to find and change the PHP version on your VPS with a few simple clicks.\",\n\"thumbnailUrl\": [\n\"https:\/\/i3.ytimg.com\/vi\/oFjpDuWFmJU\/maxresdefault.jpg\"\n],\n\"uploadDate\": \"2020-01-03\",\n\"duration\": \"PT0M33S\",\n\"embedUrl\": \"https:\/\/www.youtube.com\/watch?v=oFjpDuWFmJU\"\n}\n<\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If your job has anything to do with computers, you are most probably familiar with the constant reminders about the importance of using the latest version of every single piece of software you interact with. Chances are, you are even more familiar with the problems this could cause sometimes. Unfortunately, far too often, compatibility issues, [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_seopress_robots_primary_cat":"none","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","_seopress_analysis_target_kw":"","footnotes":""},"categories":[66],"tags":[],"class_list":["post-772","post","type-post","status-publish","format-standard","hentry","category-tutorials"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/posts\/772","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/comments?post=772"}],"version-history":[{"count":13,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/posts\/772\/revisions"}],"predecessor-version":[{"id":5048,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/posts\/772\/revisions\/5048"}],"wp:attachment":[{"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/media?parent=772"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/categories?post=772"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/tags?post=772"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}