diff --git a/install/unix/lighttpd-14.xml b/install/unix/lighttpd-14.xml index c6bf0336f5..b92647c1d7 100644 --- a/install/unix/lighttpd-14.xml +++ b/install/unix/lighttpd-14.xml @@ -14,19 +14,16 @@ - Fastcgi is the preferred SAPI to connect PHP and Lighttpd. Fastcgi is - automagically enabled in php-cgi in PHP 5.3, but for older versions configure - PHP with --enable-fastcgi. To confirm that PHP has fastcgi enabled, - php -v should contain PHP 5.2.5 (cgi-fcgi) - Before PHP 5.2.3, fastcgi was enabled on the php binary (there was no php-cgi). + FastCGI is the preferred SAPI to connect PHP and Lighttpd. FastCGI is + automagically enabled in php-cgi. Letting Lighttpd spawn php processes - To configure Lighttpd to connect to php and spawn fastcgi processes, edit - lighttpd.conf. Sockets are preferred to connect to fastcgi processes on + To configure Lighttpd to connect to PHP and spawn FastCGI processes, edit + lighttpd.conf. Sockets are preferred to connect to FastCGI processes on the local system. @@ -55,15 +52,15 @@ fastcgi.server = ( ".php" => - The bin-path directive allows lighttpd to spawn fastcgi processes dynamically. - PHP will spawn children according to the PHP_FCGI_CHILDREN environment - variable. The "bin-environment" directive sets the environment for the + The bin-path directive allows lighttpd to spawn FastCGI processes dynamically. + PHP will spawn children according to the PHP_FCGI_CHILDREN environment + variable. The bin-environment directive sets the environment for the spawned processes. PHP will kill a child process after the number of - requests specified by PHP_FCGI_MAX_REQUESTS is reached. The directives - "min-procs" and "max-procs" should generally be avoided with PHP. PHP + requests specified by PHP_FCGI_MAX_REQUESTS is reached. The directives + min-procs and max-procs should generally be avoided with PHP. PHP manages its own children and opcode caches like APC will only share among - children managed by PHP. If "min-procs" is set to something greater than 1, - the total number of php responders will be multiplied PHP_FCGI_CHILDREN + children managed by PHP. If min-procs is set to something greater than 1, + the total number of php responders will be multiplied PHP_FCGI_CHILDREN (2 min-procs * 16 children gives 32 responders). @@ -73,7 +70,7 @@ fastcgi.server = ( ".php" => Lighttpd provides a program called spawn-fcgi to make the process of - spawning fastcgi processes easier. + spawning FastCGI processes easier. @@ -82,9 +79,9 @@ fastcgi.server = ( ".php" => It is possible to spawn processes without spawn-fcgi, though a bit of - heavy-lifting is required. Setting the PHP_FCGI_CHILDREN environment var + heavy-lifting is required. Setting the PHP_FCGI_CHILDREN environment var controls how many children PHP will spawn to handle incoming requests. - Setting PHP_FCGI_MAX_REQUESTS will determine how long (in requests) each + Setting PHP_FCGI_MAX_REQUESTS will determine how long (in requests) each child will live. Here's a simple bash script to help spawn php responders. @@ -123,7 +120,7 @@ echo $! > "$PHP_PID" Connecting to remote FCGI instances - Fastcgi instances can be spawned on multiple remote machines in order to + FastCGI instances can be spawned on multiple remote machines in order to scale applications. @@ -140,7 +137,6 @@ fastcgi.server = ( ".php" => -