PhpSwitcher: compile all versions, add APCU and IONCUBE

  • WARNING This script is not supported by i-MSCP team and its usage is not commended WARNING


    Hello,


    I am not a shell programmer, so maybe someone can beautify this (a lot) :) .


    Changelog:


    What this script is doing:

    • Compiling all PHP FPM versions (5.3 - 7.0)
    • Adding APCU support (see wiki)
    • Adding Ioncube support (see wiki)

    Why I wrote this?Every time a new PhpSwitcher plugin is released I had to do the steps to enable APCU for two versions - so I decided to build a shell script which is doing all together. As I said I am not a bash scripter!
    Tested on:

    • Ubuntu 16.04 LTS (x64)
    • I-MSCP 1.3.7 (Horner)
    • PhpSwitcher 2.2.15

    How to use:It is very simple - just execute it. As described it generates for each php version an own folder with the content. In this case it generates a folder based on the current date and time inside /opt/phpswitcher/ (e.g. /opt/phpswitcher/20161113225325/php7.0).Be careful: Installing APCU needs confirmations from the user - so you cannot let this script run in the background!
    After you execute it you just have to do two things:

    • As known: Disable all php versions, change paths and enable them again
    • Remove the old php folder as soon as you no longer need it

    APCU:There are two versions for APCU. Verison 4 for php versions below 7.0 and version 5 for php7. That is why the script adds two different versions. If there are new APCU versions the pecl path needs to be changed matching the new version numbers.
    Ioncube:Currently I am not using this extension but it should always download the correct up2date version.
    Script:(Maybe you need to recreate phpinfo files in the admin panel again to see the new extensions!)
    Version 1.1:- added php 7.1 support - thx to @Speedy


    WARNING This script is not supported by i-MSCP team and its usage is not commended WARNING

    Edited 13 times, last by UncleSam ().

  • Tested on:

    • Debian 8.7 (x64)
    • I-MSCP 1.3.9 (Horner)
    • PhpSwitcher Version 2.3.2

    No Problem



    Php 7.1 Non compatitur

    my System :



    - Distribution: Debian | Release: 9.8 | Codename: wheezy
    - i-MSCP Version: i-MSCP 1.5.3| Build: 20181208 | Codename: Ennio Morricone
    - Plugins installed: ClamAV (v. 1.2.1), Mailgraph (v 1.1.1), OpenDKIM (v 1.1.3), PanelRedirect (v 1.1.5) & SpamAssassin (v 1.1.1)
    - LetsEncrypt (v3.3.0), PhpSwitcher (v 4.0.1), RoundcubePlugins (v 2.0.1)

  • Linux (32 bits) tar.gz zip Uploader 6.0.9 2017-1-26 UPDATED
    Linux (64 bits) tar.gz zip Uploader 6.0.9 2017-1-26 UPDATED




    stable 2017-01-16 apcu-5.1.8.tgz (108.7kB) DLL [Changelog]

    my System :



    - Distribution: Debian | Release: 9.8 | Codename: wheezy
    - i-MSCP Version: i-MSCP 1.5.3| Build: 20181208 | Codename: Ennio Morricone
    - Plugins installed: ClamAV (v. 1.2.1), Mailgraph (v 1.1.1), OpenDKIM (v 1.1.3), PanelRedirect (v 1.1.5) & SpamAssassin (v 1.1.1)
    - LetsEncrypt (v3.3.0), PhpSwitcher (v 4.0.1), RoundcubePlugins (v 2.0.1)

  • Php 7.1 is now compatible


    Changes.



    my System :



    - Distribution: Debian | Release: 9.8 | Codename: wheezy
    - i-MSCP Version: i-MSCP 1.5.3| Build: 20181208 | Codename: Ennio Morricone
    - Plugins installed: ClamAV (v. 1.2.1), Mailgraph (v 1.1.1), OpenDKIM (v 1.1.3), PanelRedirect (v 1.1.5) & SpamAssassin (v 1.1.1)
    - LetsEncrypt (v3.3.0), PhpSwitcher (v 4.0.1), RoundcubePlugins (v 2.0.1)

  • Linux (32 bits) tar.gz zip Uploader 10.0.3 2017-09-26
    Linux (64 bits) tar.gz zip Uploader 10.0.3 2017-09-26

    my System :



    - Distribution: Debian | Release: 9.8 | Codename: wheezy
    - i-MSCP Version: i-MSCP 1.5.3| Build: 20181208 | Codename: Ennio Morricone
    - Plugins installed: ClamAV (v. 1.2.1), Mailgraph (v 1.1.1), OpenDKIM (v 1.1.3), PanelRedirect (v 1.1.5) & SpamAssassin (v 1.1.1)
    - LetsEncrypt (v3.3.0), PhpSwitcher (v 4.0.1), RoundcubePlugins (v 2.0.1)

  • Beta Loaders for PHP 7.2
    The following are beta ionCube Loaders that can be used with the release candidate (RC) versions of PHP 7.2.0 on Linux and FreeBSD 9. They can run files encoded with the version 10 PHP 7.1 Encoder. As with PHP 7.2.0 RC versions themselves, these loaders should not be used in a production environment.




    Linux (32 bits) tar.gz 10.1.0-beta 2017-10-04 UPDATED
    Linux (64 bits) tar.gz 10.1.0-beta 2017-10-04 UPDATED

    my System :



    - Distribution: Debian | Release: 9.8 | Codename: wheezy
    - i-MSCP Version: i-MSCP 1.5.3| Build: 20181208 | Codename: Ennio Morricone
    - Plugins installed: ClamAV (v. 1.2.1), Mailgraph (v 1.1.1), OpenDKIM (v 1.1.3), PanelRedirect (v 1.1.5) & SpamAssassin (v 1.1.1)
    - LetsEncrypt (v3.3.0), PhpSwitcher (v 4.0.1), RoundcubePlugins (v 2.0.1)

  • Linux (32 Bit) tar.gz Reißverschluss Uploader 10.0.4 2017-11-01 AKTUALISIERT
    Linux (64 Bit) tar.gz Reißverschluss Uploader 10.0.4 2017-11-01 AKTUALISIERT

    my System :



    - Distribution: Debian | Release: 9.8 | Codename: wheezy
    - i-MSCP Version: i-MSCP 1.5.3| Build: 20181208 | Codename: Ennio Morricone
    - Plugins installed: ClamAV (v. 1.2.1), Mailgraph (v 1.1.1), OpenDKIM (v 1.1.3), PanelRedirect (v 1.1.5) & SpamAssassin (v 1.1.1)
    - LetsEncrypt (v3.3.0), PhpSwitcher (v 4.0.1), RoundcubePlugins (v 2.0.1)

  • Linux (32 bits) tar.gz zip Uploader 10.1.0 2017-12-14 UPDATED
    Linux (64 bits) tar.gz zip Uploader 10.1.0 2017-12-14 UPDATED


    Inclusiv php 7.2 beta

    my System :



    - Distribution: Debian | Release: 9.8 | Codename: wheezy
    - i-MSCP Version: i-MSCP 1.5.3| Build: 20181208 | Codename: Ennio Morricone
    - Plugins installed: ClamAV (v. 1.2.1), Mailgraph (v 1.1.1), OpenDKIM (v 1.1.3), PanelRedirect (v 1.1.5) & SpamAssassin (v 1.1.1)
    - LetsEncrypt (v3.3.0), PhpSwitcher (v 4.0.1), RoundcubePlugins (v 2.0.1)

  • Important changes:
    A bug prevented that ioncube was getting an update. So the new version does remove old package and folder before downloading it again. Reason is, that by downloading it the system appends ".1", ".2", ... and so on an that was the reason why old version were used. The new version also included some fixes and 7.2 preperation (as soon as it is here it should work) - check out the changelog area.

  • Linux (32 bits) tar.gz zip 10.2.0 2018-03-06 UPDATED
    Linux (64 bits) tar.gz zip 10.2.0 2018-03-06 UPDATED

    my System :



    - Distribution: Debian | Release: 9.8 | Codename: wheezy
    - i-MSCP Version: i-MSCP 1.5.3| Build: 20181208 | Codename: Ennio Morricone
    - Plugins installed: ClamAV (v. 1.2.1), Mailgraph (v 1.1.1), OpenDKIM (v 1.1.3), PanelRedirect (v 1.1.5) & SpamAssassin (v 1.1.1)
    - LetsEncrypt (v3.3.0), PhpSwitcher (v 4.0.1), RoundcubePlugins (v 2.0.1)