{"id":863,"date":"2020-09-14T23:52:17","date_gmt":"2020-09-14T18:07:17","guid":{"rendered":"http:\/\/babal.host\/blog\/?p=863"},"modified":"2023-08-17T12:41:45","modified_gmt":"2023-08-17T06:56:45","slug":"how-to-update-php-version-in-cpanel","status":"publish","type":"post","link":"https:\/\/babal.host\/blog\/how-to-update-php-version-in-cpanel\/","title":{"rendered":"How to update PHP version in cPanel?"},"content":{"rendered":"<p>By default, all the web hosting packages are configured on PHP 7.2 but you can change the version to all the way down at 4.4 to the most recent of PHP version per your preference. Here&#8217;s how you can update the PHP version.<\/p>\n<h3><strong>Video for updating PHP version in cPanel:<\/strong><\/h3>\n<p><iframe loading=\"lazy\" title=\"Youtube Video Player\" src=\"https:\/\/www.youtube.com\/embed\/k-O60lhqmlE\" width=\"100%\" height=\"500pt\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><span data-mce-type=\"bookmark\" style=\"display: inline-block; width: 0px; overflow: hidden; line-height: 0;\" class=\"mce_SELRES_start\">\ufeff<\/span><\/iframe><\/p>\n<h3>Blog for updating PHP version in cPanel:<\/h3>\n<ol>\n<li>Login to your cPanel. If you&#8217;re not sure how to, please follow &#8211; &#8220;<a href=\"https:\/\/babal.host\/blog\/how-to-open-cpanel-for-your-website\/\" target=\"_blank\" rel=\"noopener noreferrer\">How to open cPanel for your website?<\/a>&#8220;<\/li>\n<li>Locate &#8220;Select PHP Version&#8221; under &#8220;Software&#8221; and click on it<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-864\" src=\"https:\/\/babal.host\/blog\/wp-content\/uploads\/2020\/09\/php_upgrade_1-1024x236.png\" alt=\"\" width=\"1024\" height=\"236\" srcset=\"https:\/\/babal.host\/blog\/wp-content\/uploads\/2020\/09\/php_upgrade_1-1024x236.png 1024w, https:\/\/babal.host\/blog\/wp-content\/uploads\/2020\/09\/php_upgrade_1-300x69.png 300w, https:\/\/babal.host\/blog\/wp-content\/uploads\/2020\/09\/php_upgrade_1-768x177.png 768w, https:\/\/babal.host\/blog\/wp-content\/uploads\/2020\/09\/php_upgrade_1.png 1360w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/li>\n<li>Click on the &#8220;native (7.2) (current)&#8221; and select the version you want to use<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-865\" src=\"https:\/\/babal.host\/blog\/wp-content\/uploads\/2020\/09\/php_upgrade_2-1024x273.png\" alt=\"\" width=\"1024\" height=\"273\" srcset=\"https:\/\/babal.host\/blog\/wp-content\/uploads\/2020\/09\/php_upgrade_2-1024x273.png 1024w, https:\/\/babal.host\/blog\/wp-content\/uploads\/2020\/09\/php_upgrade_2-300x80.png 300w, https:\/\/babal.host\/blog\/wp-content\/uploads\/2020\/09\/php_upgrade_2-768x205.png 768w, https:\/\/babal.host\/blog\/wp-content\/uploads\/2020\/09\/php_upgrade_2-1536x410.png 1536w, https:\/\/babal.host\/blog\/wp-content\/uploads\/2020\/09\/php_upgrade_2.png 1796w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/li>\n<li>After selecting the version you want to use &#8211; click on &#8220;Set as Current&#8221;<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-866\" src=\"https:\/\/babal.host\/blog\/wp-content\/uploads\/2020\/09\/php_upgrade_3-1024x448.png\" alt=\"\" width=\"1024\" height=\"448\" srcset=\"https:\/\/babal.host\/blog\/wp-content\/uploads\/2020\/09\/php_upgrade_3-1024x448.png 1024w, https:\/\/babal.host\/blog\/wp-content\/uploads\/2020\/09\/php_upgrade_3-300x131.png 300w, https:\/\/babal.host\/blog\/wp-content\/uploads\/2020\/09\/php_upgrade_3-768x336.png 768w, https:\/\/babal.host\/blog\/wp-content\/uploads\/2020\/09\/php_upgrade_3-1536x673.png 1536w, https:\/\/babal.host\/blog\/wp-content\/uploads\/2020\/09\/php_upgrade_3.png 1834w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/li>\n<li>Few seconds after clicking on &#8220;Set as current&#8221; &#8211; the selected version of PHP is active and &#8220;(active)&#8221; text is displayed next to the PHP version selected.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-867\" src=\"https:\/\/babal.host\/blog\/wp-content\/uploads\/2020\/09\/php_upgrade_4.png\" alt=\"\" width=\"709\" height=\"222\" srcset=\"https:\/\/babal.host\/blog\/wp-content\/uploads\/2020\/09\/php_upgrade_4.png 709w, https:\/\/babal.host\/blog\/wp-content\/uploads\/2020\/09\/php_upgrade_4-300x94.png 300w\" sizes=\"auto, (max-width: 709px) 100vw, 709px\" \/><\/li>\n<\/ol>\n<p>Congratulations! You have successfully updated your PHP version for your cPanel.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>By default, all the web hosting packages are configured on PHP 7.2 but you can change the version to all the way down at 4.4 to the most recent of PHP version per your preference. Here&#8217;s how you can update the PHP version. Video for updating PHP version in cPanel: \ufeff Blog for updating PHP [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":868,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25],"tags":[],"class_list":["post-863","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-babal-guide"],"_links":{"self":[{"href":"https:\/\/babal.host\/blog\/wp-json\/wp\/v2\/posts\/863","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/babal.host\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/babal.host\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/babal.host\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/babal.host\/blog\/wp-json\/wp\/v2\/comments?post=863"}],"version-history":[{"count":7,"href":"https:\/\/babal.host\/blog\/wp-json\/wp\/v2\/posts\/863\/revisions"}],"predecessor-version":[{"id":1456,"href":"https:\/\/babal.host\/blog\/wp-json\/wp\/v2\/posts\/863\/revisions\/1456"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/babal.host\/blog\/wp-json\/wp\/v2\/media\/868"}],"wp:attachment":[{"href":"https:\/\/babal.host\/blog\/wp-json\/wp\/v2\/media?parent=863"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/babal.host\/blog\/wp-json\/wp\/v2\/categories?post=863"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/babal.host\/blog\/wp-json\/wp\/v2\/tags?post=863"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}