From 862ceb2f621726507bc06ee3bb07cb9a426cf28d Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 17 Jan 2017 07:11:40 +0100 Subject: Wizard: testing packages --- index.html | 2 +- wizard/index.php | 21 ++++++++++++++++----- 2 files changed, 17 insertions(+), 6 deletions(-) diff --git a/index.html b/index.html index 69d777a6..cbdccd43 100644 --- a/index.html +++ b/index.html @@ -55,7 +55,7 @@

-->

Next year Web hosting budget, until January 2018: - 93% 93% of 500€. + 98% 98% of 500€. diff --git a/wizard/index.php b/wizard/index.php index 8d4b6db6..0c99e08f 100644 --- a/wizard/index.php +++ b/wizard/index.php @@ -212,9 +212,17 @@ if ($php && $os && $type && !$err) { printf("
  • Command to upgrade (the repository only provides PHP):"); printf("
        $yum update
    "); printf("

  • "); - printf("
  • Command to install additional packages:"); + + printf("
  • Command to install additional packages:"); printf("
        $yum install php-xxx
    "); printf("

  • "); + + if ($ver >= 7) { + printf("
  • Command to install testing packages:"); + printf("
        $yum --enablerepo=%s-test install php-xxx
    ", $phpvers[$php]); + printf("

  • "); + } + printf("
  • Command to check the installed version and available extensions:"); printf("
        php --version\n    php --modules
    "); printf("

  • "); @@ -225,23 +233,26 @@ if ($php && $os && $type && !$err) { printf("
  • You want multiple versions which means using a Software Collection

  • "); $scl='php'.str_replace('.', '', $php); - if ($dist=='Fedora' || version_compare($php, '5.6', '<')) { + if ($dist=='Fedora') { printf("
  • The %s collection is available in the remi repository

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

  • "); printf("
  • Command to install additional packages:"); printf("
        $yum --enablerepo=remi install %s-php-xxx
    ", $scl); - printf("

  • "); } else { printf("
  • The %s collection is available in the remi-safe repository

  • ", $scl); printf("
  • Command to install:"); printf("
        $yum install %s
    ", $scl); printf("

  • "); - printf("
  • Command to install additional packages:"); + printf("
  • Command to install additional packages:"); printf("
        $yum install %s-php-xxx
    ", $scl); - printf("

  • "); } + printf("
    "); + printf("
  • Command to install testing packages:"); + printf("
        $yum --enablerepo=remi-test install %s-php-xxx
    ", $scl); + printf("

  • "); + printf("
  • Command to check the installed version and available extensions:"); printf("
        %s --version\n    %s --modules
    ", $scl, $scl); printf("

  • "); -- cgit