{"id":6447,"date":"2025-12-08T15:35:08","date_gmt":"2025-12-08T10:05:08","guid":{"rendered":"https:\/\/www.youstable.com\/blog\/?post_type=epkb_post_type_1&#038;p=5740"},"modified":"2025-12-08T15:35:11","modified_gmt":"2025-12-08T10:05:11","slug":"how-to-change-php-version-in-cpanel","status":"publish","type":"post","link":"https:\/\/www.youstable.com\/blog\/how-to-change-php-version-in-cpanel","title":{"rendered":"How to change PHP version in cPanel?"},"content":{"rendered":"\n<p>Suppose you are facing Outdated PHP Version errors on your website, then what will you do? Definitely, you will have to change PHP Version for your website. So in this tutorial, we will learn how to change PHP version in cPanel.<\/p>\n\n\n\n<p>This article will help you to change the PHP version on the cPanel.<\/p>\n\n\n\n<p>Now, let\u2019s see how you can change the PHP version for your Website using the Cpanel.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"how-to-change-php-version-in-cpanel-using-multi-php-manager\"><strong>How to Change PHP Version in cPanel<\/strong> <strong>using multi PHP Manager<\/strong><\/h2>\n\n\n\n<p><strong>1. <\/strong><a href=\"https:\/\/youstable.com\/blog\/how-to-login-into-cpanel\/\" target=\"_blank\" rel=\"noreferrer noopener\">Login to your Cpanel account<\/a> replacing domain.com with your domain name using the login credentials provided by your hosting provider.<br>https:\/\/domain.com:2083<\/p>\n\n\n\n<p><strong>2. <\/strong>In the search bar type <strong>MultiPHP Manager<\/strong> and click on it.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1288\" height=\"675\" src=\"https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2022\/02\/image.png\" alt=\"multiPHP manager\" class=\"wp-image-5960\" srcset=\"https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2022\/02\/image.png 1288w, https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2022\/02\/image-768x402.png 768w, https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2022\/02\/image-810x424.png 810w, https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2022\/02\/image-1140x597.png 1140w\" sizes=\"auto, (max-width: 1288px) 100vw, 1288px\" \/><\/figure>\n\n\n\n<p><strong>3. <\/strong>Select the domain for which you want to change the PHP version. You can search in the search bar for your domain if you have multiple domains.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1440\" height=\"630\" src=\"https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2022\/02\/image-1.png\" alt=\"multiphp manager domain selector\" class=\"wp-image-5961\" srcset=\"https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2022\/02\/image-1.png 1440w, https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2022\/02\/image-1-768x336.png 768w, https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2022\/02\/image-1-810x354.png 810w, https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2022\/02\/image-1-1140x499.png 1140w\" sizes=\"auto, (max-width: 1440px) 100vw, 1440px\" \/><\/figure>\n\n\n\n<p><strong>4. <\/strong>Click on the drop-down arrow near <strong>PHP Version<\/strong> and click Apply<br><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1308\" height=\"436\" src=\"https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2022\/02\/image-3.png\" alt=\"how to change php version in cpanel\" class=\"wp-image-5963\" srcset=\"https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2022\/02\/image-3.png 1308w, https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2022\/02\/image-3-768x256.png 768w, https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2022\/02\/image-3-810x270.png 810w, https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2022\/02\/image-3-1140x380.png 1140w\" sizes=\"auto, (max-width: 1308px) 100vw, 1308px\" \/><\/figure>\n\n\n\n<p><strong>5. <\/strong>A confirmation message will be shown in the right top corner.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"980\" height=\"206\" src=\"https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2022\/02\/image-4.png\" alt=\"php version confirmation\" class=\"wp-image-5964\" srcset=\"https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2022\/02\/image-4.png 980w, https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2022\/02\/image-4-768x161.png 768w, https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2022\/02\/image-4-810x170.png 810w\" sizes=\"auto, (max-width: 980px) 100vw, 980px\" \/><\/figure>\n\n\n\n<p>The above steps will help you select your PHP Version. Now let\u2019s see how we can check the PHP Version on your website.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"checking-php-version-for-your-website\"><strong>Checking PHP Version for your website.<\/strong><\/h2>\n\n\n\n<p><strong>1. <\/strong>Create a file in your <strong>public_html directory<\/strong> of the domain with any name let\u2019s say xyz.php.<br>Our file path will be \/home\/domain\/public_html\/xyz.php<\/p>\n\n\n\n<p><strong>2. <\/strong>Add the following line of code in the file and save it.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\n&lt;?php\nphpinfo();\n?&gt;\n<\/pre><\/div>\n\n\n<p><strong>3. <\/strong>Now open your URL <strong>domain.com\/xyz.php<\/strong> to test the current PHP Version. It will show the PHP Info web page with all the PHP variables and settings.<img decoding=\"async\" src=\"https:\/\/lh6.googleusercontent.com\/LLFLcX6n6azuQjxnNfMMvqw4mlFaUDDpEo763Ok99EeQus7EOFGrnu9KKuOwtKQ8mrE8YMsxxmIN5IeUaiWXWtZwZIeoDlacUgBoGDlBFeklT5EKGp4uuB2JyZY-i-DjGV3GChrz\" style=\"width: undefinedpx;\" alt=\"\"><\/p>\n\n\n\n<p><strong>You may also like<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong><a href=\"https:\/\/www.youstable.com\/blog\/how-to-increase-file-upload-size-in-cpanel\/\">How to increase file upload size in cPanel<\/a><\/strong><\/li>\n\n\n\n<li><strong><a href=\"https:\/\/www.youstable.com\/blog\/how-to-change-php-version\/\">How to change PHP version in DirectAdmin?<\/a><\/strong><\/li>\n\n\n\n<li><a href=\"https:\/\/youstable.com\/blog\/how-to-change-link-color-in-wordpress\/\" target=\"_blank\" rel=\"noopener\"><strong>How to change link color in WordPress?<\/strong><\/a><\/li>\n\n\n\n<li><strong><a href=\"https:\/\/youstable.com\/blog\/display-breadcrumb-navigation-links-in-wordpress\/\" target=\"_blank\" rel=\"noopener\">How to Display Breadcrumb Navigation Links in WordPress?<\/a><\/strong><\/li>\n\n\n\n<li><strong><a href=\"https:\/\/youstable.com\/blog\/how-to-redirect-your-404-pages-to-the-home-page-in-wordpress\/\" target=\"_blank\" rel=\"noopener\">How to Redirect your 404 pages to the Home Page in WordPress<\/a>?<\/strong><\/li>\n\n\n\n<li><strong><a href=\"https:\/\/youstable.com\/blog\/edit-wp-config-php\/\" target=\"_blank\" rel=\"noopener\">How to Edit wp-config.php File in WordPress?<\/a><\/strong><\/li>\n<\/ul>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Suppose you are facing Outdated PHP Version errors on your website, then what will you do? Definitely, you will have [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":6793,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[350],"tags":[],"class_list":["post-6447","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-knowledgebase"],"acf":[],"featured_image_src":"https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2022\/02\/How-to-change-PHP-version-in-cPanel-01.jpg","author_info":{"display_name":"YouStable","author_link":"https:\/\/www.youstable.com\/blog\/author\/youstable"},"_links":{"self":[{"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/posts\/6447","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/comments?post=6447"}],"version-history":[{"count":2,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/posts\/6447\/revisions"}],"predecessor-version":[{"id":15735,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/posts\/6447\/revisions\/15735"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/media\/6793"}],"wp:attachment":[{"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/media?parent=6447"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/categories?post=6447"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/tags?post=6447"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}