Question
How do I install legacy versions of PHP?
Answer
cPanel provides the latest stable versions of PHP available for each operating system.
What versions of PHP does cPanel support?
If you require a legacy version of PHP not already supported by EasyApache, CloudLinux offers Hardened PHP.
PHP versions available for Hardened PHP are:
- PHP 4.4.9
- PHP 5.1
- PHP 5.2
- PHP 5.3
- PHP 5.4
- PHP 5.5
- PHP 5.6
- PHP 7.0
- PHP 7.1
- PHP 7.2
Resources
For more information about this feature, you can visit CloudLinux's documentation:
Hardened PHP versions on CloudLinux
CentOS 7 users should consider first upgrading to AlmaLinux 8 or directly migrating to CloudLinux 8.
v112 CentOS 7, CloudLinux 6 and 7, and RHEL 7 deprecation
If you're running AlmaLinux or Rocky Linux 8, you can upgrade directly to CloudLinux 8: