Añadiendo php 7.4 a phpswitcher

  • Al intentar instalar php 7.4 al phpswitcher me tira el siguiente error:

    perl /var/www/imscp/gui/plugins/PhpSwitcher/PhpCompiler/php_compiler.pl --register 7.4

    [ERROR] Couldn't find the PHP 7.4 sources at https://downloads.php.net/~derick/php-7.4.0RC4.tar.gz - Skipping

    [INFO] Registering PHP versions in the PhpSwitcher plugin...

    [INFO] The compiled PHP 7.4 version hasn't been found. Skipping...

    La instalé una vez pero no terminó de funcionar, cada vez que la selecciono en un dominio me tira error 503, así que la quite pero tampoco puedo volver a ponerla

  • Edit /var/www/imscp/gui/plugins/PhpSwitcher/PhpCompiler/php_compiler.pl, look for:

    1. '7.4' => [ # End of life: December 2022 - Unreleased yet
    2. '7.4.0RC4', 'https://downloads.php.net/~derick/php-7.4.0RC4.tar.gz'
    3. ]

    and replace by something like this:

    1. '7.4' => '7.4.29'

    or try the "-f" switch (force last of the php version)

    caution: maybe the newer version won't compile because some patches delivered with the (old) phpswitcher do not fit anymore... you can try-and-error to get the patches done... or maybe try an oldeer php 7.4 (write

    1. '7.4' => '7.4.10'

    or so in the code...