Skip to content

Commit be6e172

Browse files
committed
Set PHP-FPM to v7.2 as default.
1 parent 19a19d5 commit be6e172

File tree

2 files changed

+7
-16
lines changed

2 files changed

+7
-16
lines changed

install/hst-install-debian.sh

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -984,17 +984,10 @@ fi
984984
#----------------------------------------------------------#
985985

986986
if [ "$phpfpm" = 'yes' ]; then
987-
if [ "$release" -eq 9 ]; then
988-
cp -f $hestiacp/php-fpm/www.conf /etc/php/7.0/fpm/pool.d/www.conf
989-
update-rc.d php7.0-fpm defaults
990-
service php7.0-fpm start
991-
check_result $? "php-fpm start failed"
992-
else
993-
cp -f $hestiacp/php5-fpm/www.conf /etc/php5/fpm/pool.d/www.conf
994-
update-rc.d php5-fpm defaults
995-
service php5-fpm start
996-
check_result $? "php-fpm start failed"
997-
fi
987+
cp -f $hestiacp/php-fpm/www.conf /etc/php/7.2/fpm/pool.d/www.conf
988+
update-rc.d php7.2-fpm defaults
989+
service php7.2-fpm start
990+
check_result $? "php-fpm start failed"
998991
fi
999992

1000993

install/hst-install-ubuntu.sh

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -986,11 +986,9 @@ fi
986986
#----------------------------------------------------------#
987987

988988
if [ "$phpfpm" = 'yes' ]; then
989-
cp -f $hestiacp/php-fpm/www.conf $pool/
990-
php_fpm=$(ls /etc/init.d/php*-fpm* |cut -f 4 -d /)
991-
ln -s /etc/init.d/$php_fpm /etc/init.d/php-fpm > /dev/null 2>&1
992-
update-rc.d $php_fpm defaults
993-
service $php_fpm start
989+
cp -f $hestiacp/php-fpm/www.conf /etc/php/7.2/fpm/pool.d/www.conf
990+
update-rc.d php7.2-fpm defaults
991+
service php7.2-fpm start
994992
check_result $? "php-fpm start failed"
995993
fi
996994

0 commit comments

Comments
 (0)