|
@@ -856,11 +856,11 @@ instalarPHP() {
|
|
|
# Instalamos PHP-7 de forma diferente si es junto a Apache o con Nginx
|
|
|
if [ $debianOS = true ];then
|
|
|
if [ $apacheOn = true ]; then
|
|
|
- result=$(apt-get -q -y install php libapache2-mod-php php-mysql php-intl php-mbstring openssl 2>&1)
|
|
|
+ result=$(apt-get -q -y install php libapache2-mod-php php-mysql php-intl php-mbstring php-xml 2>&1)
|
|
|
comprobarError $? 302 $result
|
|
|
elif [ $nginxOn = true ];then
|
|
|
phpFPMName="php7.2-fpm"
|
|
|
- result=$(apt-get -q -y install php-fpm php-mysql php-intl php-mbstring openssl 2>&1)
|
|
|
+ result=$(apt-get -q -y install php-fpm php-mysql php-intl php-mbstring php-xml 2>&1)
|
|
|
comprobarError $? 302 $result
|
|
|
deshabilitarServicio $phpFPMName
|
|
|
else
|
|
@@ -893,11 +893,11 @@ instalarPHP() {
|
|
|
comprobarError $? 303 $result
|
|
|
# Instalamos PHP-7.2
|
|
|
if [ $apacheOn = true ];then
|
|
|
- result=$(yum -y install php php-mysql php-intl php-mbstring php-mcrypt openssl 2>&1)
|
|
|
+ result=$(yum -y install php php-mysql php-intl php-mbstring php-mcrypt php-xml 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)
|
|
|
+ result=$(yum -y install php php-fpm php-mysql php-intl php-mbstring php-mcrypt php-xml 2>&1)
|
|
|
comprobarError $? 302 $result
|
|
|
deshabilitarServicio $phpFPMName
|
|
|
else
|
|
@@ -934,6 +934,7 @@ configurarPHP() {
|
|
|
comprobarError $? 305
|
|
|
# Configurar php-fpm (sólo en RHEL con Nginx)
|
|
|
if [ $rhelOS = true ] && [ $nginxOn = true ];then
|
|
|
+ # Configurar Socket UNIX
|
|
|
phpConfFile="./etc/php/php-fpm.d/www.conf"
|
|
|
phpDest="/etc/php-fpm.d/www.conf"
|
|
|
if [ ! -f $phpConfFile ];then
|
|
@@ -941,6 +942,9 @@ configurarPHP() {
|
|
|
fi
|
|
|
cp -f $phpConfFile $phpDest 2>/dev/null
|
|
|
comprobarError $? 305
|
|
|
+ # Configurar Permisos /var/lib/php
|
|
|
+ chown -R root:$webServerGroup /var/lib/php/
|
|
|
+ comprobarError $? 305
|
|
|
fi
|
|
|
unset phpConfFile phpDest
|
|
|
}
|