install/unix/lighttpd-14.xml
7006df7c1fbc64457ac4011ae33309c3f3e5b202
...
...
@@ -14,19 +14,16 @@
14
14
</para>
15
15
16
16
<para>
17
-
Fastcgi is the preferred SAPI to connect PHP and Lighttpd. Fastcgi is
18
-
automagically enabled in php-cgi in PHP 5.3, but for older versions configure
19
-
PHP with --enable-fastcgi. To confirm that PHP has fastcgi enabled,
20
-
<literal>php -v</literal> should contain <literal>PHP 5.2.5 (cgi-fcgi)</literal>
21
-
Before PHP 5.2.3, fastcgi was enabled on the php binary (there was no php-cgi).
17
+
FastCGI is the preferred SAPI to connect PHP and Lighttpd. FastCGI is
18
+
automagically enabled in php-cgi.
22
19
</para>
23
20
24
21
<sect2 xml:id="install.unix.lighttpd-14.lighttpd-spawn">
25
22
<title>Letting Lighttpd spawn php processes</title>
26
23

27
24
<para>
28
-
To configure Lighttpd to connect to php and spawn fastcgi processes, edit
29
-
lighttpd.conf. Sockets are preferred to connect to fastcgi processes on
25
+
To configure Lighttpd to connect to PHP and spawn FastCGI processes, edit
26
+
<filename>lighttpd.conf</filename>. Sockets are preferred to connect to FastCGI processes on
30
27
the local system.
31
28
</para>
32
29

...
...
@@ -55,15 +52,15 @@ fastcgi.server = ( ".php" =>
55
52
</example>
56
53

57
54
<para>
58
-
The bin-path directive allows lighttpd to spawn fastcgi processes dynamically.
59
-
PHP will spawn children according to the PHP_FCGI_CHILDREN environment
60
-
variable. The "bin-environment" directive sets the environment for the
55
+
The <filename>bin-path</filename> directive allows lighttpd to spawn FastCGI processes dynamically.
56
+
PHP will spawn children according to the <envar>PHP_FCGI_CHILDREN</envar> environment
57
+
variable. The <literal>bin-environment</literal> directive sets the environment for the
61
58
spawned processes. PHP will kill a child process after the number of
62
-
requests specified by PHP_FCGI_MAX_REQUESTS is reached. The directives
63
-
"min-procs" and "max-procs" should generally be avoided with PHP. PHP
59
+
requests specified by <envar>PHP_FCGI_MAX_REQUESTS</envar> is reached. The directives
60
+
<literal>min-procs</literal> and <literal>max-procs</literal> should generally be avoided with PHP. PHP
64
61
manages its own children and opcode caches like APC will only share among
65
-
children managed by PHP. If "min-procs" is set to something greater than 1,
66
-
the total number of php responders will be multiplied PHP_FCGI_CHILDREN
62
+
children managed by PHP. If <literal>min-procs</literal> is set to something greater than <literal>1</literal>,
63
+
the total number of php responders will be multiplied <envar>PHP_FCGI_CHILDREN</envar>
67
64
(2 min-procs * 16 children gives 32 responders).
68
65
</para>
69
66
</sect2>
...
...
@@ -72,8 +69,8 @@ fastcgi.server = ( ".php" =>
72
69
<title>Spawning with spawn-fcgi</title>
73
70

74
71
<para>
75
-
Lighttpd provides a program called spawn-fcgi to ease the process of
76
-
spawning fastcgi processes easier.
72
+
Lighttpd provides a program called spawn-fcgi to make the process of
73
+
spawning FastCGI processes easier.
77
74
</para>
78
75
</sect2>
79
76

...
...
@@ -82,9 +79,9 @@ fastcgi.server = ( ".php" =>
82
79

83
80
<para>
84
81
It is possible to spawn processes without spawn-fcgi, though a bit of
85
-
heavy-lifting is required. Setting the PHP_FCGI_CHILDREN environment var
82
+
heavy-lifting is required. Setting the <envar>PHP_FCGI_CHILDREN</envar> environment var
86
83
controls how many children PHP will spawn to handle incoming requests.
87
-
Setting PHP_FCGI_MAX_REQUESTS will determine how long (in requests) each
84
+
Setting <envar>PHP_FCGI_MAX_REQUESTS</envar> will determine how long (in requests) each
88
85
child will live. Here's a simple bash script to help spawn php responders.
89
86
</para>
90
87
...
...
@@ -123,7 +120,7 @@ echo $! > "$PHP_PID"
123
120
<title>Connecting to remote FCGI instances</title>
124
121

125
122
<para>
126
-
Fastcgi instances can be spawned on multiple remote machines in order to
123
+
FastCGI instances can be spawned on multiple remote machines in order to
127
124
scale applications.
128
125
</para>
129
126
...
...
@@ -140,7 +137,6 @@ fastcgi.server = ( ".php" =>
140
137
</example>
141
138
</sect2>
142
139
</sect1>
143
-

144
140
<!-- Keep this comment at the end of the file
145
141
Local variables:
146
142
mode: sgml
147
143