From fc539fd10d645913c9ef576e281b82ab25d1b90d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Mon, 17 Jul 2006 12:51:56 +0000 Subject: [PATCH] - more php samples Changed files: lighttpd-mod_fastcgi.conf -> 1.3 --- lighttpd-mod_fastcgi.conf | 51 ++++++++++++++++++++++++++++----------- 1 file changed, 37 insertions(+), 14 deletions(-) diff --git a/lighttpd-mod_fastcgi.conf b/lighttpd-mod_fastcgi.conf index a255fec..94de882 100644 --- a/lighttpd-mod_fastcgi.conf +++ b/lighttpd-mod_fastcgi.conf @@ -1,3 +1,9 @@ +## FastCGI programs have the same functionality as CGI programs, +## but are considerably faster through lower interpreter startup +## time and socketed communication +## +## Documentation: http://www.lighttpd.net/documentation/fastcgi.html + server.modules += ( "mod_fastcgi" ) @@ -5,24 +11,41 @@ server.modules += ( #### fastcgi module ## read fastcgi.txt for more info #fastcgi.debug = 1 + +## Start an FastCGI server for PHP #fastcgi.server = ( -# ".php" => ( -# "localhost" => ( -# "socket" => "/var/run/php/php-fastcgi.sock", -# "bin-path" => "/usr/bin/php.fcgi", -# ) -# ) +# ".php" => (( +# "bin-path" => "/usr/bin/php.fcgi", +# "socket" => "/var/run/php/php-fastcgi.sock", +# "max-procs" => 2, +# "idle-timeout" => 20, +# "bin-environment" => ( +# "PHP_FCGI_CHILDREN" => "4", +# "PHP_FCGI_MAX_REQUESTS" => "10000" +# ), +# "bin-copy-environment" => ( +# "PATH", "SHELL", "USER" +# ), +# "broken-scriptfilename" => "enable" +# )) #) #### standalone of php-fcgi # if you want to use standalone version of php.fcgi -# install php-fcgi-init , start php-fcgi and then start lighttpd -# +# install php-fcgi-init, start php-fcgi and then start lighttpd + #fastcgi.server = ( -# ".php" => ( -# ( "host" => "127.0.0.1", -# "port" => 1026, -# ) -# ) +# ".php" => (( +# "host" => "127.0.0.1", +# "port" => 1026, +# )), +# # same but via local socket +# ".php" => (( +# "socket" => "/var/run/php/php-fcgi.sock", +# "check-local" => "disable", +# "allow-x-send-file" => "enable", +# "bin-copy-environment" => ( +# "PATH", "SHELL", "USER" +# ), +# )) #) - -- 2.44.0