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;
network.enable = false;
};
services.phpfpm.pools.anythingforafriend = {
user = "www-data";
settings = {
"listen.owner" = config.services.nginx.user;
"pm" = "dynamic";
"pm.max_children" = 32;
"pm.max_requests" = 500;
"pm.start_servers" = 2;
"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;
services.phpfpm = {
phpOptions = ''
display_errors = on;
'';
pools.anythingforafriend = {
user = "www-data";
settings = {
"listen.owner" = config.services.nginx.user;
"pm" = "dynamic";
"pm.max_children" = 32;
"pm.max_requests" = 500;
"pm.start_servers" = 2;
"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 = {
enable = true;