Show PHP errors so we can figure out what's wrong

This commit is contained in:
Eli Ribble 2025-04-11 11:16:52 -07:00
parent 422aa2abb5
commit 5b814fb064
1 changed files with 19 additions and 14 deletions

View File

@ -38,21 +38,26 @@
enable = true; enable = true;
network.enable = false; network.enable = false;
}; };
services.phpfpm.pools.anythingforafriend = { services.phpfpm = {
user = "www-data"; phpOptions = ''
settings = { display_errors = on;
"listen.owner" = config.services.nginx.user; '';
"pm" = "dynamic"; pools.anythingforafriend = {
"pm.max_children" = 32; user = "www-data";
"pm.max_requests" = 500; settings = {
"pm.start_servers" = 2; "listen.owner" = config.services.nginx.user;
"pm.min_spare_servers" = 2; "pm" = "dynamic";
"pm.max_spare_servers" = 5; "pm.max_children" = 32;
"php_admin_value[error_log]" = "stderr"; "pm.max_requests" = 500;
"php_admin_flag[log_errors]" = true; "pm.start_servers" = 2;
"catch_workers_output" = true; "pm.min_spare_servers" = 2;
"pm.max_spare_servers" = 5;
"php_admin_value[error_log]" = "stderr";
"php_admin_flag[log_errors]" = true;
"catch_workers_output" = true;
};
phpEnv."PATH" = lib.makeBinPath [ pkgs.php ];
}; };
phpEnv."PATH" = lib.makeBinPath [ pkgs.php ];
}; };
services.nginx = { services.nginx = {
enable = true; enable = true;