I have a development VM server (Centos7+php5.4+apache2.4) and each user as it sub domain, developing its webservice.
Most of the developers are obligated to code on the 5.4 php version, with mod_php as default and I have instructions to migrate to PHP 7 (preferably 7.2), as soon as possible. I researched and read that the only option to have two different versions of PHP,is that I have to install one of them with Fast-CGi (I dont mind doing that on php7). I'm concerned that when its possible to choose the necessary php version will affect the development, because of the different environments (mod_php vs Fast-CGi)
So far I only could install both of the php versions+necessary modules, without any issue. It's possible to the system recognizes the newer php version and force a chosen user to use that version?
I've tried using the procedure with virtualmin and create PHP install packages without success. The virtualmin installs a lot of extra stuff that cause instability on the system.
So far I've tried all of this procedures:
https://www.webfoobar.com/node/45
https://www.centos.org/forums/viewtopic.php?f=47&t=62204
https://rpms.remirepo.net/wizard/ (success installing the two versions on the same system)
My objective is to choose what php version should each user (under his sub-domain) will work without any version conflicts, maintaining the system (EOL) php 5.4 temporarily. I read that its possible with the .htaccess configuration with Add-handler, but the system didn't recognize the php7
Any guidance accepted. Thanks for the reading Best regards