INSTALANDO PHP 7.2 – CENTOS 7

REQUISITOS

Já tenha instalado o apache no CentOS 7.

INSTALAÇÃO

# yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
# yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
# yum install yum-utils
# subscription-manager repos --enable=rhel-7-server-optional-rpms
# yum-config-manager --enable remi-php72
# yum update
# yum install php72-php php72-php-fpm php72-php-gd php72-php-json php72-php-mbstring php72-php-mysqlnd php72-php-xml php72-php-xmlrpc php72-php-opcache

Obs.: Instale o php72-php e não o pacote php72 apenas, porque este não instala o module no apache.
Verifique se o module está instalado com o comando abaixo:

# apachectl -M |grep php

FONTE

https://www.cyberciti.biz/faq/how-to-install-php-7-2-on-centos-7-rhel-7/
https://superuser.com/questions/1370791/apache-not-executing-php-on-centos-7-in-browser#new-answer?newreg=e34de7d967e04ce5a615fcce6bccee7e

Marcado com , ,