Richard G
Verified User
We are changing from mod_php with mod_ruid2 to php-fpm and wondering about this, because we like to keep things in a certain order.
For example at this moment it's like this:
php1_release=7.2
php1_mode=php-fpm
php2_release=7.3
php2_mode=php-fpm
php3_release=7.4
php3_mode=php-fpm
PHP 7.2 will be EOL soon and we want the users to test php 7.3 so they can see if their sites work.
Starting beginning next year, we want to remove php 7.2 in total and put 7.3 as first php release so this is automatically choosen for new users, as not everybody wants instantly use php 7.4 and not all applications are 7.4 compatible yet.
However, if we change it like this:
php1_release=7.3
php1_mode=php-fpm
php2_release=7.4
php2_mode=php-fpm
php3_release=no
php3_mode=php-fpm
then users which now would have php 7.3 would get php 7.4 which is not our intention. So we should move their choice to php 1.
Now I found this:
But I'm not sure if that is what I'm looking for because it's described a bit confusing.
Or should I read this as that i can just do this like the "default php1_select=1" to achieve what I want?
Anybody tried this yet?
For example at this moment it's like this:
php1_release=7.2
php1_mode=php-fpm
php2_release=7.3
php2_mode=php-fpm
php3_release=7.4
php3_mode=php-fpm
PHP 7.2 will be EOL soon and we want the users to test php 7.3 so they can see if their sites work.
Starting beginning next year, we want to remove php 7.2 in total and put 7.3 as first php release so this is automatically choosen for new users, as not everybody wants instantly use php 7.4 and not all applications are 7.4 compatible yet.
However, if we change it like this:
php1_release=7.3
php1_mode=php-fpm
php2_release=7.4
php2_mode=php-fpm
php3_release=no
php3_mode=php-fpm
then users which now would have php 7.3 would get php 7.4 which is not our intention. So we should move their choice to php 1.
Now I found this:
But I'm not sure if that is what I'm looking for because it's described a bit confusing.
What is this php1_select? Users only select 1 php version, correct? On the domain setup it only says "First PHP" so no multiple php's.Here's a quick script that scan swap the existing php1_select and php2_select values with each other, and for anyone without a setting, it will flip from the default to php1_select=2.
Or should I read this as that i can just do this like the "default php1_select=1" to achieve what I want?
Anybody tried this yet?