How to new php version? Error.

  • Hy my imscp 1.5.3 Build: 20180516


    php switcher 5.0.5

    vps server ubuntu 16.04


    installed versions php : 5.3, 5.4, 5.5, 5.6, 7.0



    And problem install php 7.2 and 7.4


    /var/www/imscp/gui/plugins/PhpSwitcher/PhpCompiler# perl php_compiler.pl --auto-setup 7.2


    please help thanks.



    /var/www/imscp/gui/plugins/PhpSwitcher/PhpCompiler# perl php_compiler --auto-setup 7.1 7.2

    Can't open perl script "php_compiler": No such file or directory

  • First : Update your build.

    Even if there is no more development, the latest build is 2018120800.


    Second : where did you find this "auto-setup" parameter ? this doesn't exist.


    The end of your post, you forget the extension of the file... .pl so this is normal.



    Just read the wiki to use the packaged version instead of the compiled one (faster and less issues).


  • Onto how much danger free?

    I don't want to do that if everything is elszálna on the server.

  • This is why backups exists.


    On another side, if you never update anything, you take a bigger risk of a security breach (where you could also lost everything, even more).



    If you don't want to take any risks, don't host a server by yourself ;)

  • Not install build 800:


    https://github.com/i-MSCP/imscp/blob/1.5.x/docs/UPGRADE.md



    /usr/local/src/imscp-1.5.3-2018120800/


    Code
    1. perl imscp-autoinstall -d



  • I see two main things there :


    1st :

    Code
    1. W: GPG error: https://dl.yarnpkg.com/debian stable InRelease: The following signatures were invalid: KEYEXPIRED 1507181400 KEYEXPIRED 1546376218 KEYEXPIRED 1546372003 KEYEXPIRED 1580619281 KEYEXPIRED 1580607983 KEYEXPIRED 1580619281 KEYEXPIRED 1507181400 KEYEXPIRED 1546376218 KEYEXPIRED 1546372003 KEYEXPIRED 1580619281 KEYEXPIRED 1580607983 KEYEXPIRED 1507181400 KEYEXPIRED 1546376218 KEYEXPIRED 1546372003 KEYEXPIRED 1580619281 KEYEXPIRED 1580607983


    As you are under Ubuntu, I don't know why this thing would look for a Debian repository.

    But anyway, that's not the concern of this message which say that the key stored on your server and used to validate the repository has expired.


    This is part of the issue, which seems to rely clearly there :


    Code
    1. [ERROR] autoinstaller::Adapter::DebianAdapter::_updatePackagesIndex: Couldn't update package index from remote repository:


    I short, you have some repositories that are unable to "update", as such, the installer fail.


    I suppose that even the old-man "apt-get update" will just fail the same way.

    Check your sources used for Aptitude, as some may just be broken (and I don't know what this "yarnpkg" come from)

  • Thanks not problem update:




    [ERROR] iMSCP::Composer::_getComposer: Couldn't get composer.phar version at /usr/local/src/imscp-1.5.3-2018120800/engine/PerlLib/iMSCP/Composer.pm line 203.


    [ERROR] autoinstaller::Functions::install: An error occurred while performing installation steps





    /usr/local/src/imscp-1.5.3-2018120800/engine/PerlLib/iMSCP/Composer.pm line 203.

    Code
    1. ( my ( $version ) = $stdout =~ /^Composer\s+version\s+(\d\.\d\.\d)\s+/ ) or die( "Couldn't get composer.phar version" );


    sub _checkComposerVersion

    {

    my ( $self ) = @_;


    return FALSE unless -x "$main::imscpConfig{'IMSCP_HOMEDIR'}/composer.phar";


    my ( $stdout, $stderr );

    execute(

    sprintf( $self->{'su_cmd_pattern'}, escapeShell( "$self->{'php_cmd_prefix'} $main::imscpConfig{'IMSCP_HOMEDIR'}/composer.phar --version" )),

    \$stdout,

    \$stderr

    ) == 0 or die( $stderr || 'Unknown error' );

    debug( $stdout ) if $stdout;


    ( my ( $version ) = $stdout =~ /^Composer\s+version\s+(\d\.\d\.\d)\s+/ ) or die( "Couldn't get composer.phar version" );


    return FALSE if version->parse( $version ) != version->parse( $self->{'composer_version'} );


    TRUE;

    }



    8drFBkH

  • Thanks i found it,but does not lead to a solution. I tried to delete it the composer, but he did not manage to solve the problem.


    composer -V

    PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20131226/memcache.so' - /usr/lib/php/20131226/memcache.so: undefined symbol: mmc_queue_remove in Unknown on line 0

    PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20131226/memcached.so' - /usr/lib/php/20131226/memcached.so: undefined symbol: php_msgpack_serialize in Unknown on line 0

    Do not run Composer as root/super user! See https://getcomposer.org/root for details

    Continue as root/super user [yes]? yes

    Composer version 2.1.3 2021-06-09 16:31:20

  • AAAAAA succes: