How to Install PHP 7.x on CentOS 7

Step 1 - Setup the Webtatic YUM repo

Setup the Webtatic YUM repo:

rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm

Step 2 - Install PHP 7.1 with extensions

Install PHP 7.1 and some of the most commonly used extensions:

yum install mod_php71w php71w-cli php71w-common php71w-gd php71w-mbstring php71w-mcrypt php71w-mysqlnd php71w-xml

Last modified: August 03 2017 19:21:19