SOURCES: php-fcgi.sysconfig - updated comments to be accurate - or...

glen glen at pld-linux.org
Thu Jul 20 01:06:50 CEST 2006


Author: glen                         Date: Wed Jul 19 23:06:50 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- updated comments to be accurate
- organize PHP settings and spawn-fcgi settings separately

---- Files affected:
SOURCES:
   php-fcgi.sysconfig (1.5 -> 1.6) 

---- Diffs:

================================================================
Index: SOURCES/php-fcgi.sysconfig
diff -u SOURCES/php-fcgi.sysconfig:1.5 SOURCES/php-fcgi.sysconfig:1.6
--- SOURCES/php-fcgi.sysconfig:1.5	Tue Mar 14 17:42:42 2006
+++ SOURCES/php-fcgi.sysconfig	Thu Jul 20 01:06:45 2006
@@ -6,16 +6,6 @@
 # Bind to unix-domain socket, running as http:http
 SPAWNARGS="-s /var/run/php/fcgi.sock -u http -g http"
 
-# Number of PHP childs to spawn.
-PHP_FCGI_CHILDREN=16
-
-# Number of requests php-process will serve until it will be restarted by
-# php-fcgi.
-PHP_FCGI_MAX_REQUESTS=100000
-
-# Comma separated IP adresses where PHP should access server connections from
-FCGI_WEB_SERVER_ADDRS="127.0.0.1"
-
 # for PHP 5.x
 PHP_FCGI_BINARY=/usr/bin/php.fcgi
 
@@ -24,3 +14,25 @@
 
 # umask 007 is useful when your web server doesn't run under same uid as php-fcgi, ie lighttpd.
 SERVICE_UMASK=007
+
+# PHP settings.
+#
+# For more information about PHP FCGI setup read:
+# /usr/share/doc/php-fcgi-*/README.FastCGI.gz
+
+# Number of PHP childs to spawn.
+#
+# This controls how many child processes the PHP process spawns.
+# default value: 8
+PHP_FCGI_CHILDREN=8
+
+# This controls how many requests each child process will handle before
+# exitting. When one process exits, another will be created. This tuning is
+# necessary because several PHP functions are known to have memory leaks. If the
+# PHP processes were left around forever, they would be become very inefficient.
+# default value: 500
+PHP_FCGI_MAX_REQUESTS=100000
+
+# FCGI_WEB_SERVER_ADDRS controls who can connect to the FastCGI.
+# Set it to a comma separated list of IP addresses to be allowed to connect from.
+FCGI_WEB_SERVER_ADDRS="127.0.0.1"
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/php-fcgi.sysconfig?r1=1.5&r2=1.6&f=u



More information about the pld-cvs-commit mailing list