August 11, 2026 · by CLIQHOST
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.
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:
With shared hosting cPanel from CLIQHOST, you can switch PHP versions directly from the control panel — no root access needed.
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.
Navigate to https://yourdomain.com:2083 or use the link provided in your welcome email from CLIQHOST.
You'll see a list of all domains and subdomains in your hosting account, each displaying its current PHP version.
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.
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.
Beyond the version itself, you can fine-tune PHP behaviour using 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.
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.
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.
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.
Use the free PHP Compatibility Checker plugin directly from your WordPress dashboard to scan your entire installation before switching PHP versions.
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.
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.
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."
"Migrated 12 client sites to CLIQHOST. Free migration, zero downtime, and the cPanel setup is exactly what my team needed. Highly recommend."
"Our NVMe VPS handles traffic spikes without a sweat. Full root, local datacenter, and billing in MDL — everything we wanted from a provider."