Wo wird "PHP_FCGI_MAX_REQUESTS" eingestellt (lighttpd)

Wo wird "PHP_FCGI_MAX_REQUESTS" eingestellt (lighttpd)

Ich möchte die maximalen Anforderungen einrichten, um zu verhindern, dass mein System-RAM im Falle eines Speicherverlusts voll wird.

Aber ich weiß nicht, wo es ist.

Antwort1

/etc/lighttpd/mod_fastcgi.conf:

  fastcgi.server = ( ".php" =>
      (( "socket" => "/tmp/php-fastcgi.socket",
          "bin-path" => "/usr/bin/php-cgi",
          "max-procs" => 10,
          "bin-environment" => (
              "PHP_FCGI_CHILDREN" => "16",
              "PHP_FCGI_MAX_REQUESTS" => "1000" 
          ),
          "broken-scriptfilename" => "enable" 
      ))
  )

Bei mir funktioniert es einwandfrei.

Lighttpd - Dokumente:PerformanceFastCGI - Lighty Labs

verwandte Informationen