X-Git-Url: https://git.tld-linux.org/?a=blobdiff_plain;f=php-spawned.conf;fp=php-spawned.conf;h=b9869aea8e270eaaa18f9e164bd4d00abbfe4b90;hb=8239b3691d1ae536833b6d53a2efd289956ccbcd;hp=0000000000000000000000000000000000000000;hpb=2bc378a1b82f8e82ab66bd2a656282134a6d05e0;p=packages%2Flighttpd.git diff --git a/php-spawned.conf b/php-spawned.conf new file mode 100644 index 0000000..b9869ae --- /dev/null +++ b/php-spawned.conf @@ -0,0 +1,34 @@ +# FastCGI server for PHP + +# Sometimes you need to run old html file(s) as php pages, especially if you +# are migrating from Apache web server. To treat html pages as php you need to +# map multiple extensions to the same fastcgi server using fastcgi.map-extensions +# directive. +#fastcgi.map-extensions = ( +# ".html" => ".php", +# ".php3" => ".php", +#) + +fastcgi.server += ( + ".php" => (( + "bin-path" => "/usr/bin/php.fcgi", + "socket" => "/var/run/php/php-fcgi-" + var.pid + ".sock", + "max-procs" => 2, + "idle-timeout" => 20, + # SIGTERM is graceful shutdown in PLD Linux, use `kill -l' to figure out other signal numbers. +# "kill-signal" => 15, + "bin-environment" => ( + "PHP_FCGI_CHILDREN" => "4", + "PHP_FCGI_MAX_REQUESTS" => "10000" + ), + "bin-copy-environment" => ( + "PATH", "SHELL" + ), + "broken-scriptfilename" => "enable", + "check-local" => "enable", + "disable-time" => 1, +# "allow-x-send-file" => "enable", + )) +) + +static-file.exclude-extensions += (".php")