Apache2 SetHandler for Proxy FCGID is ignored
Hello,
It appears that a recent package update, likely for Apache2's "libapache2-
On a system with PHP 7.2, 7.3, 7.4, and 8.0 installed (by example) using their respective "php?.?-fpm" packages, and having them all enabled via their respective "a2enconf php?.?-fpm" actions, a VHOST may have this example snippet so it may use PHP 7.2 for compatibility instead of a later version:
```
<IfModule proxy_fcgi_module>
<FilesMatch ".+\.ph(
SetHandler "proxy:
</FilesMatch>
</IfModule>
```
What happens as of this week is that only the latest version of PHP-FPM is used, most recently 8.0, which can cause serious compatibility problems I'm sure I won't need to go into further here. Currently the only workaround is to switch off all later versions of PHP via "a2disconf" but that defeats the purpose of having a system with multiple versions of PHP available.
I can very confirm that PHP-FPM is being used (albeit the wrong version) using `phpinfo()`, and that switching off the Apache configuration for each version does indicate a version change (to the latest one available) also using `phpinfo()`. This would indicate that the sockets at "/run/php/
Looking at the enabled modules all the necessary ones to do this are present: actions alias fcgid proxy proxy_fcgi
It's just SetHandler directives being ignored. I tried moving it out of the "<IfModule proxy_fcgi_module>" condition, which made no change, so the problem is likely with SetHandler itself.
I've also noticed that this issue only seems to be impacting Ubuntu. All of my Debian 10 installations (all 18 of them) still work as expected, which is why I've decided to file this here.
I'm not alone on this. This was asked by someone else at Ask Ubuntu here with a few people verifying the issue: https:/
Thanks,
Adam
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- AdamR
- Solved:
- Last query:
- Last reply: