From c92550d8f97f2ecf410194d8b42b18a51651854c Mon Sep 17 00:00:00 2001 From: Phil Dibowitz Date: Mon, 11 Nov 2024 12:48:10 -0800 Subject: [PATCH] fb_apache: add support for fcgi (fedora/centos) This is required to make PHP work on modern RH-y distros. Signed-off-by: Phil Dibowitz --- cookbooks/fb_apache/attributes/default.rb | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/cookbooks/fb_apache/attributes/default.rb b/cookbooks/fb_apache/attributes/default.rb index 14cb1ce24..53e491c90 100644 --- a/cookbooks/fb_apache/attributes/default.rb +++ b/cookbooks/fb_apache/attributes/default.rb @@ -101,13 +101,13 @@ 'auth_digest' => 'mod_auth_digest.so', 'authn_alias' => 'mod_authn_alias.so', 'authn_anon' => 'mod_authn_anon.so', + 'authn_core' => 'mod_authn_core.so', 'authn_dbd' => 'mod_authn_dbd.so', 'authn_dbm' => 'mod_authn_dbm.so', - 'authn_core' => 'mod_authn_core.so', 'authn_file' => 'mod_authn_file.so', 'authnz_ldap' => 'mod_authnz_ldap.so', - 'authz_dbm' => 'mod_authz_dbm.so', 'authz_core' => 'mod_authz_core.so', + 'authz_dbm' => 'mod_authz_dbm.so', 'authz_groupfile' => 'mod_authz_groupfile.so', 'authz_host' => 'mod_authz_host.so', 'authz_owner' => 'mod_authz_owner.so', @@ -115,10 +115,10 @@ 'autoindex' => 'mod_autoindex.so', 'cache' => 'mod_cache.so', 'cern_meta' => 'mod_cern_meta.so', - 'cgid' => 'mod_cgid.so', 'cgi' => 'mod_cgi.so', - 'dav_fs' => 'mod_dav_fs.so', + 'cgid' => 'mod_cgid.so', 'dav' => 'mod_dav.so', + 'dav_fs' => 'mod_dav_fs.so', 'dav_svn' => 'mod_dav_svn.so', 'dbd' => 'mod_dbd.so', 'deflate' => 'mod_deflate.so', @@ -128,6 +128,7 @@ 'env' => 'mod_env.so', 'expires' => 'mod_expires.so', 'ext_filter' => 'mod_ext_filter.so', + 'fcgid' => 'mod_fcgid.so', 'filter' => 'mod_filter.so', 'headers' => 'mod_headers.so', 'ident' => 'mod_ident.so', @@ -142,12 +143,13 @@ 'negotiation' => 'mod_negotiation.so', 'php5' => 'libphp5.so', 'php7' => 'libphp7.so', + 'proxy' => 'mod_proxy.so', 'proxy_ajp' => 'mod_proxy_ajp.so', 'proxy_balancer' => 'mod_proxy_balancer.so', 'proxy_connect' => 'mod_proxy_connect.so', + 'proxy_fcgi' => 'mod_proxy_fcgi.so', 'proxy_ftp' => 'mod_proxy_ftp.so', 'proxy_http' => 'mod_proxy_http.so', - 'proxy' => 'mod_proxy.so', 'proxy_scgi' => 'mod_proxy_scgi.so', 'reqtimeout' => 'mod_reqtimeout.so', 'rewrite' => 'mod_rewrite.so', @@ -160,9 +162,9 @@ 'suexec' => 'mod_suexec.so', 'systemd' => 'mod_systemd.so', 'unique_id' => 'mod_unique_id.so', + 'unixd' => 'mod_unixd.so', 'userdir' => 'mod_userdir.so', 'usertrack' => 'mod_usertrack.so', - 'unixd' => 'mod_unixd.so', 'version' => 'mod_version.so', 'vhost_alias' => 'mod_vhost_alias.so', }, @@ -179,6 +181,9 @@ 'php7' => value_for_platform_family( 'rhel' => 'mod_php', ), + 'fcgid' => value_for_platform_family( + 'rhel' => 'mod_fcgid', + ), 'ssl' => value_for_platform_family( 'rhel' => 'mod_ssl', ),