diff options
author | Ermal <eri@pfsense.org> | 2013-12-15 21:26:27 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2013-12-15 21:26:27 +0000 |
commit | 6d7ee1ab8f614002b999ff0cd9b931d592695d15 (patch) | |
tree | 71a41580a73c6e1016ebf83a3adb20b201d38cc1 | |
parent | 08b64f791426c4a9f980fd7b2f6d5359eff41c69 (diff) | |
download | pfsense-6d7ee1ab8f614002b999ff0cd9b931d592695d15.zip pfsense-6d7ee1ab8f614002b999ff0cd9b931d592695d15.tar.gz |
Use same value consistently for configuration and tolerate a bit more
-rwxr-xr-x | etc/rc.php_ini_setup | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/etc/rc.php_ini_setup b/etc/rc.php_ini_setup index a6557bb..4fc0739 100755 --- a/etc/rc.php_ini_setup +++ b/etc/rc.php_ini_setup @@ -296,9 +296,9 @@ suhosin.memory_limit = 512435456 EOF -PHPFPMMAX=2 +PHPFPMMAX=3 if [ "$LOWMEM" = "TRUE" ]; then - PHPFPMMAX=1 + PHPFPMMAX=2 elif [ ${REALMEM} -gt 1000 ]; then PHPFPMMAX=4 fi @@ -334,7 +334,7 @@ if [ "$LOWMEM" = "TRUE" ]; then pm = ondemand pm.process_idle_timeout = 5 -pm.max_children = 1 +pm.max_children = $PHPFPMMAX pm.max_requests = 500 EOF @@ -344,7 +344,7 @@ elif [ $REALMEM -gt 1000 ]; then pm = dynamic pm.process_idle_timeout = 5 -pm.max_children = 3 +pm.max_children = $PHPFPMMAX pm.start_servers = 1 pm.max_requests = 500 pm.min_spare_servers=1 @@ -356,7 +356,7 @@ else /bin/cat >> /usr/local/lib/php-fpm.conf <<EOF pm = static -pm.max_children = 2 +pm.max_children = $PHPFPMMAX pm.max_requests = 500 EOF |