Cambiar a usuario root
[root@localhost ~]# su -
## O ##
[root@localhost ~]# sudo -i
Instalar el repositiorio REMI
[root@localhost ~]# rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
Recuperando https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
advertencia:/var/tmp/rpm-tmp.JS428Y: EncabezadoV3 RSA/SHA256 Signature, ID de clave 352c64e5: NOKEY
Preparando... ##############################[100%]
Actualizando / instalando...
1:epel-release-7-11 ##############################[100%]
[root@localhost ~]# rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
Recuperando http://rpms.famillecollet.com/enterprise/remi.release-7.rpm
advertencia:/var/tmp/rpm-tmp.JS428Y: EncabezadoV4 DSA/SHA1 Signature, ID de clave 00f97f56: NOKEY
Preparando... ##############################[100%]
Actualizando / instalando...
1:remi-release-7.6-2.el7.remi ##############################[100%]
[root@localhost ~]#
Instalar apache y php con sus módulos comunes
[root@localhost ~]# yum --enablerepo=remi,remi-php72 install httpd php php-common
.
.
.
¡Listo!
[root@localhost ~]#
Instalar módulos adicionales
[root@localhost ~]# yum --enablerepo=remi,remi-php72 install php-pecl-apcu php-cli php-pear php-pdo php-mysqlnd php-pgsql php-pecl-mongodb php-pecl-memcache php-pecl-memcached php-gd php-mbstring php-mcrypt php-xml php-int redis php-pecl-redis php-opcache php-ldap php-pecl-zip libzip5 php-intl
.
.
.
¡Listo!
[root@localhost ~]#
Iniciar el servicio de apache
[root@localhost ~]# systemctl start httpd
Habilitar apache para iniciar automaticamente con el sistema
[root@localhost ~]# systemctl enable httpd
Created symlink from /etc/systemd/system/multi-user.target.wants/httpd.service to /usr/lib/systemd/system/httpd.servi
Configurar el Firewall
Permitir el acceso a apache de forma remota.
Mostrar las zonas activas
[root@localhost ~]# firewall-cmd --get-active-zones
public
interfaces: ens33
Agregar la nueva regla
[root@localhost ~]# firewall-cmd --permanent --zone=public --add-service=http
success
## O ##
[root@localhost ~]# firewall-cmd --permanent --zone=public --add-port=80/tcp
success
Reiniciar el servicio de firewall
[root@localhost ~]# systemctl restart firewalld

