From 0f8edd72879709d5cf93732e07c6eaf7681b8935 Mon Sep 17 00:00:00 2001 From: Avunu LLC Date: Tue, 17 Sep 2024 17:33:57 +0000 Subject: [PATCH] add php-fpm --- Caddyfile | 1 - php-fpm.conf | 6 ++++++ wordpress.nix | 9 +++++---- 3 files changed, 11 insertions(+), 5 deletions(-) create mode 100644 php-fpm.conf diff --git a/Caddyfile b/Caddyfile index 3fba8b7..ff41eaa 100644 --- a/Caddyfile +++ b/Caddyfile @@ -27,7 +27,6 @@ } root * /var/www/html/ - encode br zstd gzip # Include any extra directives {$CADDY_SERVER_EXTRA_DIRECTIVES} diff --git a/php-fpm.conf b/php-fpm.conf new file mode 100644 index 0000000..d6616f9 --- /dev/null +++ b/php-fpm.conf @@ -0,0 +1,6 @@ +[global] +pid = /run/php-fpm.pid +error_log = /dev/stderr +daemonize = no + +include=/etc/php-fpm.d/*.conf \ No newline at end of file diff --git a/wordpress.nix b/wordpress.nix index d31c721..f658d3d 100644 --- a/wordpress.nix +++ b/wordpress.nix @@ -15,12 +15,12 @@ let argon2Support = true; cgotoSupport = false; embedSupport = false; # Not needed for standard PHP-FPM - staticSupport = false; ipv6Support = true; - zendSignalsSupport = false; - zendMaxExecutionTimersSupport = true; + staticSupport = false; systemdSupport = false; valgrindSupport = false; + zendMaxExecutionTimersSupport = false; + zendSignalsSupport = true; ztsSupport = false; # Not needed for standard PHP-FPM }).overrideAttrs (oldAttrs: rec { @@ -198,6 +198,7 @@ pkgs.dockerTools.buildLayeredImage { # Create PHP-FPM configuration mkdir -p etc/php-fpm.d - cp ${./www.conf} etc/php-fpm.d/www.conf; + cp ${./php-fpm.conf} etc/php-fpm.conf + cp ${./www.conf} etc/php-fpm.d/www.conf ''; } \ No newline at end of file