NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.19k stars 14.19k forks source link

dolibarr: php version too high #305977

Open smyds opened 6 months ago

smyds commented 6 months ago

Describe the bug

Trying to activate the dolibarr service, in the installation phase, dolibarr complains that the PHP version (8.2.13) is too high, requests version 8.1.0 or lower...

I guess we could add a phpPackage option to change the version of php used ?

Steps To Reproduce

on nixos 23.11 for a minimal installation add

services.dolibarr = {
  enable = true;
  nginx = {
    rejectSSL = true;
    forceSSL = false;
    enableACME = false;
  };
};

to your config, go to http://localhost/install/check.php and see the error message about the php version.

Notify maintainers

@RaitoBezarius

Metadata

[user@system:~]# nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.1.64, NixOS, 23.11 (Tapir), 23.11.1209.933d7dc15509`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.1`
 - channels(smyds): `""`
 - channels(root): `"nixos-23.11"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
RaitoBezarius commented 6 months ago

I'm not maintainer anymore of Dolibarr (this was not updated on NixOS stable yet).

aanderse commented 6 months ago

@smyds are you able to make a PR with the fix?