Question
What versions of PHP are available in EasyApache 4 on AlmaLinux 8 and RockyLinux 8?
Answer
EasyApache 4 provides these PHP versions for AlmaLinux 8 and RockyLinux 8:
- PHP 7.2
- PHP 7.3
- PHP 7.4
- PHP 8.0
- PHP 8.1
- PHP 8.2
These versions of PHP are not available when moving to AlmaLinux 8 or RockyLinux 8:
- PHP 5.4
- PHP 5.5
- PHP 5.6
- PHP 7.0
- PHP 7.1
You can run this command to retrieve a list of currently available versions for your system:
repoquery --repoid=EA4 --queryformat="%{name}" | grep -Eoh "ea-php[0-9]{2}" | sort | uniq
Please note that since new packages are regularly added to our repositories, you should run the above command to get the most up-to-date information on which PHP packages are available.
Additional Resources
If your website requires PHP 4.4 through 5.3, CloudLinux 8 offers Hardened PHP:
How do I install legacy versions of PHP?
If your system is running CentOS 7, see our other article:
What versions of PHP are available in EasyApache 4 on CentOS 7?
If your system is running Ubuntu, see our other article:
What versions of PHP are available in EasyApache 4 on Ubuntu?