How to Change PHP Version on Namecheap cPanel 2026
PHP version mismatches are the leading cause of the WordPress white screen of death on Namecheap hosting. This guide shows you exactly where to change PHP version in cPanel, which version to choose for WordPress in 2026, which PHP extensions WooCommerce requires, and how to fix the white screen if you’ve already hit it.
Why PHP Version Matters for WordPress
Every version of WordPress has a minimum and recommended PHP version. Running an older PHP version causes:
- White screen of death — blank page, no error shown (PHP fatal errors suppressed by default)
- Slow site performance — PHP 8.x is significantly faster than PHP 7.x (benchmarks show 15–30% speed improvement)
- Plugin incompatibilities — modern plugins increasingly require PHP 8.0+
- Security vulnerabilities — PHP 7.4 reached end-of-life in November 2022 and no longer receives security patches
WordPress 6.x minimum and recommended PHP versions (2026):
| PHP Version | Status | WordPress Compatibility |
|---|---|---|
| PHP 7.4 | End-of-life (Nov 2022) | Works but unsupported — security risk |
| PHP 8.0 | End-of-life (Nov 2023) | Works but unsupported — upgrade now |
| PHP 8.1 | Supported until Dec 2025 | ✅ Good — recommended minimum |
| PHP 8.2 | Supported until Dec 2026 | ✅ Best — recommended in 2026 |
| PHP 8.3 | Supported until Dec 2027 | ✅ Compatible — check plugin support first |
Recommendation for 2026: PHP 8.2. It’s actively supported, well-tested with WordPress core and major plugins, and offers full security patch coverage through 2026.
Where to Change PHP Version on Namecheap — Exact cPanel Path
Namecheap cPanel uses MultiPHP Manager for PHP version control. Some guides refer to “PHP Selector” — on Namecheap, the correct tool is MultiPHP Manager.
- Log into cPanel (yoursite.com/cpanel or via Namecheap dashboard → Hosting → Manage → cPanel Login)
- In cPanel, scroll down to the Software section
- Click MultiPHP Manager
- You’ll see a list of domains/subdomains on your hosting account
- Check the checkbox next to the domain you want to change
- Use the PHP Version dropdown (top right of the list) to select your target version (select PHP 8.2)
- Click Apply
- The change takes effect immediately — no server restart required
Note: If you have multiple domains on your hosting account (Stellar Plus allows unlimited), you can select multiple checkboxes and apply the same PHP version to all of them in one action.
Verify the PHP Version Changed
Don’t assume the change worked — verify it:
- In cPanel → File Manager → navigate to public_html (or the domain’s document root)
- Click New File → name it
phpinfo.php - Right-click it → Edit → paste:
<?php phpinfo(); ?>→ Save - Visit yoursite.com/phpinfo.php in your browser
- The PHP version appears in the first line of output
- Delete phpinfo.php immediately after checking — it exposes server configuration to anyone who visits the URL
PHP Extensions for WordPress and WooCommerce
WordPress and WooCommerce require specific PHP extensions. Namecheap’s default PHP 8.x installations include most of them, but if you’re running a custom PHP configuration, confirm these are enabled:
| Extension | Required for | Namecheap default? |
|---|---|---|
| curl | WordPress HTTP requests, WooCommerce API calls | ✅ Included |
| dom | WordPress XML parsing | ✅ Included |
| exif | Image metadata in WordPress media | ✅ Included |
| fileinfo | File type detection (media uploads) | ✅ Included |
| hash | WordPress security functions | ✅ Included |
| imagick or gd | Image resizing and thumbnails | ✅ Included (GD) |
| intl | WooCommerce currency formatting | ✅ Included |
| mbstring | Multibyte string handling (non-Latin characters) | ✅ Included |
| mysqli or mysqlnd | Database connection | ✅ Included |
| openssl | HTTPS connections, payment gateways | ✅ Included |
| pcre | WordPress regex operations | ✅ Included |
| xml | RSS feeds, XML-RPC | ✅ Included |
| zip | Plugin and theme installation via dashboard | ✅ Included |
To check which extensions are active on your specific Namecheap setup: visit your phpinfo.php file (created above) and search for each extension name on the page.
The White Screen of Death: What It Is and How to Fix It
The white screen of death (WSOD) — a completely blank white page with no error message — is the most common symptom of a PHP version mismatch on Namecheap hosting. Here’s why it happens and how to fix it.
Why PHP Causes the White Screen
When WordPress runs code that’s incompatible with your PHP version (e.g., a plugin using PHP 8 syntax running on PHP 7.4), PHP generates a fatal error. By default, WordPress suppresses fatal errors on live sites — so instead of an error message, you see a blank white page.
Diagnosing the WSOD on Namecheap
Step 1 — Enable WordPress debugging:
- In cPanel → File Manager → public_html → right-click
wp-config.php→ Edit - Find the line:
define( 'WP_DEBUG', false ); - Change it to:
define( 'WP_DEBUG', true ); - Add below it:
define( 'WP_DEBUG_LOG', true ); - Save. Reload the blank page — the actual error message now appears.
What you’ll see if it’s a PHP version mismatch:
Fatal error: Uncaught Error: Call to undefined function name_of_function() — or —
Parse error: syntax error, unexpected token
These indicate the code uses PHP syntax that doesn’t exist in your current PHP version.
Fixing the WSOD — PHP Version Route
- In cPanel → MultiPHP Manager → upgrade your PHP version (PHP 7.x → PHP 8.1 or 8.2)
- Clear any caching plugins (or rename the /wp-content/cache/ folder via File Manager)
- Reload the site
- If still blank: in cPanel → MultiPHP Manager → try PHP 8.1 instead of 8.2 (rare plugin incompatibilities with 8.2 exist)
WSOD Caused by a Plugin, Not PHP
Sometimes the WSOD is caused by a specific plugin that’s incompatible with your PHP version (either too old or using experimental features). Fix:
- In cPanel → File Manager → public_html/wp-content/plugins
- Rename the entire plugins folder to plugins_disabled
- Reload the site — if it loads, a plugin is the culprit
- Rename the folder back to plugins
- Open each plugin subfolder one at a time and rename it (e.g., woocommerce_off) to isolate which plugin causes the WSOD
- Once identified: update or replace that plugin
Changing PHP Version for a Subdomain
If your main site is at example.com but WordPress is installed at staging.example.com, the subdomain may use a different PHP version. In MultiPHP Manager, subdomains appear as separate entries in the list — apply the PHP version change to each one independently.
PHP Memory Limit — Separate from PHP Version
PHP version and PHP memory limit are separate settings. After upgrading PHP version, check your memory limit:
- Stellar (basic): 256MB — insufficient for WooCommerce under load
- Stellar Plus: 512MB — minimum for WooCommerce
- EasyWP Turbo: 256MB managed (Namecheap controls this)
- VPS: configurable up to available RAM
To raise the PHP memory limit on shared hosting, add to wp-config.php above the “/* That’s all” line:
define('WP_MEMORY_LIMIT', '512M');
Frequently Asked Questions
Where is PHP Selector in Namecheap cPanel?
Namecheap uses MultiPHP Manager, not PHP Selector. Go to cPanel → Software section → MultiPHP Manager. Select your domain, choose your PHP version, click Apply.
What is the best PHP version for WordPress on Namecheap in 2026?
PHP 8.2. It’s actively supported through December 2026, compatible with WordPress 6.x and all major plugins, and offers meaningful performance improvements over PHP 7.x.
Does changing PHP version break my WordPress site?
It can, if plugins are incompatible with the new version. Before upgrading from 7.x to 8.x, check your installed plugins’ changelogs for PHP 8.x compatibility notes. Most major plugins (WooCommerce, Yoast, Elementor) have been PHP 8.x compatible since 2022.
Can I set different PHP versions for different domains on Namecheap?
Yes. MultiPHP Manager shows each domain and subdomain separately. Apply different PHP versions to each independently.
My site shows a white screen after changing PHP version — how do I revert?
Go back to cPanel → MultiPHP Manager → select your domain → change PHP version back to the previous version → Apply. The site should restore immediately.
