|
@@ -677,18 +677,18 @@ instalarMariaDB() {
|
|
|
instalarPHP() {
|
|
|
# Instalamos PHP-7 de forma diferente si es junto a Apache o con Nginx
|
|
|
if [ $debianOS = true ];then
|
|
|
- phpFPMName="php7.2-fpm"
|
|
|
if [ $apacheOn = true ]; then
|
|
|
result=$(apt-get -q -y install php libapache2-mod-php php-mysql php-intl php-mbstring openssl 2>&1)
|
|
|
comprobarError $? 302 $result
|
|
|
elif [ $nginxOn = true ];then
|
|
|
+ phpFPMName="php7.2-fpm"
|
|
|
result=$(apt-get -q -y install php-fpm libapache2-mod-php php-mysql php-intl php-mbstring openssl 2>&1)
|
|
|
comprobarError $? 302 $result
|
|
|
+ deshabilitarServicio $phpFPMName
|
|
|
else
|
|
|
comprobarError 1 301
|
|
|
fi
|
|
|
elif [ $rhelOS = true ];then
|
|
|
- phpFPMName="php-fpm"
|
|
|
# Necesitamos un repositorio adicional para PHP-7 (EPEL-RELEASE)
|
|
|
result=$(yum -y install epel-release yum-utils 2>&1)
|
|
|
comprobarError $? 103 $result
|
|
@@ -718,15 +718,16 @@ instalarPHP() {
|
|
|
result=$(yum -y install php php-mysql php-intl php-mbstring php-mcrypt openssl 2>&1)
|
|
|
comprobarError $? 302 $result
|
|
|
elif [ $nginxOn = true ];then
|
|
|
+ phpFPMName="php-fpm"
|
|
|
result=$(yum -y install php php-fpm php-mysql php-intl php-mbstring php-mcrypt openssl 2>&1)
|
|
|
comprobarError $? 302 $result
|
|
|
+ deshabilitarServicio $phpFPMName
|
|
|
else
|
|
|
comprobarError 1 301
|
|
|
fi
|
|
|
else
|
|
|
comprobarError 1 300
|
|
|
fi
|
|
|
- deshabilitarServicio $phpFPMName
|
|
|
}
|
|
|
|
|
|
configurarPHP() {
|