]> git.pld-linux.org Git - packages/lighttpd.git/blob - lighttpd-mod_fastcgi.conf
- more php samples
[packages/lighttpd.git] / lighttpd-mod_fastcgi.conf
1 ## FastCGI programs have the same functionality as CGI programs,
2 ## but are considerably faster through lower interpreter startup
3 ## time and socketed communication
4 ##
5 ## Documentation: http://www.lighttpd.net/documentation/fastcgi.html
6
7 server.modules += (
8         "mod_fastcgi"
9 )
10
11 #### fastcgi module
12 ## read fastcgi.txt for more info
13 #fastcgi.debug = 1
14
15 ## Start an FastCGI server for PHP
16 #fastcgi.server = (
17 #       ".php" => ((
18 #               "bin-path" => "/usr/bin/php.fcgi",
19 #               "socket" => "/var/run/php/php-fastcgi.sock",
20 #               "max-procs" => 2,
21 #               "idle-timeout" => 20,
22 #               "bin-environment" => (
23 #                       "PHP_FCGI_CHILDREN" => "4",
24 #                       "PHP_FCGI_MAX_REQUESTS" => "10000"
25 #               ),
26 #               "bin-copy-environment" => (
27 #                       "PATH", "SHELL", "USER"
28 #               ),
29 #               "broken-scriptfilename" => "enable"
30 #       ))
31 #)
32
33 #### standalone of php-fcgi
34 # if you want to use standalone version of php.fcgi
35 # install php-fcgi-init, start php-fcgi and then start lighttpd
36
37 #fastcgi.server = (
38 #       ".php" => ((
39 #               "host" => "127.0.0.1",
40 #               "port" => 1026,
41 #       )),
42 #       # same but via local socket
43 #       ".php" => ((
44 #               "socket" => "/var/run/php/php-fcgi.sock",
45 #               "check-local" => "disable",
46 #               "allow-x-send-file" => "enable",
47 #               "bin-copy-environment" => (
48 #                       "PATH", "SHELL", "USER"
49 #               ),
50 #       ))
51 #)
This page took 0.071869 seconds and 4 git commands to generate.