PhpSwitcher plugin v2.2.1 is not a valid PEAR directory

  • /opt/phpswitcher/php5.6/bin/php-cgi /opt/phpswitcher/php5.6/sbin/psw5.6-fpm Plugin::PhpSwitcher::_checkPhpVersionData: `/opt/phpswitcher/php5.6/share/pear` is not a valid PEAR directory


    phpzwischer.PNG



    no fonktionphpzwischer.PNG

    Files

    my System :

    - Distribution: Debian | Release: 9.13 | Codename: wheezy
    - i-MSCP Version: i-MSCP 1.5.3| Build: 20181208 | Codename: Ennio Morricone
    - Plugins installed: ClamAV (v. 1.3.0), Mailgraph (v 1.1.1), OpenDKIM (v 2.0.0), SpamAssassin (v 2.0.1)
    - LetsEncrypt (v3.3.0), PhpSwitcher (v 5.0.5), RoundcubePlugins (v 2.0.2)YubiKeyAuth 1.1.0

    Edited once, last by Speddy ().

  • Version 2.2.1 is only compatible with imscp >= v1.3.0..

  • I have this version

    Files

    my System :

    - Distribution: Debian | Release: 9.13 | Codename: wheezy
    - i-MSCP Version: i-MSCP 1.5.3| Build: 20181208 | Codename: Ennio Morricone
    - Plugins installed: ClamAV (v. 1.3.0), Mailgraph (v 1.1.1), OpenDKIM (v 2.0.0), SpamAssassin (v 2.0.1)
    - LetsEncrypt (v3.3.0), PhpSwitcher (v 5.0.5), RoundcubePlugins (v 2.0.2)YubiKeyAuth 1.1.0

  • Not a bug. Please try again on rebuild your php5.6 version using the compiler.


    Envoyé de mon SM-G350 en utilisant Tapatalk

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

  • Hi,
    just tried the Plugin and also get the error.
    i tried to rebuild php5.6 and found following problem: (No valid SHA1-Signature)


    Code
    1. Installing PEAR environment: /opt/phpswitcher/php5.6/share/pear/
    2. make[2]: Entering directory '/usr/local/src/phpswitcher/php-5.6.21/5.6-build'
    3. phar "/usr/local/src/phpswitcher/php-5.6.21/5.6-build/pear/install-pear-nozlib.phar" SHA1 signature could not be verified: broken signature
    4. Warning: require_once(phar://install-pear-nozlib.phar/index.php): failed to open stream: phar error: invalid url or non-existent phar "phar://install-pear-nozlib.phar/index.php" in /usr/local/src/phpswitcher/php-5.6.21/5.6-build/pear/install-pear-nozlib.phar on line 1236
    5. Makefile:481: recipe for target 'install-pear-installer' failed
    6. make[2]: Leaving directory '/usr/local/src/phpswitcher/php-5.6.21/5.6-build'
    7. Makefile:484: recipe for target 'install-pear' failed
  • Hello. I'll have a look this evening.


    Envoyé de mon SM-G350 en utilisant Tapatalk

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

  • Please can you say me which distribution and code name you have? Thank.


    Envoyé de mon SM-G350 en utilisant Tapatalk


    Also please can you try a build of php 5.5 and php 7.0 to see if the problem affect php 5.6 only. Thanks.


    Envoyé de mon SM-G350 en utilisant Tapatalk

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

  • Problem confirmed. A new version will be released soon.


    Thank you for your report.


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

  • Solution:


    Edit the /var/www/imscp/gui/plugins/PhpSwitcher/PhpCompiler/php5.6/patches/series file and replace the following statement (line 50):


    Code
    1. 0051-Revert-PEAR-version-to-last-working-version-from-PHP.patch


    by


    Code
    1. #0051-Revert-PEAR-version-to-last-working-version-from-PHP.patch


    Once done, rebuild your PHP 5.6 version.




    Result after change:


    Code
    1. ...Installing shared extensions: /opt/phpswitcher/php5.6/lib/php/20131226/Installing PHP CLI binary: /opt/phpswitcher/php5.6/bin/Installing PHP CLI man page: /opt/phpswitcher/php5.6/share/man/man1/Installing PHP FPM binary: /opt/phpswitcher/php5.6/sbin/Installing PHP FPM config: /opt/phpswitcher/php5.6/etc/Installing PHP FPM man page: /opt/phpswitcher/php5.6/share/man/man8/Installing PHP FPM status page: /opt/phpswitcher/php5.6/share/php/fpm/Installing PHP CGI binary: /opt/phpswitcher/php5.6/bin/Installing PHP CGI man page: /opt/phpswitcher/php5.6/share/man/man1/Installing build environment: /opt/phpswitcher/php5.6/lib/php/build/Installing header files: /opt/phpswitcher/php5.6/include/php/Installing helper programs: /opt/phpswitcher/php5.6/bin/program: phpizeprogram: php-configInstalling man pages: /opt/phpswitcher/php5.6/share/man/man1/page: phpize.1page: php-config.1Installing PEAR environment: /opt/phpswitcher/php5.6/share/pear/[PEAR] Archive_Tar - installed: 1.4.0[PEAR] Console_Getopt - installed: 1.4.1[PEAR] Structures_Graph- installed: 1.1.1[PEAR] XML_Util - installed: 1.3.0[PEAR] PEAR - installed: 1.10.1Wrote PEAR system config file at: /opt/phpswitcher/php5.6/etc/pear.confYou may want to add: /opt/phpswitcher/php5.6/share/pear to your php.ini include_path/usr/local/src/phpswitcher/php-5.6.21/build/shtool install -c ext/phar/phar.phar /opt/phpswitcher/php5.6/binroot@jessie:/usr/local/src/phpswitcher/php-5.6.21/5.6-build#Installing PDO headers: /opt/phpswitcher/php5.6/include/php/ext/pdo/...


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