diff options
Diffstat (limited to 'bin')
-rw-r--r-- | bin/ncp/CONFIG/nc-limits.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ncp/CONFIG/nc-limits.sh b/bin/ncp/CONFIG/nc-limits.sh index 472c4168..1597bb79 100644 --- a/bin/ncp/CONFIG/nc-limits.sh +++ b/bin/ncp/CONFIG/nc-limits.sh @@ -32,8 +32,8 @@ configure() # MAX PHP THREADS local CONF=/etc/php/${PHPVER}/fpm/pool.d/www.conf local CURRENT_THREADS=$( grep "^pm.max_children" "$CONF" | awk '{ print $3 }' ) - [[ $PHPTHREADS -eq 0 ]] && PHPTHREADS=$( nproc ) - [[ $PHPTHREADS -lt 3 ]] && PHPTHREADS=3 + [[ $PHPTHREADS -eq 0 ]] && PHPTHREADS=$(nproc) + [[ $PHPTHREADS -lt 6 ]] && PHPTHREADS=6 echo "Using $PHPTHREADS PHP threads" sed -i "s|^pm =.*|pm = static|" "$CONF" sed -i "s|^pm.max_children =.*|pm.max_children = $PHPTHREADS|" "$CONF" |