{"id":40,"date":"2020-05-22T05:01:16","date_gmt":"2020-05-22T05:01:16","guid":{"rendered":"https:\/\/yegara.com\/en\/tut\/?p=40"},"modified":"2026-10-03T18:33:55","modified_gmt":"2026-10-03T18:33:55","slug":"how-to-change-php-version","status":"publish","type":"post","link":"https:\/\/yegara.com\/en\/guide\/how-to-change-php-version\/","title":{"rendered":"How to Change Your PHP Version"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Every PHP application supports a certain range of PHP versions. If a plugin, a theme or a framework asks for a newer or an older version, you can switch it yourself in cPanel. The change applies immediately.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Change the version<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 1.<\/strong> Log in to cPanel.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 2.<\/strong> In the <strong>Software<\/strong> section, click <strong>Select PHP Version<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"265\" height=\"62\" src=\"https:\/\/yegara.com\/en\/guide\/wp-content\/uploads\/2020\/05\/image-21.png\" alt=\"In the SOFTWARE section click Select PHP Version\" class=\"wp-image-658\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 3.<\/strong> cPanel shows the current PHP version. Choose the version you want from the <strong>PHP Version<\/strong> list.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"861\" height=\"438\" src=\"https:\/\/yegara.com\/en\/guide\/wp-content\/uploads\/2020\/05\/image-3-1.png\" alt=\"CPanel displays the current PHP version. To change the PHP version, in the PHP Version list box, select the version\" class=\"wp-image-660\" srcset=\"https:\/\/yegara.com\/en\/guide\/wp-content\/uploads\/2020\/05\/image-3-1.png 861w, https:\/\/yegara.com\/en\/guide\/wp-content\/uploads\/2020\/05\/image-3-1-300x153.png 300w, https:\/\/yegara.com\/en\/guide\/wp-content\/uploads\/2020\/05\/image-3-1-768x391.png 768w\" sizes=\"auto, (max-width: 861px) 100vw, 861px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 4.<\/strong> Click <strong>Set as current<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"658\" src=\"https:\/\/yegara.com\/en\/guide\/wp-content\/uploads\/2020\/05\/image-2-1024x658-1.png\" alt=\"And then click Set as current\" class=\"wp-image-661\" srcset=\"https:\/\/yegara.com\/en\/guide\/wp-content\/uploads\/2020\/05\/image-2-1024x658-1.png 1024w, https:\/\/yegara.com\/en\/guide\/wp-content\/uploads\/2020\/05\/image-2-1024x658-1-300x193.png 300w, https:\/\/yegara.com\/en\/guide\/wp-content\/uploads\/2020\/05\/image-2-1024x658-1-768x494.png 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The new version takes effect immediately. Open your site and check that it still works.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">If the site breaks after the change<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Switch back to the previous version in the same way. An old plugin or theme may not support the new version yet. Update your plugins and theme first, then try the newer PHP version again.<\/p>\n\n\n\n<h2 class=\"wp-block-heading yg-related-title\">Related guides<\/h2>\n\n\n\n<ul class=\"wp-block-list yg-related\">\n<li><a href=\"https:\/\/yegara.com\/en\/guide\/php-settings-version-extensions-limits\/\">PHP Settings: Version, Extensions, Upload Size and Memory Limit<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/yegara.com\/en\/guide\/how-increase-maximum-upload-file-size-via-cpanel\/\">How to Increase Maximum Upload File Size via cPanel<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/yegara.com\/en\/guide\/wordpress-troubleshooting\/\">WordPress Troubleshooting: Get Back In and Fix Common Problems<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Switch your site&#8217;s PHP version yourself in cPanel under Select PHP Version. The change takes effect immediately, and you can switch back if the site breaks.<\/p>\n","protected":false},"author":1,"featured_media":1102,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-40","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-how-to"],"_links":{"self":[{"href":"https:\/\/yegara.com\/en\/guide\/wp-json\/wp\/v2\/posts\/40","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yegara.com\/en\/guide\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yegara.com\/en\/guide\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yegara.com\/en\/guide\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/yegara.com\/en\/guide\/wp-json\/wp\/v2\/comments?post=40"}],"version-history":[{"count":9,"href":"https:\/\/yegara.com\/en\/guide\/wp-json\/wp\/v2\/posts\/40\/revisions"}],"predecessor-version":[{"id":1483,"href":"https:\/\/yegara.com\/en\/guide\/wp-json\/wp\/v2\/posts\/40\/revisions\/1483"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/yegara.com\/en\/guide\/wp-json\/wp\/v2\/media\/1102"}],"wp:attachment":[{"href":"https:\/\/yegara.com\/en\/guide\/wp-json\/wp\/v2\/media?parent=40"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yegara.com\/en\/guide\/wp-json\/wp\/v2\/categories?post=40"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yegara.com\/en\/guide\/wp-json\/wp\/v2\/tags?post=40"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}