Skip to content

Commit 59edd73

Browse files
committed
Add multiphp for nginx only systems.
1 parent c50a4fc commit 59edd73

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

install/hst-install-debian.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -883,6 +883,22 @@ if [ "$nginx" = 'yes' ]; then
883883
cp -f $hestiacp/logrotate/nginx /etc/logrotate.d/
884884
echo > /etc/nginx/conf.d/hestia.conf
885885
mkdir -p /var/log/nginx/domains
886+
if [ "$apache" = 'no' ] && [ "$multiphp" = 'yes' ] && [ "$phpfpm" = 'no' ]; then
887+
update-rc.d php5.6-fpm defaults
888+
update-rc.d php7.0-fpm defaults
889+
update-rc.d php7.1-fpm defaults
890+
update-rc.d php7.2-fpm defaults
891+
cp -r /etc/php/5.6/ /root/hst_install_backups/php5.6/
892+
rm -f /etc/php/5.6/fpm/pool.d/*
893+
cp -r /etc/php/7.0/ /root/hst_install_backups/php7.0/
894+
rm -f /etc/php/7.0/fpm/pool.d/*
895+
cp -r /etc/php/7.1/ /root/hst_install_backups/php7.1/
896+
rm -f /etc/php/7.1/fpm/pool.d/*
897+
cp -r /etc/php/7.2/ /root/hst_install_backups/php7.2/
898+
rm -f /etc/php/7.2/fpm/pool.d/*
899+
cp -f $hestiacp/multiphp/nginx/* $HESTIA/data/templates/web/nginx/
900+
chmod a+x $HESTIA/data/templates/web/nginx/*.sh
901+
fi
886902
update-rc.d nginx defaults
887903
service nginx start
888904
check_result $? "nginx start failed"

install/hst-install-ubuntu.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -878,6 +878,22 @@ if [ "$nginx" = 'yes' ]; then
878878
cp -f $hestiacp/logrotate/nginx /etc/logrotate.d/
879879
echo > /etc/nginx/conf.d/hestia.conf
880880
mkdir -p /var/log/nginx/domains
881+
if [ "$apache" = 'no' ] && [ "$multiphp" = 'yes' ] && [ "$phpfpm" = 'no' ]; then
882+
update-rc.d php5.6-fpm defaults
883+
update-rc.d php7.0-fpm defaults
884+
update-rc.d php7.1-fpm defaults
885+
update-rc.d php7.2-fpm defaults
886+
cp -r /etc/php/5.6/ /root/hst_install_backups/php5.6/
887+
rm -f /etc/php/5.6/fpm/pool.d/*
888+
cp -r /etc/php/7.0/ /root/hst_install_backups/php7.0/
889+
rm -f /etc/php/7.0/fpm/pool.d/*
890+
cp -r /etc/php/7.1/ /root/hst_install_backups/php7.1/
891+
rm -f /etc/php/7.1/fpm/pool.d/*
892+
cp -r /etc/php/7.2/ /root/hst_install_backups/php7.2/
893+
rm -f /etc/php/7.2/fpm/pool.d/*
894+
cp -f $hestiacp/multiphp/nginx/* $HESTIA/data/templates/web/nginx/
895+
chmod a+x $HESTIA/data/templates/web/nginx/*.sh
896+
fi
881897
update-rc.d nginx defaults
882898
service nginx start
883899
check_result $? "nginx start failed"

0 commit comments

Comments
 (0)