Has anyone tried to install mod_fastcgi on CentOS7/httpd yet?
Since it's not in the epel or fusion repos, I tried the el6 rpm, which wasn't working (httpd said: Cannot load modules/mod_fastcgi.so into server: /etc/httpd/modules/mod_fastcgi.so: undefined symbol: unixd_config).
Compiling mod_fastcgi (# make top_dir=/usr/lib64/httpd) from source failed too with a thousands of errors like that:
/usr/include/httpd/http_config.h:574:32: error: request for member 'connection' in something not a structure or union
mod_fastcgi.c:2881:5: warning: passing argument 6 of 'ap_log_rerror_' from incompatible pointer type [enabled by default]
ap_log_rerror(FCGI_LOG_ERR_NOERRNO, r, "FastCGI: access denied: %s", r->uri);
SELINUX is already disabled (to exclude that as reason for "access denied")
I also installed the requirements for compiling fastcgi: httpd-devel libtool make gcc apr apr-devel.
Since mod_fastcgi is IMHO the common way to connect to PHP-FPM, I really can't imagine that fastcgi is not meant for CentOS 7 so I assume I'm doing something wrong.
Unfortunately, mod_proxy's support for socket connections starts at httpd 2.4.10 and CentOS 7 repos are only 2.4.6 and I'd like to avoid compiling apache2 (and really want to use fastcgi and stay with fpm-sockets)
Did I may miss anything that obsoleted fastcgi? If not, my wish would be to get mod-fastcgi successfully compiled. Can someone, who is more fancy at compiling, test that on a default centos7 vm?
With Apache 2.4, the official module to use is mod_proxy_fcgi (tutorial) instead of the ancient mod_fastcgi. That module, as well as mod_fcgid, were third party modules.
And of course there's always nginx.