]> git.pld-linux.org Git - packages/lighttpd.git/blame - lighttpd-php-spawned.conf
no dist-xz for ac
[packages/lighttpd.git] / lighttpd-php-spawned.conf
CommitLineData
a56cbb6a 1# FastCGI server for PHP
66470434
ER
2
3# Sometimes you need to run old html file(s) as php pages, especially if you
4# are migrating from Apache web server. To treat html pages as php you need to
5# map multiple extensions to the same fastcgi server using fastcgi.map-extensions
6# directive.
7#fastcgi.map-extensions = (
8# ".html" => ".php",
9# ".php3" => ".php",
10#)
11
a56cbb6a
ER
12fastcgi.server += (
13 ".php" => ((
14 "bin-path" => "/usr/bin/php.fcgi",
15 "socket" => "/var/run/php/php-fcgi-" + var.pid + ".sock",
16 "max-procs" => 2,
17 "idle-timeout" => 20,
602f2028
ER
18 # SIGTERM is graceful shutdown in PLD Linux, use `kill -l' to figure out other signal numbers.
19# "kill-signal" => 15,
a56cbb6a
ER
20 "bin-environment" => (
21 "PHP_FCGI_CHILDREN" => "4",
22 "PHP_FCGI_MAX_REQUESTS" => "10000"
23 ),
24 "bin-copy-environment" => (
be3d030f 25 "PATH", "SHELL"
a56cbb6a 26 ),
7e63f560
ER
27 "broken-scriptfilename" => "enable",
28 "check-local" => "enable",
20dda7b2 29 "disable-time" => 1,
e21e69b0 30# "allow-x-send-file" => "enable",
a56cbb6a
ER
31 ))
32)
ed8900c9
ER
33
34static-file.exclude-extensions += (".php")
This page took 0.127555 seconds and 4 git commands to generate.