|
@@ -551,7 +551,7 @@ instalarPHP() {
|
|
|
fi
|
|
|
elif [ $rhelOS = true ];then
|
|
|
# Necesitamos un repositorio adicional para PHP-7 (EPEL-RELEASE)
|
|
|
- result=$(yum -y install epel-release)
|
|
|
+ result=$(yum -y install epel-release yum-utils)
|
|
|
comprobarError $? 103 $result
|
|
|
# Necesitamos un repositorio adicional para PHP-7 (REMI-RELEASE)
|
|
|
if [ $VERSION = "7" ];then
|
|
@@ -569,12 +569,15 @@ instalarPHP() {
|
|
|
else
|
|
|
comprobarError 1 304
|
|
|
fi
|
|
|
+ # Activamos repositorio remi-php72
|
|
|
+ result=$(yum-config-manager --enable remi-php72 2>&1)
|
|
|
+ comprobarError $? 303 $result
|
|
|
# Instalamos PHP-7.2
|
|
|
if [ $apacheOn = true ];then
|
|
|
- result=$(yum -y install php72 php72-php-pecl-mysql php72-php-intl php72-php-mbstring php72-php-pecl-mcrypt openssl 2>&1)
|
|
|
+ result=$(yum -y install php php-mysql php-intl php-mbstring php-mcrypt openssl 2>&1)
|
|
|
comprobarError $? 302 $result
|
|
|
elif [ $nginxOn = true ];then
|
|
|
- result=$(yum -y install php72 php72-php-fpm php72-php-pecl-mysql php72-php-intl php72-php-mbstring php72-php-pecl-mcrypt openssl 2>&1)
|
|
|
+ result=$(yum -y install php php-fpm php-mysql php-intl php-mbstring php-mcrypt openssl 2>&1)
|
|
|
comprobarError $? 302 $result
|
|
|
else
|
|
|
comprobarError 1 301
|