diff --git a/bin/vhost-add b/bin/vhost-add index 5b636dc..516187e 100755 --- a/bin/vhost-add +++ b/bin/vhost-add @@ -88,6 +88,7 @@ export DOCUMENT_ROOT export SYSTEM_USER_USERNAME export SYSTEM_USER_GROUP export PHP_ENABLED +export MOD_FCGI export PHP_VERSION export WEB_HTTP export WEB_HTTPS diff --git a/etc/config.dist b/etc/config.dist index ab878ba..b31d3be 100644 --- a/etc/config.dist +++ b/etc/config.dist @@ -33,6 +33,8 @@ APACHE_VHOST_SITES_ENABLED_PATH=/etc/apache2/sites-enabled # The path of the php binary PHP_BIN=/usr/bin/php7.4 +MOD_FCGI=mod_fastcgi.c # mod_fcgid.c + # Available PHP versions # It's possible to add or remove a version # using the same logic diff --git a/src/templates/vhost-http.twig b/src/templates/vhost-http.twig index 96ca76c..f536561 100644 --- a/src/templates/vhost-http.twig +++ b/src/templates/vhost-http.twig @@ -22,7 +22,7 @@ {% if PHP_ENABLED == "yes" %} - + ProxyErrorOverride on SetHandler "proxy:fcgi://127.0.0.1:{{ PHP_FPM_PORT }}/"