Hi, I have both 7.4 and 8.0 installed (FPM) but when selecting 7.4 it’s actually still loading 8.0 based on phpinof(). Apache and both FPM versions are restarted.
Both versions are correctly available with Re-Check Configuration:
Just a quick update: same thing happens on another Ubuntu 20.04 server as well with PHP 7.0 and 7.4 both installed. The higher version will be always used even when lower is selected.
Checking the apache config files, there’s both php7.4-fpm.conf and php8.0-fpm.conf. Seems like the SetHandler of higher PHP version overrides other versions.
EDIT: Solved it. These fpm config files for apache actually messed up everything and all php scripts were run as mod_php. Removed these two config files and everything works now as expected.
would you mind elaborating what precisely you did to fix the “mess” created by the installed PHP 8.0 on an ubuntu 20.04 server.
I managed to uninstall PHP 8.0, set PHP 7.4 as default and have the virtual server use FPM, but am still not able to update my wordpress site due to permission errors, as if mod_php was activated.
I am no expert, so I’d be extremly thankful for any hint.
Everything works now as expected and Wordpress has no permission issues anymore. The problem was the apache configuration files that were installed with PHP packages.