File tree Expand file tree Collapse file tree 5 files changed +29
-4
lines changed
Expand file tree Collapse file tree 5 files changed +29
-4
lines changed Original file line number Diff line number Diff line change 1+ [www]
2+ listen = 127.0.0.1:9999
3+ listen.allowed_clients = 127.0.0.1
4+
5+ user = www-data
6+ group = www-data
7+
8+ pm = ondemand
9+ pm.max_children = 2
10+ pm.max_requests = 4000
11+ pm.process_idle_timeout = 10s
Original file line number Diff line number Diff line change @@ -1102,6 +1102,8 @@ if [ "$nginx" = 'yes' ]; then
11021102 rm -f /etc/php/$v /fpm/pool.d/*
11031103 v_tpl=$( echo " $v " | sed -e ' s/[.]//' )
11041104 cp -f $hestiacp /multiphp/nginx/PHP-$v_tpl .* $HESTIA /data/templates/web/nginx/
1105+ cp -f $hestiacp /php-fpm/dummy.conf /etc/php/$v /fpm/pool.d/
1106+ sed -i " /s/9999/9999$v_tpl /g" /etc/php/$v /fpm/pool.d/dummy.conf
11051107 done
11061108 cp -f $hestiacp /php-fpm/www.conf /etc/php/$fpm_v /fpm/pool.d/
11071109 chmod a+x $HESTIA /data/templates/web/nginx/* .sh
Original file line number Diff line number Diff line change @@ -1075,6 +1075,8 @@ if [ "$nginx" = 'yes' ]; then
10751075 rm -f /etc/php/$v /fpm/pool.d/*
10761076 v_tpl=$( echo " $v " | sed -e ' s/[.]//' )
10771077 cp -f $hestiacp /multiphp/nginx/PHP-$v_tpl .* $HESTIA /data/templates/web/nginx/
1078+ cp -f $hestiacp /php-fpm/dummy.conf /etc/php/$v /fpm/pool.d/
1079+ sed -i " /s/9999/9999$v_tpl /g" /etc/php/$v /fpm/pool.d/dummy.conf
10781080 done
10791081 cp -f $hestiacp /php-fpm/www.conf /etc/php/$fpm_v /fpm/pool.d/
10801082 chmod a+x $HESTIA /data/templates/web/nginx/* .sh
Original file line number Diff line number Diff line change @@ -202,6 +202,16 @@ if [ "$PROXY_SYSTEM" = "nginx" ]; then
202202 fi
203203fi
204204
205+ # Fix empty pool error message for multiphp
206+ php_versions=$( ls -l /etc/php/ | grep ^d | wc -l )
207+ if [ " $php_versions " -gt 1 ]; then
208+ for v in $( ls /etc/php/) ; do
209+ cp -f $hestiacp /php-fpm/dummy.conf /etc/php/$d /fpm/pool.d/
210+ v1=$( echo " $v " | sed -e ' s/[.]//' )
211+ sed -i " s/9999/9999$v1 /g" /etc/php/$v /fpm/pool.d/dummy.conf
212+ done
213+ fi
214+
205215# Set Purge to false in roundcube config - https://goo.gl/3Nja3u
206216echo " (*) Updating Roundcube configuration..."
207217if [ -f /etc/roundcube/config.inc.php ]; then
Original file line number Diff line number Diff line change @@ -21,10 +21,10 @@ timestamp() {
2121}
2222
2323# Install needed software
24- echo " Update system repository ..."
25- apt-get -qq update
24+ echo " Updating system APT repositories ..."
25+ apt-get -qq update > /dev/null 2>&1
2626echo " Installing dependencies for compilation..."
27- apt-get -qq install -y $SOFTWARE
27+ apt-get -qq install -y $SOFTWARE > /dev/null 2>&1
2828
2929# Fix for Debian PHP Envroiment
3030if [ ! -e /usr/local/include/curl ]; then
314314# ################################################################################
315315
316316if [ " $INSTALL " = ' y' ] || [ " $INSTALL " = ' Y' ]; then
317- for i in ~ /* hestia* .deb; do
317+ for i in $BUILD_DIR /* hestia* .deb; do
318318 # Install all available packages
319319 dpkg -i $i
320320 done
You can’t perform that action at this time.
0 commit comments