PhpSwitcher

  • @plastilin


    This will be fixed in next release. PhpSwitcher version 1.0.0 is not released yet (it will just after release of i-MSCP version 1.2.3)

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • Hi, I have upgraded my default php version from php 5.5.9 to php 5.6. Then I have compiled php 5.5 as alternative php version in opt/php-fcgid/php5.5
    Everything worked fine so far but the switcher still shows php 5.5.9 as default version (instead of php5.6). The new compiled php5.5 (fcgid) shows up as alternative.
    php-info shows that php5,6 is running as default php version. How can I get php5.6 show up in the php switcher? Thanks for any tips.

    i-MSCP 1.5.3 | Ubuntu 18.04

  • @bluecafe


    This has nothing to do with the PhpSwitcher plugin. The plugin get default PHP version using the following code:


    PHP
    1. ...
    2. $phpVersions = array('PHP ' . PHP_MAJOR_VERSION . '.' . PHP_MINOR_VERSION . '.' . PHP_RELEASE_VERSION => 0);


    Here, nothing is hard coded. Thus, be sure that you have restarted the imscp_panel service, and be sure that the panel uses your new default PHP version (PHP5.6).

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • Thank you Nuxwin, service imscp_panel restart did the trick and php version 5.6.8 shows up correctly.
    But if I try to switch to php5.5 the php version won't change.


    and php-info still shows php 5.6



    Could it be that I have overseen something? Thanks for your help.

    i-MSCP 1.5.3 | Ubuntu 18.04

  • @bluecafe


    Once selected, you must click on the update button which should be on the right. Regarding the phpinfo result, you don't give sufficient informations.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

  • Thanks for your reply, nuxwin. Yes I have clicked the update button and a green message pops up that says "php changed is scheduled for update. Please be patient."

    i-MSCP 1.5.3 | Ubuntu 18.04

  • @bluecafe


    According to your phpinfo, you're using mod_php ( Apache 2.0 Handler and Configuration File (php.ini) Path/etc/php5/apache2 ) while the PhpSwitcher plugin requires fcgid.


    I'm wondering how you installed the plugin because normally, you cannot install it if you don't use the i-MSCP fcgid httpd server implementation.


    You should read the plugin documentation.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206