From 8649c95354ceb0ac80c9b223c23d8aa084b4cc3d Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 22 Dec 2021 11:20:56 +0100 Subject: F35 now have 7.4 as module --- wizard/index.php | 33 +++++++++++++++++++++++---------- 1 file changed, 23 insertions(+), 10 deletions(-) (limited to 'wizard') diff --git a/wizard/index.php b/wizard/index.php index 3fadbad6..558fa84c 100644 --- a/wizard/index.php +++ b/wizard/index.php @@ -37,6 +37,17 @@ $osmin = [ 'Fedora 34' => '5.6', 'Fedora 33' => '5.6', ]; +$osminbase = [ + 'RHEL 9' => '7.4', + 'RHEL 8' => '5.6', + 'RHEL 7' => '5.4', + 'CentOS 9' => '7.4', + 'CentOS 8' => '5.6', + 'CentOS 7' => '5.4', + 'Fedora 35' => '7.4', + 'Fedora 34' => '7.4', + 'Fedora 33' => '7.4', +]; $osmax = [ 'RHEL 9' => '8.1', 'RHEL 8' => '8.1', @@ -183,7 +194,7 @@ if ($php && $os) { $os, is_array($osvers[$os]) ? implode(', ', $osvers[$os]) : $osvers[$os] ); - if (version_compare($php, '5.6', '<')) { + if (version_compare($php, '7.4', '<')) { printf("
  • WARNING, PHP version %s have reached its eod of life, despite packages have security fix, you should consider a maintained version.

  • ", $php); } } @@ -235,11 +246,7 @@ if ($php && $os && $type && !$err) { if ($type == 'base') { printf("
  • You want a single version which means replacing base packages from the distribution

  • "); - if ($dist != 'Fedora' && $ver >= 9) { - $min = $osmin[$os]; - } else { - $min = (is_array($osvers[$os]) ? $osvers[$os][0] : $osvers[$os]); - } + $min = $osminbase[$os]; printf("
  • Packages have the same name than the base repository, ie php-*

  • "); @@ -265,10 +272,12 @@ if ($php && $os && $type && !$err) { printf("
        dnf config-manager --set-enabled remi

    "); } - if ($dist == 'Fedora' || $yum == 'yum') { + //if ($dist == 'Fedora' || $yum == 'yum') { + if ($yum == 'yum') { printf("
  • PHP version %s packages are available for %s in %s repository

  • ", $php, $os, $repo); printf("
  • Command to enable the repository:"); } + /* if ($dist == 'Fedora') { printf("
        dnf config-manager --set-enabled %s

  • ", $repo); if ($mod) { @@ -276,7 +285,9 @@ if ($php && $os && $type && !$err) { printf("
        dnf config-manager --set-disabled remi-modular

    "); printf("
  • Alternatively, you may prefer the modern way, by enabling the module stream for $php:"); } - } else if ($yum == 'yum') { // EL-6, 7 + } else + */ + if ($yum == 'yum') { // EL-6, 7 printf("
        yum-config-manager --disable 'remi-php*'");
                     printf(   "\n    yum-config-manager --enable   %s

  • ", $repo); @@ -333,12 +344,14 @@ if ($php && $os && $type && !$err) { if ($dist=='Fedora') { $repo = 'remi'; //($phpvers[$php] ? 'remi' : 'remi-test'); // Dev version + printf("
  • Some common dependencies are available in remi repository, which need to be enabled"); + printf("
        dnf config-manager --set-enabled remi

  • "); printf("
  • The %s collection is available in the $repo repository

  • ", $scl); printf("
  • Command to install:"); - printf("
        $yum --enablerepo=$repo install %s
    ", $scl); + printf("
        $yum install %s
    ", $scl); printf("

  • "); printf("
  • Command to install additional packages:"); - printf("
        $yum --enablerepo=$repo install %s-php-xxx
    ", $scl); + printf("
        $yum install %s-php-xxx
    ", $scl); } else { $repo = 'remi-safe'; //($phpvers[$php] ? 'remi-safe' : 'remi-test'); // Dev version $opt = ""; //($phpvers[$php] ? '' : '--enablerepo=remi-test'); // Dev version -- cgit