PHP: Difference between revisions

imported>Shyim
Created page with "__TOC__ == Install == <syntaxhighlight lang="nix> environment.systemPackages = with pkgs; [ php ]; </syntaxhighlight> See <code>nix search php</code> for additional versi..."
 
imported>Jasoncarr0
Add some explanation to make more user friendly
Line 7: Line 7:
</syntaxhighlight>
</syntaxhighlight>


See <code>nix search php</code> for additional versions like <code>php74</code>, etc.
See <code>nix search php</code> (<code>nix search nixpkgs php</code> with [flakes](https://nixos.wiki/wiki/Flakes) enabled) for additional versions like <code>php74</code>, etc.


== Setting custom php.ini configurations ==
== Setting custom php.ini configurations ==
The `buildEnv` attribute on php can add extra configuration options. For instance, to set a memory_limit in the NixOS configuration.nix:


<syntaxhighlight lang="nix>
<syntaxhighlight lang="nix>