{"id":58,"date":"2023-04-30T09:26:04","date_gmt":"2023-04-30T09:26:04","guid":{"rendered":"https:\/\/blog.herohosty.com\/?p=58"},"modified":"2026-10-11T17:43:11","modified_gmt":"2026-10-11T17:43:11","slug":"how-to-change-php-version","status":"publish","type":"post","link":"https:\/\/herohosty.com\/blog\/how-to-change-php-version\/","title":{"rendered":"How to Change PHP Version in cPanel (PHP 8.1, 8.2 &#038; 8.3 Guide 2026)"},"content":{"rendered":"<div class=\"blog-article-wrapper\" style=\"line-height: 1.8; font-size: 16px; color: #2d3748;\">\n<div class=\"hh-guides-nav-card\">\n<div class=\"hh-guides-nav-header\">\n        <span>\u2699\ufe0f<\/span><br \/>\n        <span>cPanel Server Optimization Hub (2026 Guides):<\/span>\n    <\/div>\n<div class=\"hh-guides-nav-list\">\n        <a href=\"https:\/\/herohosty.com\/blog\/how-to-change-php-version\/\" class=\"hh-guide-chip\">\ud83d\ude80 Switch PHP Version (8.2 &amp; 8.3) \u2192<\/a><br \/>\n        <a href=\"https:\/\/herohosty.com\/blog\/how-to-install-wordpress-from-herohosty-cpanel\/\" class=\"hh-guide-chip\">\u26a1 1-Click WordPress Setup \u2192<\/a><br \/>\n        <a href=\"https:\/\/herohosty.com\/blog\/how-to-install-ssl-on-herohosty\/\" class=\"hh-guide-chip\">\ud83d\udd12 Install Free SSL Certificate \u2192<\/a><br \/>\n        <a href=\"https:\/\/herohosty.com\/blog\/steps-to-sub-domain-creation-through-cpanel\/\" class=\"hh-guide-chip\">\ud83d\udcc1 Create cPanel Subdomain \u2192<\/a><br \/>\n        <a href=\"https:\/\/herohosty.com\/blog\/how-to-change-cpanel-password\/\" class=\"hh-guide-chip\">\ud83d\udd11 Change cPanel Password \u2192<\/a>\n    <\/div>\n<\/div>\n<p class=\"lead\" style=\"font-size: 18px; color: #1a202c; font-weight: 500;\">PHP is the server-side scripting language that powers over <strong>77% of all websites<\/strong> whose server-side programming language is known, including WordPress, WooCommerce, Joomla, and Drupal. Running an outdated PHP version (like PHP 7.4 or 8.0) leaves your website vulnerable to critical security exploits and causes significant performance bottlenecks.<\/p>\n<p>Benchmark tests show that upgrading from PHP 7.4 to <strong>PHP 8.2 or PHP 8.3<\/strong> delivers up to a <strong>300% boost in request handling capacity<\/strong>, reduces CPU resource consumption, and slashes Time-to-First-Byte (TTFB) by more than half.<\/p>\n<p>In this 2026 guide, you will learn how to change your PHP version in cPanel in under 60 seconds using <strong>MultiPHP Manager<\/strong> or <strong>Select PHP Version<\/strong>, how to enable essential PHP extensions, and how to increase your PHP memory limit.<\/p>\n<p><!-- Performance Benefit Box --><\/p>\n<div style=\"background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%); border: 1px solid #bbf7d0; border-left: 5px solid #16a34a; border-radius: 10px; padding: 22px; margin: 28px 0;\">\n<div style=\"display: flex; align-items: center; gap: 10px; margin-bottom: 8px;\">\n        <span style=\"font-size: 22px;\">\u26a1<\/span><\/p>\n<h3 style=\"margin: 0; font-size: 18px; color: #166534; font-weight: 700;\">Why You Should Upgrade to PHP 8.2 or PHP 8.3 Today<\/h3>\n<\/p><\/div>\n<ul style=\"margin: 0; padding-left: 20px; font-size: 15px; color: #14532d; line-height: 1.8;\">\n<li><strong>Huge Speed Improvements:<\/strong> JIT (Just-In-Time) compilation processes complex WordPress code significantly faster.<\/li>\n<li><strong>Active Security Patches:<\/strong> PHP 7.4 and 8.0 reached End-of-Life (EOL) years ago and receive zero security updates.<\/li>\n<li><strong>Plugin &amp; Theme Compatibility:<\/strong> Modern WordPress plugins and WooCommerce require PHP 8.1+ to operate without fatal errors.<\/li>\n<li><strong>Reduced Server Load:<\/strong> Fewer CPU cycles per pageview means your site handles traffic spikes with ease.<\/li>\n<\/ul>\n<\/div>\n<h2 style=\"font-size: 24px; color: #1a202c; margin-top: 36px; margin-bottom: 16px; font-weight: 700;\">Method 1: Change PHP Version via MultiPHP Manager (Universal Method)<\/h2>\n<p>Most modern cPanel servers on HeroHosty feature the native <strong>MultiPHP Manager<\/strong>, allowing you to assign different PHP versions to individual domains and subdomains on the same account:<\/p>\n<div style=\"background: #ffffff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 22px; margin: 20px 0; box-shadow: 0 1px 3px rgba(0,0,0,0.04);\">\n<ol style=\"padding-left: 20px; margin: 0; font-size: 15px; color: #334155; line-height: 1.9;\">\n<li>Log in to your <strong>cPanel dashboard<\/strong> (via <code>yourdomain.com:2083<\/code> or the <a href=\"https:\/\/herohosty.com\/clientarea\/\" style=\"color: #2563eb; font-weight: 600;\">HeroHosty Client Area<\/a>).<\/li>\n<li>Under the <strong>Software<\/strong> section, click on <strong>MultiPHP Manager<\/strong>.<\/li>\n<li>Scroll down to the <em>Set PHP Version per Domain<\/em> table. You will see a list of all your domains and subdomains alongside their currently active PHP version.<\/li>\n<li>Check the box next to the domain name you want to update.<\/li>\n<li>In the top right dropdown menu labeled <strong>PHP Version<\/strong>, select your target version (we recommend <strong style=\"color: #16a34a;\">PHP 8.2<\/strong> or <strong style=\"color: #16a34a;\">PHP 8.3<\/strong> for maximum stability and speed).<\/li>\n<li>Click the blue <strong>&#8220;Apply&#8221;<\/strong> button. The change takes effect instantaneously!<\/li>\n<\/ol>\n<\/div>\n<h2 style=\"font-size: 24px; color: #1a202c; margin-top: 36px; margin-bottom: 16px; font-weight: 700;\">Method 2: Change PHP Version &amp; Extensions via &#8220;Select PHP Version&#8221; (CloudLinux)<\/h2>\n<p>On servers running CloudLinux OS, you get the advanced <strong>Select PHP Version<\/strong> module. This gives you granular control over PHP modules, extensions, and memory limits:<\/p>\n<div style=\"background: #ffffff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 22px; margin: 20px 0; box-shadow: 0 1px 3px rgba(0,0,0,0.04);\">\n<ol style=\"padding-left: 20px; margin: 0; font-size: 15px; color: #334155; line-height: 1.9;\">\n<li>In cPanel, click on <strong>Select PHP Version<\/strong> under the Software tab.<\/li>\n<li>Next to <strong>Current PHP Version<\/strong>, click the dropdown and choose <strong>8.2<\/strong> or <strong>8.3<\/strong>, then click <strong>&#8220;Set as current&#8221;<\/strong>.<\/li>\n<li><strong>Enable Essential Extensions:<\/strong> In the <em>Extensions<\/em> tab below, ensure the following critical modules are checked:\n<ul style=\"margin: 6px 0; padding-left: 20px;\">\n<li><code>opcache<\/code> (vital for LiteSpeed and PHP caching)<\/li>\n<li><code>imagick<\/code> (required by WordPress for image cropping and WebP generation)<\/li>\n<li><code>curl<\/code>, <code>mbstring<\/code>, <code>zip<\/code>, <code>intl<\/code>, <code>mysqli<\/code><\/li>\n<\/ul>\n<\/li>\n<li><strong>Adjust PHP Directives:<\/strong> Switch to the <strong>Options<\/strong> tab to customize:\n<ul style=\"margin: 6px 0; padding-left: 20px;\">\n<li><code>memory_limit<\/code> &rarr; Set to <strong>512M<\/strong><\/li>\n<li><code>upload_max_filesize<\/code> &rarr; Set to <strong>64M<\/strong> or <strong>128M<\/strong><\/li>\n<li><code>post_max_size<\/code> &rarr; Set to <strong>128M<\/strong><\/li>\n<li><code>max_execution_time<\/code> &rarr; Set to <strong>300<\/strong><\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<\/div>\n<h2 style=\"font-size: 24px; color: #1a202c; margin-top: 36px; margin-bottom: 16px; font-weight: 700;\">What to Do If Your Website Shows an Error After Updating PHP<\/h2>\n<p>If your website displays a blank white screen (WSOD) or a <em>&#8220;Fatal Error&#8221;<\/em> immediately after switching to a newer PHP version, it means an outdated theme or plugin on your site is incompatible with modern PHP syntax.<\/p>\n<div style=\"background: #ffffff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 22px; margin: 20px 0; box-shadow: 0 1px 3px rgba(0,0,0,0.04);\">\n<h4 style=\"margin: 0 0 10px 0; font-size: 17px; color: #0f172a; font-weight: 700;\">How to Troubleshoot Incompatibilities:<\/h4>\n<ol style=\"padding-left: 20px; margin: 0; font-size: 15px; color: #334155; line-height: 1.8;\">\n<li><strong>Instant Rollback:<\/strong> Return to MultiPHP Manager and switch back to the previous working PHP version (e.g., PHP 8.1). Your website will recover immediately.<\/li>\n<li><strong>Update Themes &amp; Plugins:<\/strong> Log in to your WordPress admin panel and update all plugins and themes to their latest available releases.<\/li>\n<li><strong>Check Error Logs:<\/strong> In cPanel, open <strong>Metrics &rarr; Errors<\/strong> or check the <code>public_html\/error_log<\/code> file to identify the exact plugin filename triggering the incompatibility.<\/li>\n<li><strong>Re-test:<\/strong> Once updated, switch back to PHP 8.2 or 8.3!<\/li>\n<\/ol>\n<\/div>\n<h2 style=\"font-size: 24px; color: #1a202c; margin-top: 36px; margin-bottom: 20px; font-weight: 700;\">Recommended High-Performance Web Hosting Plans<\/h2>\n<div class=\"hh-plans-stack\">\n    <!-- Single Plan --><\/p>\n<div class=\"hh-plan-row\">\n<div class=\"hh-plan-info\">\n<h3 class=\"hh-plan-title\">Single Shared Hosting<\/h3>\n<p class=\"hh-plan-sub\">Ideal for personal blogs, starter sites, and portfolios.<\/p>\n<div class=\"hh-plan-specs\">\n                <span class=\"hh-plan-spec-item\"><span class=\"hh-spec-check\">\u2713<\/span> 1 Website<\/span><br \/>\n                <span class=\"hh-plan-spec-item\"><span class=\"hh-spec-check\">\u2713<\/span> 10 GB Enterprise NVMe<\/span><br \/>\n                <span class=\"hh-plan-spec-item\"><span class=\"hh-spec-check\">\u2713<\/span> Unmetered Bandwidth<\/span><br \/>\n                <span class=\"hh-plan-spec-item\"><span class=\"hh-spec-check\">\u2713<\/span> Free SSL &amp; cPanel<\/span>\n            <\/div>\n<\/p><\/div>\n<div class=\"hh-plan-side\">\n<div class=\"hh-plan-price-wrap\"><span class=\"hh-plan-price\">\u20ac0.97<\/span> <span class=\"hh-plan-period\">\/month<\/span><\/div>\n<p>            <a href=\"https:\/\/herohosty.com\/clientarea\/cart.php?a=add&#038;pid=104&#038;currency=5\" class=\"hh-btn-order hh-btn-dark\" style=\"background: #0f172a !important; color: #ffffff !important; text-decoration: none !important;\">Deploy Single Plan \u2192<\/a>\n        <\/div>\n<\/p><\/div>\n<p>    <!-- Business Plan (Featured) --><\/p>\n<div class=\"hh-plan-row featured\">\n        <span class=\"hh-plan-badge\">\ud83d\udd25 MOST POPULAR \u2022 RECOMMENDED<\/span><\/p>\n<div class=\"hh-plan-info\">\n<h3 class=\"hh-plan-title\">Business Shared Hosting<\/h3>\n<p class=\"hh-plan-sub\">Designed for growing businesses, WordPress, &amp; e-commerce.<\/p>\n<div class=\"hh-plan-specs\">\n                <span class=\"hh-plan-spec-item\"><span class=\"hh-spec-check\">\u2713<\/span> Up to 5 Websites<\/span><br \/>\n                <span class=\"hh-plan-spec-item\"><span class=\"hh-spec-check\">\u2713<\/span> Unlimited NVMe SSD<\/span><br \/>\n                <span class=\"hh-plan-spec-item\"><span class=\"hh-spec-check\">\u2713<\/span> 2 CPU Cores &amp; 4 GB RAM<\/span><br \/>\n                <span class=\"hh-plan-spec-item\"><span class=\"hh-spec-check\">\u2713<\/span> LiteSpeed Turbo Caching<\/span>\n            <\/div>\n<\/p><\/div>\n<div class=\"hh-plan-side\">\n<div class=\"hh-plan-price-wrap\"><span class=\"hh-plan-price\">\u20ac1.95<\/span> <span class=\"hh-plan-period\">\/month<\/span><\/div>\n<p>            <a href=\"https:\/\/herohosty.com\/clientarea\/cart.php?a=add&#038;pid=105&#038;currency=5\" class=\"hh-btn-order hh-btn-orange\" style=\"background: #ff6b00 !important; color: #ffffff !important; text-decoration: none !important;\">Deploy Business Plan \u2192<\/a>\n        <\/div>\n<\/p><\/div>\n<p>    <!-- Premium Plan --><\/p>\n<div class=\"hh-plan-row\">\n<div class=\"hh-plan-info\">\n<h3 class=\"hh-plan-title\">Premium Shared Hosting<\/h3>\n<p class=\"hh-plan-sub\">Max performance for web agencies and high-traffic portals.<\/p>\n<div class=\"hh-plan-specs\">\n                <span class=\"hh-plan-spec-item\"><span class=\"hh-spec-check\">\u2713<\/span> Unlimited Websites<\/span><br \/>\n                <span class=\"hh-plan-spec-item\"><span class=\"hh-spec-check\">\u2713<\/span> Unlimited NVMe SSD<\/span><br \/>\n                <span class=\"hh-plan-spec-item\"><span class=\"hh-spec-check\">\u2713<\/span> 3 CPU Cores &amp; 6 GB RAM<\/span><br \/>\n                <span class=\"hh-plan-spec-item\"><span class=\"hh-spec-check\">\u2713<\/span> VIP 24\/7 Support &amp; Backups<\/span>\n            <\/div>\n<\/p><\/div>\n<div class=\"hh-plan-side\">\n<div class=\"hh-plan-price-wrap\"><span class=\"hh-plan-price\">\u20ac2.93<\/span> <span class=\"hh-plan-period\">\/month<\/span><\/div>\n<p>            <a href=\"https:\/\/herohosty.com\/clientarea\/cart.php?a=add&#038;pid=106&#038;currency=5\" class=\"hh-btn-order hh-btn-dark\" style=\"background: #0f172a !important; color: #ffffff !important; text-decoration: none !important;\">Deploy Premium Plan \u2192<\/a>\n        <\/div>\n<\/p><\/div>\n<\/div>\n<h2 style=\"font-size: 24px; color: #1a202c; margin-top: 36px; margin-bottom: 16px; font-weight: 700;\">Frequently Asked Questions (FAQ) : Changing PHP Versions in cPanel<\/h2>\n<div class=\"hh-faq-accordion\" style=\"margin: 24px 0;\">\n<div style=\"background: #ffffff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 20px; margin-bottom: 14px; box-shadow: 0 1px 3px rgba(0,0,0,0.04);\">\n<h3 style=\"font-size: 17px; color: #1e293b; margin: 0 0 8px 0; font-weight: 700;\">1. Which PHP version is recommended for WordPress in 2026?<\/h3>\n<p style=\"font-size: 15px; color: #475569; margin: 0; line-height: 1.7;\">PHP 8.2 or PHP 8.3 is strongly recommended. They offer the optimal balance between peak execution performance, memory optimization, and full compatibility with WordPress core.<\/p>\n<\/p><\/div>\n<div style=\"background: #ffffff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 20px; margin-bottom: 14px; box-shadow: 0 1px 3px rgba(0,0,0,0.04);\">\n<h3 style=\"font-size: 17px; color: #1e293b; margin: 0 0 8px 0; font-weight: 700;\">2. Can I run different PHP versions on different subdomains?<\/h3>\n<p style=\"font-size: 15px; color: #475569; margin: 0; line-height: 1.7;\">Yes. With MultiPHP Manager, you can independently assign PHP 8.3 to your main domain while keeping a legacy subdomain running on PHP 8.1 if required.<\/p>\n<\/p><\/div>\n<div style=\"background: #ffffff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 20px; margin-bottom: 14px; box-shadow: 0 1px 3px rgba(0,0,0,0.04);\">\n<h3 style=\"font-size: 17px; color: #1e293b; margin: 0 0 8px 0; font-weight: 700;\">3. Does changing the PHP version cause website downtime?<\/h3>\n<p style=\"font-size: 15px; color: #475569; margin: 0; line-height: 1.7;\">No. The server re-routes PHP-FPM \/ LiteSpeed workers instantly without restarting the entire web server, ensuring zero downtime for your active website visitors.<\/p>\n<\/p><\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u2699\ufe0f cPanel Server Optimization Hub (2026 Guides): \ud83d\ude80 Switch PHP Version (8.2 &amp; 8.3) \u2192 \u26a1 1-Click WordPress Setup \u2192 \ud83d\udd12 Install Free SSL Certificate \u2192 \ud83d\udcc1 Create cPanel Subdomain \u2192 \ud83d\udd11 Change cPanel Password \u2192 PHP is the server-side scripting language that powers over 77% of all websites whose server-side programming language is known, <a href=\"https:\/\/herohosty.com\/blog\/how-to-change-php-version\/\" class=\"more-link\">&#8230;<span class=\"screen-reader-text\">  How to Change PHP Version in cPanel (PHP 8.1, 8.2 &#038; 8.3 Guide 2026)<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":274,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,9],"tags":[5],"class_list":["post-58","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","category-web-hosting-guides","tag-hosting"],"_links":{"self":[{"href":"https:\/\/herohosty.com\/blog\/wp-json\/wp\/v2\/posts\/58","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/herohosty.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/herohosty.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/herohosty.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/herohosty.com\/blog\/wp-json\/wp\/v2\/comments?post=58"}],"version-history":[{"count":3,"href":"https:\/\/herohosty.com\/blog\/wp-json\/wp\/v2\/posts\/58\/revisions"}],"predecessor-version":[{"id":275,"href":"https:\/\/herohosty.com\/blog\/wp-json\/wp\/v2\/posts\/58\/revisions\/275"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/herohosty.com\/blog\/wp-json\/wp\/v2\/media\/274"}],"wp:attachment":[{"href":"https:\/\/herohosty.com\/blog\/wp-json\/wp\/v2\/media?parent=58"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/herohosty.com\/blog\/wp-json\/wp\/v2\/categories?post=58"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/herohosty.com\/blog\/wp-json\/wp\/v2\/tags?post=58"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}