PHP Version Support on cPanel Servers in 2025
Note: This post has been updated to reflect the latest PHP versions available in cPanel via EasyApache 4. PHP 7 and older versions are no longer supported, and using them may expose your site to security risks.
PHP Versions Available in EasyApache 4 (2025)
The table below outlines the PHP versions available in cPanel, based on your server’s operating system:
PHP Version | CentOS 7 | EL 8 | EL 9 | Ubuntu 20 | Ubuntu 22 |
---|---|---|---|---|---|
5.4 – 7.1 | Available, End-of-Life | Not Available | Not Available | Not Available | Not Available |
7.2 – 7.4 | Available, End-of-Life | Available, End-of-Life | Not Available | Available, End-of-Life | Not Available |
8.0 | Available, End-of-Life | Available, End-of-Life | Available, End-of-Life | Available, End-of-Life | Not Available |
8.1 | Installed, Patches | Installed, Patches | Installed, Patches | Installed, Patches | Installed, Patches |
8.2 | Installed, Supported | Installed, Supported | Installed, Supported | Installed, Supported | Installed, Supported |
8.3 | Available, Supported | Available, Supported | Available, Supported | Available, Supported | Available, Supported |
8.4 | Not Available | Available, Supported | Available, Supported | Not Available | Available, Supported |
PHP Version Flexibility with CloudLinux on UnderHost
At UnderHost, we use CloudLinux on all our shared hosting plans. This allows our customers to choose from multiple PHP versions:
- PHP 5.6 (For legacy applications)
- PHP 7.x (No longer recommended but available for compatibility)
- PHP 8.0, 8.1, 8.2, 8.3 (Recommended for modern websites)
- PHP 8.4 (Available for early adopters)
Using CloudLinux, you can switch between PHP versions directly from your cPanel, ensuring compatibility with your applications.
How to Upgrade PHP in cPanel
To upgrade your PHP version in cPanel:
- Log in to your cPanel account.
- Go to Software → Select PHP Version.
- Choose the PHP version you need (PHP 8.2 or 8.3 recommended).
- Click Set as Current to apply the changes.
Upgrade PHP via SSH (For Root Users)
If you have root access to your cPanel server, you can upgrade PHP using EasyApache 4:
yum install ea-php82
Replace ea-php82
with ea-php83
if you want the latest version.
Need Assistance? @CustomerPanel Can Help
Upgrading PHP can sometimes cause compatibility issues with older scripts. If you need expert assistance, our UnderHost Support team is here to help. We also offer managed hosting with automatic PHP updates and full server management.