Posts by Nuxwin

    101host


    Good morning,


    Sorry for late answer. You can find the instructions below but note that I'll not provide any support for such manual changes if you do something wrong.


    Edit the /var/www/imscp/gui/plugins/PhpSwitcher/backend/PhpSwitcher.pm file and replace the following lines:

    926

    Perl
    1. if ( $rs || $stdout !~ /PHP\s+(\d+)\.(\d+)\.(\d+)\s+\(cgi-fcgi\)/ ) {

    by

    Perl
    1. if ( $rs || $stdout !~ /PHP\s+(\d+)\.(\d+)\.(\d+).*?\s+\(cgi-fcgi\)/ ) {

    948

    Perl
    1. if ( $rs || $stdout !~ /PHP\s+(\d+)\.(\d+)\.(\d+)\s+\(fpm-fcgi\)/ ) {

    by

    Perl
    1. if ( $rs || $stdout !~ /PHP\s+(\d+)\.(\d+)\.(\d+).*?\s+\(fpm-fcgi\)/ ) {

    Once done, create the /etc/imscp/listeners.d/10_php_keep_packages.pl file with the following content:


    Then, look at the following howto to setup additional PHP versions from Ondřej Surý repository: https://gist.github.com/nuxwin…0ad81680521db5e445587af22


    Bear in mind that in the current PhpSwitcher plugin version (4.0.3) a psw<version>-fpm service will be created, even for Ondřej Surý PHP versions. So, basically, you SHOULD disable the default php<version>-fpm service that is provided by the package. The current version of the plugin will only act on the psw<version>-fpm service. Assuming systemd as init system, you can disable the default provided service as follows:

    Code
    1. # systemctl stop php<version>-fpm
    2. # systemctl disable php<version>-fpm
    3. # systemctl mask php<version>-fpm


    You need to do that only for additional PHP versions, that is, those setup for the PhpSwitcher plugin. Don't do that for the default PHP version which you selected through i-MSCP installer. In the coming PhpSwitcher version (5.0.0), the plugin will make use of the default service as provided by the package as it will be able to differentiate self-compiled versions of packaged versions.


    Regarding Ondřej Surý packaged PHP versions: You need manage these versions as usually. PHP extensions need to be installed through APT and can be enabled/disabled using the php(en|dis)mod tool. If you do so, don't forget to restart the psw<version>-fpm service once after.

    I would go further and drop anything older than 5.6 - 5.4 is already a critical security problem and should not be supported anymore, 5.6 is officially old and outdated before the year is out - even supporting that will provide problems to the server provider, the customer and other users of the internet (hacked CMS sending spam any many more scenarios).

    I cannot. There are still some ISPs asking me to keep support for PHP 5.3. Anyway hacked CMS most of time has nothing to do with the PHP version in use. Bugs are generally in the CMS itself. Note that for PHP versions 5.3 up to 5.6, I'm still backporting security fixes when needed.

    Dear community,


    Support for both PHP 4.4 and PHP 5.2 versions has been provided since the first version of the PhpSwitcher plugin, even through those versions were already not longer supported by upstream PHP team.


    As time goes on, it become really hard for us to support these versions that are not longer compatible with various development libraries provided by newest OS versions. Also, these versions don't provide the PHP FastCGI process Manager (fpm) and so, they are not usable with the i-MSCP apache2/fpm server implementation which should be your first choice.


    As a reminder:

    • PHP 4.4 is EOL since 7 August 2008 (~ 10 years ago)
    • PHP 5.2 is EOL since 6 January 2011 (~ 8 years ago)

    We think that it's time to drop support for these "prehistorical" versions as nobody should rely on them. However because we care about our customers, we open this poll to let's you choose.


    Thank for your participation.

    Dear community,


    A new version of the DomainAutoApproval plugin has just been released:



    Version compatible with i-MSCP Serie 1.3.x, 1.4.x and 1.5.x


    CHANGELOG

    • Fixed: Fatal error: Call to undefined function client_mail_add_default_accounts() - iMSCP 1.5.x
    • Renamed: 'user_accounts' parameter to 'client_accounts'
    • Renamed: 'ignored_domain' parameter to 'ignored_domain_aliases'

    Thank you for using our plugins.

    101host


    I'll release the plugin in few hours. I've finally updated all patches for self-compiled versions and also added support for PHP 7.2, 7.3... To resume, with next version, you'll be able to:


    If you use the Fcgid i-MSCP server implementation (not recommended):

    1. Setup PHP 4.4, 5.2, 5.3, 5.4, 5.5, 5.6, 7.0, 7.1, 7.2, 7.3 (self-compiled versions)
    2. Setup PHP 5.6, 7.0, 7.1, 7.2, 7.3, 7.x ... (packaged PHP versions)

    If you use the FPM i-MSCP server implementation (recommended):

    1. Setup PHP 5.3, 5.4, 5.5, 5.6, 7.0, 7.1, 7.2, 7.3 (self-compiled versions)
    2. Setup PHP 5.6, 7.0, 7.1, 7.2, 7.3, 7.x ... (packaged PHP versions)

    And of course, in both cases, I recommend usage of packaged versions over self-compiled versions...


    Sorry for the delay.