sudo update-alternatives --config php
There are 6 choices for the alternative php (providing /usr/bin/php).
Selection Path Priority Status
------------------------------------------------------------
0 /usr/bin/php7.4 74 auto mode
1 /usr/bin/php5.6 56 manual mode
* 2 /usr/bin/php7.0 70 manual mode
3 /usr/bin/php7.1 71 manual mode
4 /usr/bin/php7.2 72 manual mode
5 /usr/bin/php7.3 73 manual mode
6 /usr/bin/php7.4 74 manual mode
Code
- perl /var/www/imscp/gui/plugins/PhpSwitcher/PhpCompiler/php_compiler.pl --register --packaged --packaged-only 7.1 7.2 7.3 7.4
- [INFO] Registering PHP versions in the PhpSwitcher plugin...
- [INFO] Registering the packaged PHP 7.1 version with data:
- - PEAR directory path : /usr/share/php
- - FastCGI binary path : /usr/bin/php-cgi7.1
- - FPM binary path : /usr/sbin/php-fpm7.1
- - FPM configuration file path : /etc/php/7.1/fpm/php-fpm.conf
- - FPM pool directory path : /etc/php/7.1/fpm/pool.d
- [INFO] Registering the packaged PHP 7.2 version with data:
- - PEAR directory path : /usr/share/php
- - FastCGI binary path : /usr/bin/php-cgi7.2
- - FPM binary path : /usr/sbin/php-fpm7.2
- - FPM configuration file path : /etc/php/7.2/fpm/php-fpm.conf
- - FPM pool directory path : /etc/php/7.2/fpm/pool.d
- [INFO] Registering the packaged PHP 7.3 version with data:
- - PEAR directory path : /usr/share/php
- - FastCGI binary path : /usr/bin/php-cgi7.3
- - FPM binary path : /usr/sbin/php-fpm7.3
- - FPM configuration file path : /etc/php/7.3/fpm/php-fpm.conf
- - FPM pool directory path : /etc/php/7.3/fpm/pool.d
- [INFO] Registering the packaged PHP 7.4 version with data:
- - PEAR directory path : /usr/share/php
- - FastCGI binary path : /usr/bin/php-cgi7.4
- - FPM binary path : /usr/sbin/php-fpm7.4
- - FPM configuration file path : /etc/php/7.4/fpm/php-fpm.conf
- - FPM pool directory path : /etc/php/7.4/fpm/pool.d
- [DONE] PHP versions scheduled for registration in the PhpSwitcher plugin:
- - PHP 7.1 (Packaged)
- - PHP 7.2 (Packaged)
- - PHP 7.3 (Packaged)
- - PHP 7.4 (Packaged)
- [INFO] Processing of PHP versions in progress. Please be patient...
- [DONE] PHP versions were processed.