Posts by Nuxwin

    Dear community,


    A new version of the PhpSwitcher has just been released:



    Version compatible with i-MSCP Serie ≥ 1.5.3


    Once connected on our forums, you can purchase this plugin at: https://i-mscp.net/index.php/PaidSubscriptionList/

    Documentation is available at: https://wiki.i-mscp.net/doku.php?id=plugins:phpswitcher


    CHANGELOG

    • Enhancement: Allow LOAD DATA SQL statement for all PHP versions - mysql and mysqli extensions - (Closes #40)
    • Fixed: Can't locate object method "daemonReload" via package "iMSCP::Provider::Service::Debian::Systemd (Closes #37)
    • Fixed: Pool configuration files of all PHP versions are removed on DPKG(1) post invoke tasks (Closes #38)
    • Fixed: The --runtime-dependencies option isn't taken into account when expected (php_compiler.pl script)
    • Refreshed: Patches for PHP 7.4.0RC3 (Closes #39)
    • Review: Generate default (master) php.ini file using php.ini templates (compiled PHP versions)
    • Updated: php_compiler.pl script for use of PHP 7.4.0RC3 (Closes #39)


    Thank you for using our plugins.

    Good evening


    First please, make sure that you system is up-to-date: apt-get update && apt-get dist-upgrade


    Please rebuild and register all PHP versions as follows:


    Code
    1. # rm -Rf /opt/phpswitcher /usr/local/src/phpswitcher
    2. # perl /var/www/imscp/gui/plugins/PhpCompiler/php_compiler.pl --verbose --register 5.6 7.0 7.1 7.2 7.3 7.4


    This should, for each PHP version:

    1. Download the PHP sources
    2. Compile the PHP version
    3. Install the PHP version
    4. Build and install the PHP runtime dependency package

    This should, for all compiled PHP versions

    1. Register the PHP versions into the PhpSwitcher plugin (or update them)

    Note that the compiled PHP version that matches with the system default PHP version, as selected while i-MSCP setup will be automatically discarded (expected). You cannot have two PHP version with the same MAJOR.MINOR version.


    And please, check you /etc/apt/preferences.d directory. You shouldn't have any APT preference set other than those set by i-MSCP core, that is, those from the /etc/apt/preferences.d/imscp file.


    BTW: The i-MSCP 1.5.4 version has never been released. The plugin hasn't been tested with it... If you don't figure out alone with the above procedure, you'll have to give us access to the server for investigation.

    theqkash


    When you execute i-MSCP in an LXC container, there is a lot of permissions problems as the container is unprivileged. We need review our howto for Proxmox. For the time being, don't build the PHP versions in a chroot environment. You can do that by passing the --no-chroot option to the php_compiler script:


    Code
    1. root@xenial:~# perl /var/www/imscp/gui/plugins/PhpSwitcher/PhpCompiler/php_compiler.pl --verbose --no-chroot --register 7.2


    Please, read the documentation: https://wiki.i-mscp.net/doku.php?id=plugins:phpswitcher in which this option is clearly described.

    Just in case, as I use PHPSwitcher (5.0.2) and also running on Debian 9.11:

    Code
    1. root@:# apt-cache search imscp
    2. imscp-psw-php7.1-runtime-dependencies - Runtime dependencies for PHP 7.1
    3. imscp-psw-php5.6-runtime-dependencies - Runtime dependencies for PHP 5.6
    4. imscp-psw-php7.4-runtime-dependencies - Runtime dependencies for PHP 7.4
    5. imscp-psw-php7.3-runtime-dependencies - Runtime dependencies for PHP 7.3
    6. imscp-psw-php7.2-runtime-dependencies - Runtime dependencies for PHP 7.2
    7. imscp-psw-php7.0-runtime-dependencies - Runtime dependencies for PHP 7.0
    8. imscp-psw-php5.3-runtime-dependencies - Runtime dependencies for PHP 5.3


    I did have all installed on my system.

    Thank you for your feedback. That's much appreciated. So basically put, it seme that Sharko has done something wrong...


    Please Sharko Update your i-MSCP version to latest version, then uninstall/reinstall the PhpSwitcher plugin and rebuit all PHP versions. The runtime dependencies package should be installed as part of the process. The missing packages are due to absence of the runtime dependency packages.

    I'm sorry. Here is the output:


    Code
    1. ⚡  root@s01  ~  LANG=C aptitude show imscp-psw-php7.1-runtime-dependencies
    2. E: Unable to locate package imscp-psw-php7.1-runtime-dependencies
    3. ✘ ⚡  root@s01  ~  aptitude search imscp
    4. ✘ ⚡  root@s01  ~ 

    So, you have a problem... Package for runtime dependency are not there... Not normal. I'll check on stretch with 7.3 and give you some instruction later on to force build and installation of those package.