Posts by UncleSam

    @UncleSam


    Good idea. Problem: If the panel is down, you cannot click on that button. Think of a problem involving imscp_panel service itself...

    For this scenareo you could deploy some global binary on installation/update which is printing the information using commandline (as far as possible) e.g. /usr/bin/imscp_support_information or /usr/sbin/imscp_support_information


    (It could search for I-MSCP config, connect to mysql/mariadb/... and gather all information about i-mscp there. And of course write output of service --version commands :-))
    (You could then also gather the last X log entries of some dependend log files and include them :-) )
    (If this solution should be safe in any way maybe you should not gather the information using service connection - what if the service is unable to start?)

    Hello,


    i think UncleSam would like to include it here in the forum not in the imscp panel! ;-)


    Best regards.

    No I would love to have it inside the I-MSCP panel - because the panel has all information which are needed for a fast support ticket.

    Hello,


    to provide you all the needed support information you need it would be great to have something like a "generate support information" button in the panel which generates a forum text (something like a spoiler or so) with all information like:

    • Operating system
    • I-MSCP version, codename
    • Plugins (installed, activated)
    • ITK, Fcgid, PHP-FPM
    • Services used

    And maybe somthing like a post-template each user has only to fill like:

    • Environment details (with the information above)
    • Productt / Plugin / Part which is causing the troubles
    • Description of the problem
    • How to reproduce it
    • Logfiles

    Yes I tried twice but without any effects. (I also created an empty file at this directory)


    If i deactivate the script it also shows this error - so I think it is not updating anything at the moment.


    I double checked the paths - all of them are correct and other pages using this php version are running without any troubles.

    Hi there,


    after recompiling the sources I accidently deleted the current working folder while the services were running. So I recompiled every version and set the correct paths using the admin panel of PhpSwitcher. It worked for all domains except one. All I get is a save error to write a config in the old paths:


    iMSCP::File::save: Could not open /opt/phpswitcher/20161113225325/php5.6/etc/php-fpm.d/domain.tld.conf for writing: No such file or directory


    What to do to bring the domain up again?


    Codename: Horner
    OS: Ubuntu 16.04 LTS
    Apache type: php-fpm
    PhpSwitcher: 2.2.15

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


    (Maybe you should check my new post using precompiled php versions: PhpSwitcher with precompiled php packages)


    Changelog:


    What this script is doing:

    • Compile PHP Versions
    • Adding APCU support
    • Adding Imagick support
    • Adding Ioncube support
    • Enabling some default extensions

    Why I wrote this?

    Every time a new PhpSwitcher plugin or PHP version 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. It is maybe not the best script, but it is working for me :-).

    And all in all the basic was optimized by Starlight which has much better skills of doing batch scripts :-) big thx!


    Tested on:

    • Ubuntu 18.04 LTS (x64)
    • I-MSCP 1.5.3
    • PhpSwitcher 5.0.1
    • Tested PHP versions
      • 5.6.40
      • 7.1.33
      • 7.2.32
      • 7.3.20
      • 7.4.8

    PHP >= 7.4.8:

    Till php 7.4.7 the original code is working fine. If you plan to update to > 7.4.7 please read the Athar post. For me solution 2 without environment variable worked. PhpSwitcher and 7.4.8


    Not working:

    • Seems to work fine :-)

    How to use:

    First of all configure your PhpSwitcher and compile all needed versions (inclusive registration). Then modify the script as you like but make sure to remove php version parts you do not need. Then you can execute this script which is adding some features on top (please take a look into the script to see what it does!).


    Be careful: Installing some addons like APCu needs confirmations. So you cannot let it run in the background. (The script tries to not prompt you and do a default install for all addons.)

    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: A source code protection and licensing addon. Special thx to Speedy for his information!

    Imagick: I personaly need it for my nextcloud environment.


    How to update php versions in PhpSwitcher:

    Just edit the file /var/www/imscp/gui/plugins/PhpSwitcher/PhpCompiler/php_compiler.pl. There is a variable %VERSION_NAME_TO_VERSION_TINY_MAP. There you can define the versions you need or want. Here is an example how it could look like:


    Version 2.0 (optimized version of Starlight ) :


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