I’ve come across one client’s website that’s running on CentOS 7 and it’s using the outdated PHP version.
As of the day of this article, PHP 7.4 is ideal for the latest version of WordPress.
To install, first run:
sudo yum install epel-release && sudo yum update
The different command between Unbuntu and CentOS is to replace apt-get to yum.
Then install PHP
sudo yum install php
Verify the PHP version by running the following command:
php -v