> OK I will try that (FPM + CGI)
This should also work with mod_php (but I don't have working mod_php config to test this)
Biggest issues with mod_php:
- only works with apache (FPM can be used by httpd, nginx, lighttpd...)
- only works in prefork mode, apache perf is much better in "event" (threaded) mode, especially for static files
- only one module (single version)
- only one user (for all sites)
> The big issue for me is that we have a large (arguably "legacy") infrastructire using EL-7 + php_mod + and CGI. This design works up to PHP 7.4, but fails for PHP 8.0+.
I don't see how PHP version may change this, handler choice is done by HTTP.
So can only be related to httpd configuration
If you only use "CGI", ensure mod_php and php-fpm are not installed (which provides the php.conf with some handler config). Config files order may also change.
> Another issue for us is we have hundreds of low use web sites (vhosts) per VM that work well with php_mod. We couldn't have a separate FPM or pool for each site as this would use too many resources.
If hundreds of sites can run with mod_php, so with the same user, they can run with the same pool.
Multiple pools make sense only for
- multiple versions
- multiple users
- multiple configuration
Also notice the "ondemand" pool configuration, useful for small sites (while big sites will take benefit of "static")
Desktop: Fedora 37 + rpmfusion + remi-test
Laptop: Fedora 38 + rpmfusion + remi (SCL only)
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi