diff --git a/system/options.nix b/system/options.nix index 3130f6b5d5bb..8815a1a22090 100644 --- a/system/options.nix +++ b/system/options.nix @@ -783,6 +783,12 @@ directories and directory aliases defined by default. "; } + + { + name = ["services" "httpd" "mod_php"]; + default = false; + description = "Whether to enable php module."; + } { name = ["services" "httpd" "subservices" "subversion" "enable"]; diff --git a/upstart-jobs/httpd.nix b/upstart-jobs/httpd.nix index eec1583293a3..080f34403734 100644 --- a/upstart-jobs/httpd.nix +++ b/upstart-jobs/httpd.nix @@ -29,6 +29,7 @@ let webServer = import ../services/apache-httpd { inherit (pkgs) apacheHttpd coreutils; stdenv = pkgs.stdenvNewSetupScript; + php = if getCfg "mod_php" then pkgs.php else null; inherit hostName httpPort httpsPort user group adminAddr logDir stateDir