Home Linux & Systems Cybersecurity Cloud & DevOps Networks & Infrastructure SIEM & Monitoring DFIR & Threat Intel Development & Other All categories Projects About Tools

Install PHP 7.1 on GNU/Linux

Leer en espanol
Install PHP 7.1 on GNU/Linux

Table of contents

First of all, we must add the repositories bashapt-get install apt-transport-https lsb-release ca-certificates wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury ===

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.list

We update the repositories and install the software

Bash
apt-get update

apt-get install php7.1

Installation 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.rpm

We activate the repositories

Bash
subscription-manager repos –enable=rhel-7-server-optional-rpms
yum install yum-utils

yum-config-manager –enable remi-php71

We install the software

Bash
yum install php71

All the best.

:wq!

Comments