Browse Source

add configurable fcgi module

master
Simon Vieille 3 months ago
parent
commit
16a586c0af
Signed by: deblan GPG Key ID: 03383D15A1D31745
3 changed files with 4 additions and 1 deletions
  1. +1
    -0
      bin/vhost-add
  2. +2
    -0
      etc/config.dist
  3. +1
    -1
      src/templates/vhost-http.twig

+ 1
- 0
bin/vhost-add View File

@ -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


+ 2
- 0
etc/config.dist View File

@ -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


+ 1
- 1
src/templates/vhost-http.twig View File

@ -22,7 +22,7 @@
</Directory>
{% if PHP_ENABLED == "yes" %}
<IfModule mod_fastcgi.c>
<IfModule {{ MOD_FCGI }}>
<FilesMatch "\.php$">
ProxyErrorOverride on
SetHandler "proxy:fcgi://127.0.0.1:{{ PHP_FPM_PORT }}/"


Loading…
Cancel
Save