nixpkgs icon indicating copy to clipboard operation
nixpkgs copied to clipboard

services.phpfpm.phpOptions is ignored

Open ivanovsaleksejs opened this issue 8 years ago • 2 comments

Issue description

Parameter services.phpfpm.phpOptions is ignored. According to documentation it supposed to append configuration options to php.ini file.

Steps to reproduce

Add services.phpfpm.phpOptions = '' cgi.fix_pathinfo = 0; '';

to .nix file and build. Look for generated php.ini file - option is not set. Also this command $ php-fpm -i | grep pathinfo outputs

cgi.fix_pathinfo => 1 => 1

Technical details

  • system: "x86_64-linux"
  • host os: Linux 4.9.75, NixOS, 17.09.2630.81373e421e8 (Hummingbird)
  • multi-user?: yes
  • sandbox: no
  • version: nix-env (Nix) 1.11.16
  • channels(aleksejs): ""
  • nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs

ivanovsaleksejs avatar Jan 11 '18 13:01 ivanovsaleksejs

Can you provide an example that demonstrates the issue? According to the module, the modified php.ini file is passed to php-fpm through ExecStart in the generated systemd phpfpm-${pool} unit:

ExecStart = "${cfg.phpPackage}/bin/php-fpm -y ${cfgFile} -c ${phpIni}";

srhb avatar Jan 16 '18 19:01 srhb

After updating channel and all packages this problem disappeared.

ivanovsaleksejs avatar Jan 17 '18 13:01 ivanovsaleksejs