// blog

How to Change PHP Version in cPanel: Complete Guide for WordPress & Other CMS

August 11, 2026 · by CLIQHOST

How to Change PHP Version in cPanel: Complete Guide for WordPress & Other CMS

The PHP version running on your server directly affects your website's speed, security, and compatibility. Whether you use WordPress, Joomla, or a custom application, running an outdated PHP version can expose your site to known vulnerabilities or cause unexpected errors that are hard to trace.

In this guide, we'll walk you through how to change the PHP version in cPanel, how to pick the right version for your needs, and what to check before and after the upgrade.


Why Your PHP Version Matters

PHP is the server-side language powering the vast majority of websites — WordPress, Joomla, Magento, and more all depend on it. Here's why the version you're running is critical:

  • Security: Older versions (PHP 7.4, 8.0) no longer receive security patches. Publicly known exploits remain unaddressed on EOL versions.
  • Performance: PHP 8.2 and 8.3 are up to 30–40% faster than PHP 7.4 in real WordPress environments.
  • Compatibility: Modern WordPress themes and plugins require PHP 8.0 or higher. Some features simply won't work on older versions.
  • Official support: PHP has a defined lifecycle — versions marked as "End of Life" are no longer maintained by the community.

With shared hosting cPanel from CLIQHOST, you can switch PHP versions directly from the control panel — no root access needed.


Which PHP Version Should You Choose in 2025

Before making any changes, check compatibility:

PHP Version Status (2025) Recommendation
7.4 EOL Migrate immediately
8.0 EOL Migrate immediately
8.1 Security fixes only Older themes/legacy code
8.2 Active support General recommendation
8.3 Active support New projects, WP 6.5+

Our recommendation: If your WordPress installation is up to date with modern themes and plugins, use PHP 8.2 or 8.3.

For official WordPress requirements, refer to the WordPress requirements page.


How to Change PHP Version in cPanel — Step by Step

Step 1: Log in to cPanel

Navigate to https://yourdomain.com:2083 or use the link provided in your welcome email from CLIQHOST.

Step 2: Open MultiPHP Manager

  1. In the Software section, find MultiPHP Manager.
  2. Click to open the interface.

You'll see a list of all domains and subdomains in your hosting account, each displaying its current PHP version.

Step 3: Select Your Domain and PHP Version

  1. Check the box next to the domain (or subdomains) you want to update.
  2. In the PHP Version dropdown, select your desired version (e.g., PHP 8.2).
  3. Click Apply.

cPanel will apply the change within seconds. No server restart is required.

Note: If you host multiple domains in the same account, you can set different PHP versions for each — ideal when maintaining sites with varying requirements.

Step 4: Verify the Active Version

Create a file named phpinfo.php in your site's root directory:

<?php
phpinfo();
?>

Visit https://yourdomain.com/phpinfo.php in your browser. The first line will display your active PHP version. Delete this file immediately after checking — it exposes sensitive server information.


Configuring PHP Directives in cPanel

Beyond the version itself, you can fine-tune PHP behaviour using MultiPHP INI Editor.

Open MultiPHP INI Editor

In cPanel → Software → MultiPHP INI Editor.

Two modes are available:
- Basic Mode: Edit common settings (memory_limit, upload_max_filesize, etc.) using visual input fields.
- Editor Mode: Directly edit the php.ini file.

Recommended Settings for WordPress

memory_limit = 256M
max_execution_time = 120
upload_max_filesize = 64M
post_max_size = 64M
max_input_vars = 3000
display_errors = Off

These values cover the needs of most WordPress sites, including those running resource-heavy page builders like Elementor or WPBakery.

If your site is growing and shared hosting resources are no longer sufficient, consider upgrading to a VPS NVMe for dedicated resources and full server control.


Common Errors After Changing PHP Version

The Site Shows a 500 Error

Cause: A plugin or theme is incompatible with the new PHP version.

Solution:
1. Temporarily revert to the previous PHP version.
2. Open Error Logs in cPanel to identify the file or function causing the issue.
3. Update the problematic plugin or theme, or contact its developer.

Deprecated Function Warnings

Cause: Code uses functions that have been removed in newer PHP versions.

Solution: Disable error display in php.ini (display_errors = Off) and report the issue to the plugin/theme developer.

Incompatible WordPress Plugin

Use the free PHP Compatibility Checker plugin directly from your WordPress dashboard to scan your entire installation before switching PHP versions.


How to Change PHP Version on a VPS via SSH

If you're running a VPS SSD or a dedicated server with SSH access, PHP version management happens in the terminal:

# Check current version
php -v

# Install PHP 8.2 (Ubuntu/Debian with Ondřej Surý PPA)
sudo apt install php8.2 php8.2-fpm php8.2-mysql php8.2-curl php8.2-xml -y

# Switch the default CLI version
sudo update-alternatives --set php /usr/bin/php8.2

# Switch Apache module
sudo a2dismod php8.1
sudo a2enmod php8.2
sudo systemctl restart apache2

For Nginx with PHP-FPM, update the virtual host configuration:

location ~ \.php$ {
    fastcgi_pass unix:/run/php/php8.2-fpm.sock;
    include fastcgi_params;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}

If server administration isn't your area of expertise, CLIQHOST offers professional server management services to handle all of this for you.


Best Practices Before Changing PHP Version

  1. Create a full backup — files and database. Use the Backup Wizard in cPanel or a WordPress plugin like UpdraftPlus.
  2. Test on a staging environment — make changes on a test site before going live.
  3. Scan plugin compatibility — run the PHP Compatibility Checker first.
  4. Read the changelog — every PHP version documents removed and deprecated functions.
  5. Monitor after the update — keep an eye on your site for 24–48 hours for unusual errors.

Conclusion

Changing your PHP version is one of the simplest yet most impactful actions you can take to improve your website's security and performance. With cPanel hosting from CLIQHOST, the entire process takes under two minutes and requires no advanced technical knowledge.

If your site has outgrown shared hosting, explore our VPS NVMe plans for the next level of performance — or reach out through our contact page for a free consultation with our team.

SHARE
// what clients say

What Our Clients Say

Real reviews from customers who trust CLIQHOST for performance, reliability and expert technical support.

★★★★★

"We moved our online shop from a foreign host and the difference is night and day — pages load instantly and support replies in minutes, in Romanian."

AM
Andrei M.
eCommerce owner · Chișinău
★★★★★

"Migrated 12 client sites to CLIQHOST. Free migration, zero downtime, and the cPanel setup is exactly what my team needed. Highly recommend."

EV
Elena V.
Web agency · Bălți
★★★★★

"Our NVMe VPS handles traffic spikes without a sweat. Full root, local datacenter, and billing in MDL — everything we wanted from a provider."

DC
Dmitri C.
SaaS founder · Chișinău