From c85e4227cf75ae99b0851b487c5baf95967bb67a Mon Sep 17 00:00:00 2001 From: RD WebDesign Date: Tue, 3 Jan 2023 17:07:34 -0300 Subject: [PATCH 1/2] Remove duplicated `fastcgi.server` config Signed-off-by: RD WebDesign --- advanced/pihole-admin.conf | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/advanced/pihole-admin.conf b/advanced/pihole-admin.conf index 8e3508da..1cd3da91 100644 --- a/advanced/pihole-admin.conf +++ b/advanced/pihole-admin.conf @@ -15,6 +15,7 @@ $HTTP["url"] =~ "^/admin/" { server.document-root = "/var/www/html" server.stream-response-body = 1 + fastcgi.server = ( ".php" => ( "localhost" => ( @@ -22,6 +23,14 @@ $HTTP["url"] =~ "^/admin/" { "bin-path" => "/usr/bin/php-cgi", "min-procs" => 0, "max-procs" => 1, + "bin-environment" => ( + "PHP_FCGI_CHILDREN" => "4", + "PHP_FCGI_MAX_REQUESTS" => "10000", + ), + "bin-copy-environment" => ( + "PATH", "SHELL", "USER" + ), + "broken-scriptfilename" => "enable", ) ) ) From be8f25f8b8ad3ea82f79d090d1734321405820d4 Mon Sep 17 00:00:00 2001 From: RD WebDesign Date: Tue, 10 Jan 2023 15:57:20 -0300 Subject: [PATCH 2/2] Adding errorlog and accesslog options Signed-off-by: RD WebDesign --- advanced/pihole-admin.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/advanced/pihole-admin.conf b/advanced/pihole-admin.conf index 1cd3da91..2809d339 100644 --- a/advanced/pihole-admin.conf +++ b/advanced/pihole-admin.conf @@ -12,9 +12,13 @@ # ANY CHANGES MADE TO THIS FILE AFTER INSTALL WILL BE LOST ON THE NEXT UPDATE # ############################################################################### +server.errorlog := "/var/log/lighttpd/error-pihole.log" + $HTTP["url"] =~ "^/admin/" { server.document-root = "/var/www/html" server.stream-response-body = 1 + accesslog.filename = "/var/log/lighttpd/access-pihole.log" + accesslog.format = "%{%s}t|%h|%V|%r|%s|%b" fastcgi.server = ( ".php" => (