-
-
Notifications
You must be signed in to change notification settings - Fork 15.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nixos/httpd: fix broken PHP extensions #85402
Conversation
@jtojnar why is this override not required? What happens when I have this configuration:
Since |
Oops, just meant to remove the |
Oh yes, that's not required. I was going to fix that after #85026 so thanks! |
After the recent rewrite, enabled extensions are passed to php programs through an extra ini file by a wrapper. Since httpd uses shared module instead of program, the wrapper did not affect it and no extensions other than built-ins were loaded. To fix this, we are passing the extension config another way – by adding it to the service's generated config. For now we are hardcoding the path to the ini file. It would be nice to add the path to the passthru and use that once the PHP expression settles down.
And add assertion messages
This was introduced in NixOS@c801cd1 but it no longer seems necessary.
@GrahamcOfBorg test php |
@GrahamcOfBorg build nixosTests.php |
Motivation for this change
Fix PHP extensions not being loaded by the httpd’s PHP module.
Fixes: #85401
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)