Vannkorn

Full Stack WordPress Developer

Close

Install PHP 7.4 on CentOS 7

PHP 7.4 is the minimum requirement to run the latest version of WordPress.

Ads: Register now via this link to receive $100 credit from Vultr

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 ym.

Then install PHP

sudo yum install php

Verify the PHP version by running the following command:

php -v

Leave a Reply

Your email address will not be published.