Inicio Linux & Systems Networks & Infrastructure Cybersecurity Cloud & DevOps SIEM & Monitoring DFIR & Threat Intel Development & Other Todas las categorias Herramientas

Instalar PHP 7.1 en GNU/Linux

Instalar PHP 7.1 en GNU/Linux

Tabla de contenidos

Instalación en Debian

En primer lugar,debemos agregar los repositorios

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

Actualizamos los repositorios y instalamos el software

bash
apt-get update

apt-get install php7.1

Instalación en  CentOS / RHEL 7

En primer lugar,debemos agregar los repositorios EPEL

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

Activamos los repositorios

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

yum-config-manager –enable remi-php71

Instalamos el software

bash
yum install php71

Un saludo.

:wq!

Comentarios