{"id":180,"date":"2026-05-30T23:14:52","date_gmt":"2026-05-31T06:14:52","guid":{"rendered":"https:\/\/hostandtech.com\/kb\/cpanel\/how-to-change-php-version-cpanel\/"},"modified":"2026-05-30T23:14:52","modified_gmt":"2026-05-31T06:14:52","slug":"how-to-change-php-version-cpanel","status":"publish","type":"post","link":"https:\/\/hostandtech.com\/kb\/cpanel\/how-to-change-php-version-cpanel\/","title":{"rendered":"How to Change PHP Version in cPanel (PHP Selector Guide)"},"content":{"rendered":"<h2>Overview<\/h2>\n<p>Your hosting account runs PHP to execute server-side code for your website. The <strong>cPanel PHP version<\/strong> your site uses directly affects whether your CMS, plugins, themes, and custom scripts work correctly. PHP 7.4, for example, handles certain functions differently than PHP 8.1 or 8.2, and running the wrong version is one of the fastest ways to break a site after an update.<\/p>\n<p>Most users land here after updating WordPress or a plugin and suddenly seeing a white screen, a 500 error, or a message like &#8220;Your server is running PHP version X but this plugin requires at least PHP Y.&#8221; Switching versions in cPanel takes about two minutes once you know where to look.<\/p>\n<p>Depending on your hosting setup, you&#8217;ll use one of two tools: <strong>PHP Selector<\/strong> (available on CloudLinux-based shared hosting, which is what most <a href=\"https:\/\/www.hostandtech.com\/shared-hosting\/\">Shared Hosting<\/a> plans use) or <strong>MultiPHP Manager<\/strong> (available on WHM-managed servers). This article covers both.<\/p>\n<h2>Prerequisites<\/h2>\n<ul>\n<li>Active cPanel account with login access<\/li>\n<li>Your hosting account must be on a plan that supports multiple PHP versions \u2014 most shared hosting plans do, but check with support if you&#8217;re unsure<\/li>\n<li>Know which PHP version your application requires (check your CMS documentation or plugin requirements)<\/li>\n<li>If you&#8217;re on a VPS or dedicated server, WHM access may be needed to enable MultiPHP for individual accounts<\/li>\n<li>A backup of your site before switching versions \u2014 especially if you&#8217;re moving from PHP 7.x to 8.x<\/li>\n<\/ul>\n<h2>Method 1: Using PHP Selector (CloudLinux Shared Hosting)<\/h2>\n<p>PHP Selector is the tool you&#8217;ll see on most shared hosting environments. It lets you set a PHP version per account, and in some configurations, per directory using an <code class=\"\" data-line=\"\">.htaccess<\/code> rule or a <code class=\"\" data-line=\"\">php.ini<\/code> override.<\/p>\n<ol>\n<li>\n    <strong>Log in to cPanel.<\/strong> Your login URL is typically <code class=\"\" data-line=\"\">yourdomain.com\/cpanel<\/code> or the URL your host provided in your welcome email.\n  <\/li>\n<li>\n    <strong>Find the Software section.<\/strong> Scroll down to the section labelled <em>Software<\/em> and click <strong>Select PHP Version<\/strong>. If you don&#8217;t see this, your host may not have CloudLinux installed \u2014 skip to Method 2.\n  <\/li>\n<li>\n    <strong>Choose your PHP version.<\/strong> A dropdown at the top of the page shows your current version. Click it and select the version you need. As of 2026, PHP 8.1 and 8.2 are the most widely supported stable releases. PHP 8.3 is available on most updated environments.<\/p>\n<p>    \ud83d\udcdd <strong>Note:<\/strong> PHP 7.4 reached end-of-life in November 2022. It may still appear in the selector, but it no longer receives security patches. Don&#8217;t use it for anything public-facing unless you have a specific, temporary reason.\n  <\/li>\n<li>\n    <strong>Click Set as current.<\/strong> This applies the change account-wide.\n  <\/li>\n<li>\n    <strong>Review PHP extensions.<\/strong> After switching versions, PHP Selector shows a list of available extensions for that version. Extensions enabled on PHP 7.4 may not auto-enable on 8.1. Scroll through and re-enable anything your application needs \u2014 common ones include <code class=\"\" data-line=\"\">mysqli<\/code>, <code class=\"\" data-line=\"\">curl<\/code>, <code class=\"\" data-line=\"\">mbstring<\/code>, <code class=\"\" data-line=\"\">gd<\/code>, and <code class=\"\" data-line=\"\">zip<\/code>.<\/p>\n<p>    \u26a0 <strong>Warning:<\/strong> This is the step most people skip. If your site works but images stop loading or contact forms break after a PHP switch, missing extensions are almost always the cause.\n  <\/li>\n<li>\n    <strong>Save your extension changes<\/strong> by clicking <strong>Save<\/strong> at the bottom of the extensions list.\n  <\/li>\n<li>\n    <strong>Test your site.<\/strong> Open your site in a browser and click through a few pages. Check your admin panel if applicable.\n  <\/li>\n<\/ol>\n<h2>Method 2: Using MultiPHP Manager (WHM \/ VPS \/ Dedicated)<\/h2>\n<p>MultiPHP Manager is available in WHM and gives server admins more granular control. If you manage a VPS or dedicated server at Host &amp; Tech, this is where you&#8217;ll handle PHP versioning at the account level.<\/p>\n<ol>\n<li>\n    <strong>Log in to WHM<\/strong> at <code class=\"\" data-line=\"\">yourdomain.com:2087<\/code> or via the server management panel.\n  <\/li>\n<li>\n    <strong>Search for MultiPHP Manager<\/strong> in the WHM search bar. Click it when it appears.\n  <\/li>\n<li>\n    <strong>Find the account or domain<\/strong> you want to change. You can filter by domain name in the search field.\n  <\/li>\n<li>\n    <strong>Select the PHP version<\/strong> from the dropdown next to the account and click <strong>Apply<\/strong>.<\/p>\n<p>    \ud83d\udcdd <strong>Note:<\/strong> Changes here override any PHP version set at the cPanel level for that account. If a user is confused about why their PHP Selector change isn&#8217;t sticking, this is usually why \u2014 an admin-level MultiPHP setting is taking precedence.\n  <\/li>\n<li>\n    <strong>Install additional PHP versions<\/strong> if the one you need isn&#8217;t listed. Go to <em>WHM &gt; MultiPHP Installer<\/em>, select the version, and install it. This takes a few minutes.\n  <\/li>\n<\/ol>\n<h2>Method 3: Set PHP Version Per Directory Using .htaccess<\/h2>\n<p>Sometimes you need a different PHP version for one subdirectory \u2014 say, a legacy app in <code class=\"\" data-line=\"\">\/old-app\/<\/code> while the rest of the site runs PHP 8.2. You can do this with an <code class=\"\" data-line=\"\">.htaccess<\/code> directive, but only if your server supports it (CloudLinux + PHP Selector environments typically do).<\/p>\n<p>Add this to the <code class=\"\" data-line=\"\">.htaccess<\/code> file inside the specific directory:<\/p>\n<div class=\"ht-code-snippet\"><button class=\"ht-code-snippet__copy\" type=\"button\" aria-label=\"Copy code\"><\/button><span class=\"ht-code-snippet__feedback\">Copied to clipboard<\/span><\/p>\n<pre class=\"ht-code-snippet__code\" id=\"code-block-1\"><code class=\"\" data-line=\"\"># Set PHP 7.4 for this directory only\nAddHandler application\/x-httpd-php74 .php<\/code><\/pre>\n<\/div>\n<p>The handler name format varies by host. Common examples: <code class=\"\" data-line=\"\">x-httpd-php81<\/code>, <code class=\"\" data-line=\"\">x-httpd-php82<\/code>. If you&#8217;re not sure what handlers are available on your Host &amp; Tech account, open a support ticket and we&#8217;ll confirm the exact strings for your server configuration.<\/p>\n<p>Alternatively, on servers using PHP-FPM, you can specify the version in a <code class=\"\" data-line=\"\">php.ini<\/code> file placed in the target directory:<\/p>\n<div class=\"ht-code-snippet\"><button class=\"ht-code-snippet__copy\" type=\"button\" aria-label=\"Copy code\"><\/button><span class=\"ht-code-snippet__feedback\">Copied to clipboard<\/span><\/p>\n<pre class=\"ht-code-snippet__code\" id=\"code-block-2\"><code class=\"\" data-line=\"\">; \/public_html\/old-app\/php.ini\n; This file won&#039;t work on all environments \u2014 confirm with your host\nextension=mysqli\nextension=curl<\/code><\/pre>\n<\/div>\n<p>\u26a0 <strong>Warning:<\/strong> Dropping a <code class=\"\" data-line=\"\">php.ini<\/code> file into a directory doesn&#8217;t automatically switch the PHP version \u2014 it only adjusts settings for the already-selected version. Don&#8217;t confuse the two.<\/p>\n<h2>Common Issues &amp; Troubleshooting<\/h2>\n<h3>Site shows a white screen or 500 error after switching PHP version<\/h3>\n<p>This almost always means a plugin, theme, or custom code uses a function that was deprecated or removed in the new version. PHP 8.0+ removed several functions that were deprecated back in PHP 7.x (e.g., <code class=\"\" data-line=\"\">create_function()<\/code>, various MySQL functions). Check your error logs first:<\/p>\n<div class=\"ht-code-snippet\"><button class=\"ht-code-snippet__copy\" type=\"button\" aria-label=\"Copy code\"><\/button><span class=\"ht-code-snippet__feedback\">Copied to clipboard<\/span><\/p>\n<pre class=\"ht-code-snippet__code\" id=\"code-block-3\"><code class=\"\" data-line=\"\">tail -n 50 \/home\/yourusername\/logs\/yourdomain.com.error.log<\/code><\/pre>\n<\/div>\n<p>The error message will usually name the file and line number causing the crash. If you need to roll back quickly, go back into PHP Selector and switch to the previous version \u2014 your site will come back up immediately.<\/p>\n<h3>PHP version change doesn&#8217;t seem to take effect<\/h3>\n<p>Check two things. First, a WHM-level MultiPHP setting may be overriding your cPanel selection (see Method 2 above). Second, if you have a <code class=\"\" data-line=\"\">php.ini<\/code> or <code class=\"\" data-line=\"\">.user.ini<\/code> file in your document root, it might be caching the old version setting. You can verify the active PHP version by creating a temporary info file:<\/p>\n<div class=\"ht-code-snippet\"><button class=\"ht-code-snippet__copy\" type=\"button\" aria-label=\"Copy code\"><\/button><span class=\"ht-code-snippet__feedback\">Copied to clipboard<\/span><\/p>\n<pre class=\"ht-code-snippet__code\" id=\"code-block-4\"><code class=\"\" data-line=\"\">&lt;?php phpinfo(); ?&gt;<\/code><\/pre>\n<\/div>\n<p>Upload it as <code class=\"\" data-line=\"\">info.php<\/code> to your <code class=\"\" data-line=\"\">public_html<\/code>, visit <code class=\"\" data-line=\"\">yourdomain.com\/info.php<\/code>, and look for the PHP Version line at the top. Delete the file immediately after \u2014 leaving a <code class=\"\" data-line=\"\">phpinfo()<\/code> file publicly accessible is a security risk.<\/p>\n<h3>PHP Selector is missing from cPanel<\/h3>\n<p>PHP Selector requires CloudLinux OS on the server. If your shared hosting plan doesn&#8217;t show this option, the server may be running a standard CentOS or AlmaLinux setup without CloudLinux, or your host hasn&#8217;t enabled the Selector feature for your account tier. Contact support to confirm. If you&#8217;re on a VPS, you have MultiPHP Manager in WHM instead.<\/p>\n<h3>Required PHP extension isn&#8217;t available after switching versions<\/h3>\n<p>Not every extension is compiled for every PHP version. If you switch to PHP 8.3 and a needed extension like <code class=\"\" data-line=\"\">imagick<\/code> or <code class=\"\" data-line=\"\">ioncube<\/code> isn&#8217;t in the list, it may not be installed on the server for that version. On shared hosting you&#8217;ll need to request installation. On a VPS or dedicated server, you can install it yourself:<\/p>\n<div class=\"ht-code-snippet\"><button class=\"ht-code-snippet__copy\" type=\"button\" aria-label=\"Copy code\"><\/button><span class=\"ht-code-snippet__feedback\">Copied to clipboard<\/span><\/p>\n<pre class=\"ht-code-snippet__code\" id=\"code-block-5\"><code class=\"\" data-line=\"\"># Example: install PHP 8.3 imagick extension on AlmaLinux\/cPanel server\nyum install ea-php83-php-pecl-imagick\n# Then restart PHP-FPM if in use\nsystemctl restart ea-php83-php-fpm<\/code><\/pre>\n<\/div>\n<h3>WordPress says it requires a higher PHP version even after switching<\/h3>\n<p>WordPress reads the PHP version at runtime, but some caching layers (object cache, page cache, OPcache) can serve stale responses. Clear all caching layers after switching: clear your WordPress cache plugin, then flush OPcache. In WP-CLI:<\/p>\n<div class=\"ht-code-snippet\"><button class=\"ht-code-snippet__copy\" type=\"button\" aria-label=\"Copy code\"><\/button><span class=\"ht-code-snippet__feedback\">Copied to clipboard<\/span><\/p>\n<pre class=\"ht-code-snippet__code\" id=\"code-block-6\"><code class=\"\" data-line=\"\">wp cache flush\nwp eval &#039;opcache_reset();&#039;<\/code><\/pre>\n<\/div>\n<p>If the warning persists, log out and back into WordPress admin to force a fresh session.<\/p>\n<h2>FAQ<\/h2>\n<div class=\"ht-faq-section\">\n<h2>Frequently Asked Questions<\/h2>\n<div class=\"ht-faq-item\">\n<h3 class=\"ht-faq-question\">Which PHP version should I use for WordPress in 2026?<\/h3>\n<div class=\"ht-faq-answer\">\n<p>PHP 8.2 is the current recommended version for WordPress as of 2026. It&#8217;s well-supported by most major plugins and themes, and offers meaningful performance improvements over 8.1. PHP 8.3 works too, but extension compatibility is still catching up \u2014 I&#8217;d test on a staging environment before switching a production site to 8.3.<\/p>\n<\/div>\n<\/div>\n<div class=\"ht-faq-item\">\n<h3 class=\"ht-faq-question\">Will changing PHP version break my site?<\/h3>\n<div class=\"ht-faq-answer\">\n<p>It can, especially if you&#8217;re jumping from PHP 7.x to 8.x. PHP 8 removed a number of deprecated functions that older plugins or themes might still use. Always take a backup before switching, and check your error logs immediately after. If something breaks, you can roll back to the previous version in under a minute from PHP Selector.<\/p>\n<\/div>\n<\/div>\n<div class=\"ht-faq-item\">\n<h3 class=\"ht-faq-question\">Can I set a different PHP version for a subdomain or subfolder?<\/h3>\n<div class=\"ht-faq-answer\">\n<p>Yes, using an .htaccess handler directive in that specific directory (see Method 3 above). This only works on CloudLinux environments with PHP Selector enabled. On PHP-FPM setups without that support, you&#8217;d need a separate cPanel account or a server-level configuration change, which typically requires a support request.<\/p>\n<\/div>\n<\/div>\n<div class=\"ht-faq-item\">\n<h3 class=\"ht-faq-question\">Does changing PHP version affect my email or databases?<\/h3>\n<div class=\"ht-faq-answer\">\n<p>No. PHP version only affects how your web application code executes. Your email accounts, MySQL databases, and DNS settings are completely separate and won&#8217;t be touched by a PHP version change.<\/p>\n<\/div>\n<\/div>\n<div class=\"ht-faq-item\">\n<h3 class=\"ht-faq-question\">Why doesn&#039;t my phpinfo() show the version I selected?<\/h3>\n<div class=\"ht-faq-answer\">\n<p>The most common reason is a WHM-level MultiPHP override that&#8217;s taking precedence over your cPanel setting. If you&#8217;re on shared hosting and it&#8217;s still wrong, contact your host \u2014 there may be a server-level default that&#8217;s locked. Also confirm you saved the change in PHP Selector and didn&#8217;t just view the dropdown without applying it.<\/p>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Running the wrong PHP version is one of the most common causes of broken WordPress sites and plugin errors. Here&#8217;s how to change your cPanel PHP version in a few clicks \u2014 and what to watch out for when you do.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"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":[39],"tags":[40,388,389,390,386,385,387,8],"class_list":["post-180","post","type-post","status-publish","format-standard","hentry","category-cpanel","tag-cpanel","tag-cpanel-php-configuration","tag-cpanel-php-version","tag-how-to-change-php-version-in-cpanel-php-selector-guide","tag-multiphp","tag-php-selector","tag-php-version","tag-shared-hosting"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Change PHP Version in cPanel (PHP Selector Guide)<\/title>\n<meta name=\"description\" content=\"Learn how to change your cPanel PHP version using PHP Selector or MultiPHP Manager. Covers shared hosting, common errors, and version-specific gotchas.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/hostandtech.com\/kb\/cpanel\/how-to-change-php-version-cpanel\/\" \/>\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 (PHP Selector Guide)\" \/>\n<meta property=\"og:description\" content=\"Learn how to change your cPanel PHP version using PHP Selector or MultiPHP Manager. Covers shared hosting, common errors, and version-specific gotchas.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/hostandtech.com\/kb\/cpanel\/how-to-change-php-version-cpanel\/\" \/>\n<meta property=\"og:site_name\" content=\"Host And Tech knowledge base\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/stshostandtech\" \/>\n<meta property=\"article:published_time\" content=\"2026-05-31T06:14:52+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@stshostandtech\" \/>\n<meta name=\"twitter:site\" content=\"@stshostandtech\" \/>\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=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/cpanel\\\/how-to-change-php-version-cpanel\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/cpanel\\\/how-to-change-php-version-cpanel\\\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/#\\\/schema\\\/person\\\/b6fa79c48ddaba71af32e395c5b017ee\"},\"headline\":\"How to Change PHP Version in cPanel (PHP Selector Guide)\",\"datePublished\":\"2026-05-31T06:14:52+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/cpanel\\\/how-to-change-php-version-cpanel\\\/\"},\"wordCount\":1532,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/#organization\"},\"keywords\":[\"cPanel\",\"cPanel PHP configuration\",\"cPanel PHP version\",\"How to Change PHP Version in cPanel (PHP Selector Guide)\",\"MultiPHP\",\"PHP selector\",\"PHP version\",\"shared hosting\"],\"articleSection\":[\"cPanel Guides\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/hostandtech.com\\\/kb\\\/cpanel\\\/how-to-change-php-version-cpanel\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/cpanel\\\/how-to-change-php-version-cpanel\\\/\",\"url\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/cpanel\\\/how-to-change-php-version-cpanel\\\/\",\"name\":\"How to Change PHP Version in cPanel (PHP Selector Guide)\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/#website\"},\"datePublished\":\"2026-05-31T06:14:52+00:00\",\"description\":\"Learn how to change your cPanel PHP version using PHP Selector or MultiPHP Manager. Covers shared hosting, common errors, and version-specific gotchas.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/cpanel\\\/how-to-change-php-version-cpanel\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/hostandtech.com\\\/kb\\\/cpanel\\\/how-to-change-php-version-cpanel\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/cpanel\\\/how-to-change-php-version-cpanel\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Change PHP Version in cPanel (PHP Selector Guide)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/#website\",\"url\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/\",\"name\":\"Host And Tech knowledge base\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/#organization\",\"name\":\"Host And Tech knowledge base\",\"url\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/wp-content\\\/uploads\\\/2026\\\/05\\\/logo-dark.png\",\"contentUrl\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/wp-content\\\/uploads\\\/2026\\\/05\\\/logo-dark.png\",\"width\":1134,\"height\":395,\"caption\":\"Host And Tech knowledge base\"},\"image\":{\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/stshostandtech\",\"https:\\\/\\\/x.com\\\/stshostandtech\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/#\\\/schema\\\/person\\\/b6fa79c48ddaba71af32e395c5b017ee\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/aa1edac8bbadb442e059a5b65ad45a3b2e3ce689202373b96e3e567517ae4b39?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/aa1edac8bbadb442e059a5b65ad45a3b2e3ce689202373b96e3e567517ae4b39?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/aa1edac8bbadb442e059a5b65ad45a3b2e3ce689202373b96e3e567517ae4b39?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"sameAs\":[\"https:\\\/\\\/hostandtech.com\\\/kb\"],\"url\":\"https:\\\/\\\/hostandtech.com\\\/kb\\\/author\\\/admin_fjj7qydm\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Change PHP Version in cPanel (PHP Selector Guide)","description":"Learn how to change your cPanel PHP version using PHP Selector or MultiPHP Manager. Covers shared hosting, common errors, and version-specific gotchas.","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:\/\/hostandtech.com\/kb\/cpanel\/how-to-change-php-version-cpanel\/","og_locale":"en_US","og_type":"article","og_title":"How to Change PHP Version in cPanel (PHP Selector Guide)","og_description":"Learn how to change your cPanel PHP version using PHP Selector or MultiPHP Manager. Covers shared hosting, common errors, and version-specific gotchas.","og_url":"https:\/\/hostandtech.com\/kb\/cpanel\/how-to-change-php-version-cpanel\/","og_site_name":"Host And Tech knowledge base","article_publisher":"https:\/\/www.facebook.com\/stshostandtech","article_published_time":"2026-05-31T06:14:52+00:00","author":"admin","twitter_card":"summary_large_image","twitter_creator":"@stshostandtech","twitter_site":"@stshostandtech","twitter_misc":{"Written by":"admin","Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/hostandtech.com\/kb\/cpanel\/how-to-change-php-version-cpanel\/#article","isPartOf":{"@id":"https:\/\/hostandtech.com\/kb\/cpanel\/how-to-change-php-version-cpanel\/"},"author":{"name":"admin","@id":"https:\/\/hostandtech.com\/kb\/#\/schema\/person\/b6fa79c48ddaba71af32e395c5b017ee"},"headline":"How to Change PHP Version in cPanel (PHP Selector Guide)","datePublished":"2026-05-31T06:14:52+00:00","mainEntityOfPage":{"@id":"https:\/\/hostandtech.com\/kb\/cpanel\/how-to-change-php-version-cpanel\/"},"wordCount":1532,"commentCount":0,"publisher":{"@id":"https:\/\/hostandtech.com\/kb\/#organization"},"keywords":["cPanel","cPanel PHP configuration","cPanel PHP version","How to Change PHP Version in cPanel (PHP Selector Guide)","MultiPHP","PHP selector","PHP version","shared hosting"],"articleSection":["cPanel Guides"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/hostandtech.com\/kb\/cpanel\/how-to-change-php-version-cpanel\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/hostandtech.com\/kb\/cpanel\/how-to-change-php-version-cpanel\/","url":"https:\/\/hostandtech.com\/kb\/cpanel\/how-to-change-php-version-cpanel\/","name":"How to Change PHP Version in cPanel (PHP Selector Guide)","isPartOf":{"@id":"https:\/\/hostandtech.com\/kb\/#website"},"datePublished":"2026-05-31T06:14:52+00:00","description":"Learn how to change your cPanel PHP version using PHP Selector or MultiPHP Manager. Covers shared hosting, common errors, and version-specific gotchas.","breadcrumb":{"@id":"https:\/\/hostandtech.com\/kb\/cpanel\/how-to-change-php-version-cpanel\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/hostandtech.com\/kb\/cpanel\/how-to-change-php-version-cpanel\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/hostandtech.com\/kb\/cpanel\/how-to-change-php-version-cpanel\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/hostandtech.com\/kb\/"},{"@type":"ListItem","position":2,"name":"How to Change PHP Version in cPanel (PHP Selector Guide)"}]},{"@type":"WebSite","@id":"https:\/\/hostandtech.com\/kb\/#website","url":"https:\/\/hostandtech.com\/kb\/","name":"Host And Tech knowledge base","description":"","publisher":{"@id":"https:\/\/hostandtech.com\/kb\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/hostandtech.com\/kb\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/hostandtech.com\/kb\/#organization","name":"Host And Tech knowledge base","url":"https:\/\/hostandtech.com\/kb\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/hostandtech.com\/kb\/#\/schema\/logo\/image\/","url":"https:\/\/hostandtech.com\/kb\/wp-content\/uploads\/2026\/05\/logo-dark.png","contentUrl":"https:\/\/hostandtech.com\/kb\/wp-content\/uploads\/2026\/05\/logo-dark.png","width":1134,"height":395,"caption":"Host And Tech knowledge base"},"image":{"@id":"https:\/\/hostandtech.com\/kb\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/stshostandtech","https:\/\/x.com\/stshostandtech"]},{"@type":"Person","@id":"https:\/\/hostandtech.com\/kb\/#\/schema\/person\/b6fa79c48ddaba71af32e395c5b017ee","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/aa1edac8bbadb442e059a5b65ad45a3b2e3ce689202373b96e3e567517ae4b39?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/aa1edac8bbadb442e059a5b65ad45a3b2e3ce689202373b96e3e567517ae4b39?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/aa1edac8bbadb442e059a5b65ad45a3b2e3ce689202373b96e3e567517ae4b39?s=96&d=mm&r=g","caption":"admin"},"sameAs":["https:\/\/hostandtech.com\/kb"],"url":"https:\/\/hostandtech.com\/kb\/author\/admin_fjj7qydm\/"}]}},"_links":{"self":[{"href":"https:\/\/hostandtech.com\/kb\/wp-json\/wp\/v2\/posts\/180","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hostandtech.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hostandtech.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hostandtech.com\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hostandtech.com\/kb\/wp-json\/wp\/v2\/comments?post=180"}],"version-history":[{"count":0,"href":"https:\/\/hostandtech.com\/kb\/wp-json\/wp\/v2\/posts\/180\/revisions"}],"wp:attachment":[{"href":"https:\/\/hostandtech.com\/kb\/wp-json\/wp\/v2\/media?parent=180"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hostandtech.com\/kb\/wp-json\/wp\/v2\/categories?post=180"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hostandtech.com\/kb\/wp-json\/wp\/v2\/tags?post=180"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}