Install PHP 7 on CentOS 7

In this tutorial, I guide you on how to install PHP 7 on CentOS 7!

First, you need to download the REMI repository file for CentOS containing the latest version of PHP at http://rpms.remirepo.net/enterprise/remi-release-7.rpm.

Because REMI repository depends on EPEL repository, you need to install EPEL repository first:

Result:

Install PHP 7 on CentOS 7

Then use the rpm tool to install the REMI repository rpm file:

Result:

Install PHP 7 on CentOS 7

 

At this point, you can use the following command to install PHP 7:

Result:

Install PHP 7 on CentOS 7

Check the PHP version:

Install PHP 7 on CentOS 7

Add Comment