Topic: PHP Dual Stack Problem
Hello,
I am experiencing a challenge with PHP Dual Stack installations and require assistance. Specifically, my issue pertains to the installation of PHP 8.0 which creates the file 'conf/php.conf,' and legacy PHP 7.4 (or any other version) which creates 'conf.d/php74-php.conf.'
Both files contain the PHP Handler, with the following configurations:
PHP 8.0: SetHandler "proxy:unix:/run/php-fpm/w w w.sock|fcgi://localhost"
PHP 7.4: SetHandler "proxy:unix:/var/opt/remi/php74/run/php-fpm/w w w.sock|fcgi://localhost"
(ignore spaces with w w w - board won't let me write it without because of "too many links" ...)
Consequently, the PHP version loaded last becomes the default PHP version for the server, used for all Apache VHosts without a fixed defined "Set Handler." However, I would like to configure the first loaded PHP 8.0 as the default and only use PHP 7.4 where it is defined within Apache VHost.
Do you have any suggestions on how to resolve this issue?
Thank you,
Andy