Re: [Nix-dev] Use PHP FPM with 2 PHP versions simultaneously

2017-04-07 Thread 4levels
Hi Nix Devs, hi Marc, thank you for your insightfull pointers, I will definitely try this as soon as possible (I'm a bit over occupied atm). I noticed that in NixOs 17.03 php fpm doesn't exist as a package anymore. When deploying this, there is also no phpfpm service anymore. Do you happen to kn

Re: [Nix-dev] Use PHP FPM with 2 PHP versions simultaneously

2017-04-06 Thread Marc Weber
https://github.com/MarcWeber/nixpkgs/commit/5d1f3e9d4cfe5da9950b94b05203cfa128c2b288 => see comments nixos/modules/services/misc/phpfpm.nix This code even figures out how many fpm daemons to start. Thus if you change ini (eg enabling xdebug) you'll get an additional daemon because you cannot use

Re: [Nix-dev] Use PHP FPM with 2 PHP versions simultaneously

2017-04-06 Thread Danylo Hlynskyi
Apart from container solution, there are no easy ways to do this. 1. You can patch nixpkgs and add option `phpPackage` per-pool, that overrides global `phpPackage` 2. You can use `lib.mkForce` like here: systemd.services.phpfpm-your-pool-name.serviceConfig = lib.mkForce { Slice = "phpfpm.slice";

Re: [Nix-dev] Use PHP FPM with 2 PHP versions simultaneously

2017-04-06 Thread Peter Hoeg
Hi Erik, But I don't see how I can configure a second phpfpm package with a different version. If I was you, I would simply stick them in their own container. Then you can assign different PHP versions to each container. -- Regards, ___ nix-dev

[Nix-dev] Use PHP FPM with 2 PHP versions simultaneously

2017-04-06 Thread 4levels
Hi Nix Devs, I'm convinced that I can manage to run 2 different PHP versions next to eachother with NixOs. I managed to install both php56 and php71 packages (that's the easy part), but I lack the Nix skills to configure phpfpm, one time with php56 and one with the php71 package. PHP FPM has a N