{"id":713,"date":"2024-03-15T09:11:07","date_gmt":"2024-03-15T09:11:07","guid":{"rendered":"https:\/\/new.hostitsmart.com\/manage\/knowledgebase\/?p=713"},"modified":"2025-04-04T12:43:49","modified_gmt":"2025-04-04T12:43:49","slug":"how-to-change-php-version-in-cpanel-html","status":"publish","type":"post","link":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/317\/How-to-Change-PHP-Version-in-cPanel.html","title":{"rendered":"How to Change PHP Version in cPanel?"},"content":{"rendered":"<div class=\"kb-article-content\">\n<p><span style=\"font-weight: 400; \">To ensure compatibility with different web applications while hosting your websites, the most essential feature is the ability to change the PHP version of your panel.&nbsp;<\/span><\/p>\n<p><span style=\"font-weight: 400; \">cPanel offers users a user-friendly interface for managing various aspects of their web hosting accounts &amp; it also offers a straightforward way to change the PHP version.&nbsp;<\/span><\/p>\n<p><span style=\"font-weight: 400; \">In the detailed article, we will guide you through the process of changing the PHP version in cPanel. Let\u2019s get started!<\/span><\/p>\n<hr style=\"border-top: 2px dotted black;\">\n<p><span style=\"\"><strong>Also Read: <\/strong><a href=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/261\/how-to-clear-the-website-cache-in-cpanel.html\"><strong>How to Clear the Website Cache in cPanel?<\/strong><\/a><\/span><\/p>\n<hr style=\"border-top: 2px dotted black;\">\n<h2><span style=\"\"><strong>Steps to Change PHP Version in cPanel<\/strong><\/span><\/h2>\n<p><span style=\"font-weight: 400; \">1. Log into your cPanel account with your credentials.<\/span><\/p>\n<p><span style=\"\"><img loading=\"lazy\" decoding=\"async\" style=\"max-width: 100%; display: block; text-align: center; height: auto; margin: 20px auto 20px auto;\" src=\"https:\/\/www.hostitsmart.com\/manage\/images\/kb\/1049_logic-to-cPanel.png\" alt=\"logic to cPanel\" width=\"405\" height=\"383\"><\/span><\/p>\n<p><span style=\"\">2.&nbsp;<span style=\"font-weight: 400;\">Once you log in, look for the <strong>\u2018Software\u2019<\/strong> section in the panel.<\/span><\/span><\/p>\n<p><span style=\"\"><img loading=\"lazy\" decoding=\"async\" style=\"max-width: 100%; display: block; text-align: center; height: auto; margin: 20px auto 20px auto;\" src=\"https:\/\/www.hostitsmart.com\/manage\/images\/kb\/1050_look-for-the-Software-section-in-the-panel.png\" alt=\"look for the \u2018Software\u2019 section in the panel\" width=\"764\" height=\"292\"><\/span><\/p>\n<p><span style=\"\">3.&nbsp;<span style=\"font-weight: 400;\">In that section, find an option called<\/span><strong> \u2018MultiPHP Manager\u2019<\/strong><span style=\"font-weight: 400;\"> &amp; click on it.<\/span><\/span><\/p>\n<p><span style=\"font-weight: 400; \"><img loading=\"lazy\" decoding=\"async\" style=\"max-width: 100%; display: block; text-align: center; height: auto; margin: 20px auto 20px auto;\" src=\"https:\/\/www.hostitsmart.com\/manage\/images\/kb\/1051_find-an-option-called-MultiPHP-Manager.png\" alt=\"find an option called MultiPHP Manager\" width=\"829\" height=\"293\"><\/span><\/p>\n<p><span style=\"font-weight: 400; \">4. After clicking, you will see the <strong>&#8216;System default PHP version&#8217;<\/strong> at the top. The system administrator sets the system&#8217;s default PHP version.&nbsp;<\/span><\/p>\n<p><span style=\"font-weight: 400; \"><img loading=\"lazy\" decoding=\"async\" style=\"max-width: 100%; display: block; text-align: center; height: auto; margin: 20px auto 20px auto;\" src=\"https:\/\/www.hostitsmart.com\/manage\/images\/kb\/1052_The-system-administrator.png\" alt=\"The system administrator\" width=\"880\" height=\"166\"><\/span><\/p>\n<p><span style=\"\"><span style=\"font-weight: 400;\">5.&nbsp;<\/span><span style=\"font-weight: 400;\">The<strong> &#8216;Select PHP Version&#8217;<\/strong> interface will show a drop-down menu containing the available PHP versions. You have to select from that menu after selecting the domain.&nbsp;<\/span><\/span><\/p>\n<p><span style=\"\"><img loading=\"lazy\" decoding=\"async\" style=\"max-width: 100%; display: block; text-align: center; height: auto; margin: 20px auto 20px auto;\" src=\"https:\/\/www.hostitsmart.com\/manage\/images\/kb\/1053_Select-PHP-Version.png\" alt=\"Select PHP Version\" width=\"200\" height=\"172\"><\/span><\/p>\n<p><span style=\"font-weight: 400; \">If you are unsure about the version suitable for your website, consider reviewing the documentation of the web applications running. With that, you have specific PHP version requirements.<\/span><\/p>\n<p><span style=\"font-weight: 400; \">Once you select the updated version, click<strong> \u2018Apply\u2019<\/strong> to make the changes.<\/span><\/p>\n<p><span style=\"font-weight: 400; \"><img loading=\"lazy\" decoding=\"async\" style=\"max-width: 100%; display: block; text-align: center; height: auto; margin: 20px auto 20px auto;\" src=\"https:\/\/www.hostitsmart.com\/manage\/images\/kb\/1054_select-the-updated-version-and-click-apply.png\" alt=\"select the updated version and click apply\" width=\"372\" height=\"70\"><\/span><\/p>\n<p><span style=\"font-weight: 400; \">That\u2019s it; your PHP version got successfully changed.&nbsp;<\/span><\/p>\n<p><span style=\"font-weight: 400; \">To confirm whether changes have occurred, you must follow the instructions below.&nbsp;<\/span><\/p>\n<p><span style=\"font-weight: 400; \">\u2794 You have to create a simple PHP info file. Just create a new text file &amp; name it <strong>\u2018info.php\u2019<\/strong><\/span><\/p>\n<p><span style=\"font-weight: 400; \">\u2794 In that file, add the following code given below:<\/span><\/p>\n<table style=\"border-collapse: collapse; width: 100%;\" border=\"1\">\n<tbody>\n<tr>\n<td style=\"width: 99.938%;padding: 15px;\">\n<p><span style=\"font-weight: 400; \">&lt;?php<\/span><\/p>\n<p><span style=\"font-weight: 400; \">phpinfo();<\/span><\/p>\n<p><span style=\"font-weight: 400; \">?&gt;<\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><span style=\"font-weight: 400; \">Once done, upload this file to your web server and access it through your web browser (e.g., http:\/\/yourdomainname.com\/info.php). That page will display complete information about the PHP version running on the server.<\/span><\/p>\n<hr style=\"border-top: 2px dotted black;\">\n<p><span style=\"\"><strong>Also Read: <\/strong><a href=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/249\/how-to-create-a-phpinfo-file-and-view-php-information.html\"><strong>How to Create a PHPinfo File and View PHP Information?<\/strong><\/a><\/span><\/p>\n<hr style=\"border-top: 2px dotted black;\">\n<p><span style=\"font-weight: 400; \">By following the steps in this guide, you can easily manage your PHP versions &amp; ensure optimal performance along with compatibility for your website.<\/span><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>To ensure compatibility with different web applications while hosting your websites, the most essential feature is the ability to change the PHP version of your panel.&nbsp; cPanel offers users a user-friendly interface for managing various aspects of their web hosting accounts &amp; it also offers a straightforward way to change the PHP version.&nbsp; In the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-713","post","type-post","status-publish","format-standard","hentry","category-cpanel"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Change PHP Version in cPanel?<\/title>\n<meta name=\"description\" content=\"Find the step-by-step instructions on changing the PHP version in cPanel to maintain compatibility with your website. Explore now!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/317\/How-to-Change-PHP-Version-in-cPanel.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Change PHP Version in cPanel?\" \/>\n<meta property=\"og:description\" content=\"Find the step-by-step instructions on changing the PHP version in cPanel to maintain compatibility with your website. Explore now!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/317\/How-to-Change-PHP-Version-in-cPanel.html\" \/>\n<meta property=\"og:site_name\" content=\"Host IT Smart Knowledge base\" \/>\n<meta property=\"article:published_time\" content=\"2024-03-15T09:11:07+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-04-04T12:43:49+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.hostitsmart.com\/manage\/images\/kb\/1049_logic-to-cPanel.png\" \/>\n<meta name=\"author\" content=\"Admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/317\/How-to-Change-PHP-Version-in-cPanel.html\",\"url\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/317\/How-to-Change-PHP-Version-in-cPanel.html\",\"name\":\"How to Change PHP Version in cPanel?\",\"isPartOf\":{\"@id\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/317\/How-to-Change-PHP-Version-in-cPanel.html#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/317\/How-to-Change-PHP-Version-in-cPanel.html#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.hostitsmart.com\/manage\/images\/kb\/1049_logic-to-cPanel.png\",\"datePublished\":\"2024-03-15T09:11:07+00:00\",\"dateModified\":\"2025-04-04T12:43:49+00:00\",\"author\":{\"@id\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/#\/schema\/person\/317c14a877385667f19d3b7496bd5108\"},\"description\":\"Find the step-by-step instructions on changing the PHP version in cPanel to maintain compatibility with your website. Explore now!\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/317\/How-to-Change-PHP-Version-in-cPanel.html\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/317\/How-to-Change-PHP-Version-in-cPanel.html#primaryimage\",\"url\":\"https:\/\/www.hostitsmart.com\/manage\/images\/kb\/1049_logic-to-cPanel.png\",\"contentUrl\":\"https:\/\/www.hostitsmart.com\/manage\/images\/kb\/1049_logic-to-cPanel.png\"},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/#website\",\"url\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/\",\"name\":\"Host IT Smart Knowledge base\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/#\/schema\/person\/317c14a877385667f19d3b7496bd5108\",\"name\":\"Admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d4827c56a6721070dde339640d47ff44ba0d0e515c7e577cf29305ab72383fe3?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/d4827c56a6721070dde339640d47ff44ba0d0e515c7e577cf29305ab72383fe3?s=96&d=mm&r=g\",\"caption\":\"Admin\"},\"sameAs\":[\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/\"],\"url\":\"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Change PHP Version in cPanel?","description":"Find the step-by-step instructions on changing the PHP version in cPanel to maintain compatibility with your website. Explore now!","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/317\/How-to-Change-PHP-Version-in-cPanel.html","og_locale":"en_US","og_type":"article","og_title":"How to Change PHP Version in cPanel?","og_description":"Find the step-by-step instructions on changing the PHP version in cPanel to maintain compatibility with your website. Explore now!","og_url":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/317\/How-to-Change-PHP-Version-in-cPanel.html","og_site_name":"Host IT Smart Knowledge base","article_published_time":"2024-03-15T09:11:07+00:00","article_modified_time":"2025-04-04T12:43:49+00:00","og_image":[{"url":"https:\/\/www.hostitsmart.com\/manage\/images\/kb\/1049_logic-to-cPanel.png","type":"","width":"","height":""}],"author":"Admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Admin","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/317\/How-to-Change-PHP-Version-in-cPanel.html","url":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/317\/How-to-Change-PHP-Version-in-cPanel.html","name":"How to Change PHP Version in cPanel?","isPartOf":{"@id":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/317\/How-to-Change-PHP-Version-in-cPanel.html#primaryimage"},"image":{"@id":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/317\/How-to-Change-PHP-Version-in-cPanel.html#primaryimage"},"thumbnailUrl":"https:\/\/www.hostitsmart.com\/manage\/images\/kb\/1049_logic-to-cPanel.png","datePublished":"2024-03-15T09:11:07+00:00","dateModified":"2025-04-04T12:43:49+00:00","author":{"@id":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/#\/schema\/person\/317c14a877385667f19d3b7496bd5108"},"description":"Find the step-by-step instructions on changing the PHP version in cPanel to maintain compatibility with your website. Explore now!","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/317\/How-to-Change-PHP-Version-in-cPanel.html"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/317\/How-to-Change-PHP-Version-in-cPanel.html#primaryimage","url":"https:\/\/www.hostitsmart.com\/manage\/images\/kb\/1049_logic-to-cPanel.png","contentUrl":"https:\/\/www.hostitsmart.com\/manage\/images\/kb\/1049_logic-to-cPanel.png"},{"@type":"WebSite","@id":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/#website","url":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/","name":"Host IT Smart Knowledge base","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/#\/schema\/person\/317c14a877385667f19d3b7496bd5108","name":"Admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/d4827c56a6721070dde339640d47ff44ba0d0e515c7e577cf29305ab72383fe3?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d4827c56a6721070dde339640d47ff44ba0d0e515c7e577cf29305ab72383fe3?s=96&d=mm&r=g","caption":"Admin"},"sameAs":["https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/"],"url":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/posts\/713","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/comments?post=713"}],"version-history":[{"count":4,"href":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/posts\/713\/revisions"}],"predecessor-version":[{"id":2758,"href":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/posts\/713\/revisions\/2758"}],"wp:attachment":[{"href":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/media?parent=713"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/categories?post=713"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostitsmart.com\/manage\/knowledgebase\/wp-json\/wp\/v2\/tags?post=713"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}