]> git.pld-linux.org Git - packages/lighttpd.git/blame_incremental - lighttpd-php-spawned.conf
do not override _libdir macro
[packages/lighttpd.git] / lighttpd-php-spawned.conf
... / ...
CommitLineData
1# FastCGI server for PHP
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
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,
18 # SIGTERM is graceful shutdown in PLD Linux, use `kill -l' to figure out other signal numbers.
19# "kill-signal" => 15,
20 "bin-environment" => (
21 "PHP_FCGI_CHILDREN" => "4",
22 "PHP_FCGI_MAX_REQUESTS" => "10000"
23 ),
24 "bin-copy-environment" => (
25 "PATH", "SHELL"
26 ),
27 "broken-scriptfilename" => "enable",
28 "check-local" => "enable",
29 "disable-time" => 1,
30# "allow-x-send-file" => "enable",
31 ))
32)
33
34static-file.exclude-extensions += (".php")
This page took 0.028842 seconds and 4 git commands to generate.