php: switch to nts by default
This commit is contained in:
@@ -18,7 +18,7 @@ let
|
||||
sed -i $out/bin/apachectl -e 's|$HTTPD -t|$HTTPD -t -f /etc/httpd/httpd.conf|'
|
||||
'';
|
||||
|
||||
php = cfg.phpPackage.override { apacheHttpd = pkg; };
|
||||
php = cfg.phpPackage.override { apxs2Support = true; apacheHttpd = pkg; };
|
||||
|
||||
phpModuleName = let
|
||||
majorVersion = lib.versions.major (lib.getVersion php);
|
||||
@@ -660,6 +660,13 @@ in
|
||||
`services.httpd.virtualHosts.<name>.useACMEHost` are mutually exclusive.
|
||||
'';
|
||||
}
|
||||
{
|
||||
assertion = cfg.enablePHP -> php.ztsSupport;
|
||||
message = ''
|
||||
The php package provided by `services.httpd.phpPackage` is not built with zts support. Please
|
||||
ensure the php has zts support by settings `services.httpd.phpPackage = php.override { ztsSupport = true; }`
|
||||
'';
|
||||
}
|
||||
] ++ map (name: mkCertOwnershipAssertion {
|
||||
inherit (cfg) group user;
|
||||
cert = config.security.acme.certs.${name};
|
||||
|
||||
Reference in New Issue
Block a user