How to Install PHP 7.x on CentOS 7

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

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: January 02 2018 10:46:05