Skip to content

Commit b9844a2

Browse files
author
Kristan Kenney
committed
Sync branch with main development branch
2 parents 3a22b17 + e338bf7 commit b9844a2

File tree

5 files changed

+29
-4
lines changed

5 files changed

+29
-4
lines changed

install/deb/php-fpm/dummy.conf

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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

install/hst-install-debian.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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

install/hst-install-ubuntu.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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

install/upgrade/0.9.8-29.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,16 @@ if [ "$PROXY_SYSTEM" = "nginx" ]; then
202202
fi
203203
fi
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
206216
echo "(*) Updating Roundcube configuration..."
207217
if [ -f /etc/roundcube/config.inc.php ]; then

src/hst_autocompile.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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
2626
echo "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
3030
if [ ! -e /usr/local/include/curl ]; then
@@ -314,7 +314,7 @@ fi
314314
#################################################################################
315315

316316
if [ "$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

0 commit comments

Comments
 (0)