Installation on Debian
First of all, we must add the repositories
Bash
apt-get install apt-transport-https lsb-release ca-certificates
wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
echo «deb https://packages.sury.org/php/ $(lsb_release -sc) main» > /etc/apt/sources.list.d/php.listWe update the repositories and install the software
Bash
apt-get update
apt-get install php7.1Installation on CentOS / RHEL 7
First of all, we need to add the EPEL repositories
Bash
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
wget http://rpms.remirepo.net/enterprise/remi-release-7.rpm
rpm -Uvh remi-release-7.rpm epel-release-latest-7.noarch.rpmWe activate the repositories
Bash
subscription-manager repos –enable=rhel-7-server-optional-rpms
yum install yum-utils
yum-config-manager –enable remi-php71We install the software
Bash
yum install php71All the best.
:wq!
Comments