PHP 7.0 on CentOS/RHEL 6.9 and 7.4 using Yum

Before beginning this, it is assumed that you already have installed LAMP on your server.

To install, first you must add the Webtatic EL yum repository information corresponding to your CentOS/RHEL version to yum:

CentOS/RHEL 7.x:

rpm -Uvh
rpm -Uvh

CentOS/RHEL 6.x:

rpm -Uvh
rpm -Uvh

Now you can install PHP 7.0’s mod_php SAPI (along with an opcode cache) by doing:

yum install php70w php70w-opcache

You can alternatively install PHP 7.0’s php-fpm SAPI (along with an opcode cache by doing:

yum install php70w-fpm php70w-opcache

See the package list below for additional SAPIs and PHP extensions. Continue reading “PHP 7.0 on CentOS/RHEL 6.9 and 7.4 using Yum” »