3
0
Fork 0
forked from mirrors/nixpkgs

nixos/httpd: Use extensions from php package

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.
This commit is contained in:
Jan Tojnar 2020-04-16 22:52:52 +02:00
parent 16477d764f
commit c214e63f2e
No known key found for this signature in database
GPG key ID: 7FAB2A15F7A607A4

View file

@ -338,6 +338,7 @@ let
}
''
cat ${php}/etc/php.ini > $out
cat ${php}/lib/custom-php.ini > $out
echo "$options" >> $out
'';