I digged a little bit and tried to use the "old" phpswitcher to also get PHP 7.2 and PHP7.3 into i-mscp. I did this on a vm and did not test the result in real life. If the PHP compilation was successful then it was ok for me...
As always: there is NO SUPPORT.
My system setting: Debian 9 (stretch), i-mscp 1.5.3 (2018120800) and phpswitcher 4.0.3 which has built-in PHP-FPM support for PHP 5.3-7.1.
5.3, 5.4 and 5.5 are no problem - they where EOL before phpswitcher 4.0.3 was released.
I'll write down the steps to install the other PHP versions.
5.6 & 7.0 with the last releases (they are EOL since jan 2019)
and from 7.1 with the last from in mid of august 2019...
I always installed each version with "perl php_compiler.pl -f x.y" to always force the newest version. Today theese are:
5.3.29, 5.4.45, 5.5.38, 5.6.40, 7.0.33, 7.1.31, 7.2.21, 7.3.8
In the attachement there are new patches (5.6.40 from Debian, 7.1-7.3 from Ondřej Surý - from aug 7th 2019) - the folders have to be replaced by theese ones in
on my system I had to create a symlink to get curl compiled in the last php 5.6 release:
and I took the newer patches from Debian - see the attachement...
7.0.33: went through without changes...
7.1.31 (same version as debian 9 default): see patches in attachment
for 7.2 and 7.3 you need some changes in /var/www/imscp/gui/plugins/PhpSwitcher/PhpCompiler/php_compiler.pl:
on line 54 extend the hash with versions - so it looks like this (the two lines with # new)
And in the Makefile (same folder) you also need to add some lines:
on line 281 add theese two lines [ just after: 7.1_CONFIG := $(7.0_CONFIG) ]
Also copy the two php7.2 & php7.3 folders with the patches into the folder....
This should be ok for 7.2.21 to be compiled.
For 7.3.8 another change in the Makefile is needed:
The block on line 295 should look like this
(the line with "skel" changes!)
And I had to install some packages - maybe they are already installed:
With this settings 7.3.8 was also fine and could be compiled and integrated into i-mscp.
I hope you are able to install the newer php versions with this howto. Let me know if I have to add or correct some informations.