Phpswitcher does not work with i mscp 1.4.dev (Debian Stretch)

  • Moin Nuxwin




    The following error message appears when I want to install a version.


    On all versions


    I know it is currently not supported is just wanted to tell you.





    My system



    PHP 7.1.2-3 + 0 ~ 20170222101259.17 + stretch ~ 1.gbp444202 (cli) (built: Feb 22 2017 10:13:01) (NTS)
    Copyright (c) 1997-2017 The PHP Group
    Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies
    With Zend OPcache v7.1.2-3 + 0 ~ 20170222101259.17 + stretch ~ 1.gbp444202, Copyright (c) 1999-2017, by Zend Technologies



    Server version: Apache / 2.4.25 (Debian)
    Server built: 2017-01-25T22: 59: 26



    Mysql ver 15.1 Distrib 10.1.21-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2


    I-MSCP Git 1.4.x time 18:00
    Build: Not available
    Codename: Room



    PHP
    1. /var/www/imscp/gui/plugins/PhpSwitcher/PhpCompiler/Makefile:274: recipe for target 'configure-5.6-stamp' failed
    2. [FATAL] main::make: An error occurred while executing `install' make target for php-5.6.29: make[1]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule.
    3. aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in'
    4. configure: WARNING: This bison version is not supported for regeneration of the Zend/PHP parsers (found: 3.0, min: 204, excluded: 3.0).
    5. ../configure: line 5439: test: too many arguments
    6. configure: error: Please reinstall the libcurl distribution -
    7. easy.h should be in <curl-dir>/include/curl/
    8. make: *** [configure-5.6-stamp] Error 1

    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

  • @Speedy



    It is fixed already in my working copy. CHANGELOG will be as follow


    • Added: `--auto-setup' command line option (See the UPDATE.md file)
    • Added: libfile-find-rule-perl package as requirement
    • Added: OpenSSL 1.0.2k library (See the UPDATE.md file)
    • Added: `patch' and `unpatch' MAKE(1) targets in Makefile (patching job was done by the PHP compiler in previous versions)
    • Added: Multiarch support for cURL (All PHP versions)
    • Added: Merged OpenSSL 1.1.0 support from PHP 7.1 in PHP 7.0
    • Changed: Default install directory from /opt/phpswitcher to /opt/phpswitcher/%ymd% (See the UPDATE.md file)
    • Fixed: Create MySQL compatibility symlinks when they are not provided (MariaDB usage case)
    • Fixed: Static phpinfo files are not re-generated on plugin update
    • Fixed: Unexpected behavior when switching from CGI sapi to FPM sapi: Possible misconfigured PHP versions
    • Refreshed: 0004-libtool2.2.patch patch (PHP >= 7.0)
    • Updated: PHP compiler for use of PHP 5.6.30, 7.0.16 and 7.1.2
    • Review: Usage of new JS confirm dialog as provided by i-MSCP 1.4.x with backward compatibility in mind
    • Removed: Patch for GMP multiarch support; it is now integrated (PHP versions >= 7.0)

    Here, what you mention is related to: Added: Multiarch support for cURL (All PHP versions)


    To resume, under Debian Stretch, cURL development library path has changed.


    And UPDATE.md file will be as follow:


    ## Update to version 3.0.0


    ### --auto-setup command line option (PHP compiler)


    It is now possible to automatically setup new PHP versions. For doing so, you must execute the PHP compiler with the --auto-setup command line option. For instance:


    Shell-Script
    1. # perl /var/www/imscp/gui/plugins/PhpSwitcher/PhpCompiler/php_compiler.pl --auto-setup all

    will automatically configure, build, install and setup all available PHP versions. If one PHP version is already known, it will be simply updated. Note also that any domain for which a PHP version is being updated will be automatically reconfigured.


    It is also possible to ask the PHP compiler to setup PHP versions found in a specific directory. For instance, the following command:


    Shell-Script
    1. # perl /var/www/imscp/gui/plugins/PhpSwitcher/PhpCompiler/php_compiler.pl --install-dir /opt/phpswitcher/20170306 --auto-setup

    will search for all PHP versions available into the /opt/phpswitcher/20170306 directory and automatically setup them.


    In summary, using the --auto-setup command line option, it is no longer required to setup PHP versions manually throuh
    the PhpSwitcher interface (administrator level).


    ### Default installation directory (PHP compiler)


    Default installation directory for PHP versions has been changed from /opt/phpswitcher to /opt/phpswitcher/%ymd% where %ymd% is the date of the day such as 20170306.


    ### SSL support for PHP >= 4.4 < 7.0


    For systems on which OpenSSL library is greater or equal to 1.1.0, PHP versions greater thant 4.4 but older than 7.0 are now built against a self-compiled OpenSSL library (1.0.2k).

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

  • Ok thanks @Nuxwin



    Can you tell when it comes out about version 3.0

    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

  • @Speedy


    This evening normally (in the night) ;)

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

  • You want me to make the night again to the day or. :P:idea:



    No joke @Nuxwin is ok I must still be so here or so on the server tinker time you ..

    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

  • New --auto-setup command line option in action:


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