summaryrefslogtreecommitdiffstats
path: root/wizard/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'wizard/index.php')
-rw-r--r--wizard/index.php33
1 files changed, 23 insertions, 10 deletions
diff --git a/wizard/index.php b/wizard/index.php
index e23a9ea5..991f28c9 100644
--- a/wizard/index.php
+++ b/wizard/index.php
@@ -54,6 +54,7 @@ $types = [
'scl' => 'Multiple versions',
];
$phpvers = [
+ '7.2' => false,
'7.1' => 'remi-php71',
'7.0' => 'remi-php70',
'5.6' => 'remi-php56',
@@ -61,6 +62,7 @@ $phpvers = [
'5.4' => 'remi-php54',
];
$phpname = [
+ '7.2' => '7.2.0-dev (development version, not ready for production)',
'7.1' => '7.1.4 (active support until Dec 2018)',
'7.0' => '7.0.18 (active support until Dec 2017)',
'5.6' => '5.6.30 (security only support until Dec 2018)',
@@ -135,7 +137,7 @@ if ($os) {
printf("<li><b>%s</b> have reached its <b>end of life</b>, upgrade is strongly recommended.</li><br />", $os);
}
if (($dist == 'Fedora' && $ver>=FC_DEV) || ($dist != 'Fedora' && $ver>=EL_DEV)) {
- printf("<li><b>%s</b> is a development version, not ready for production.</li><br />", $os);
+ printf("<li><b>WARNING: %s</b> is a <b>development</b> version, not ready for production.</li><br />", $os);
}
}
if ($php && $os) {
@@ -220,6 +222,7 @@ if ($php && $os && $type && !$err) {
}
$counter++;
@file_put_contents(COUNTER, "$counter\n");
+
} else {
printf("<li>You want <b>multiple versions </b> which means using a <a href='https://www.softwarecollections.org/en/'>Software Collection</a></li><br />");
$scl='php'.str_replace('.', '', $php);
@@ -227,25 +230,35 @@ if ($php && $os && $type && !$err) {
if (version_compare($php, $osmin[$os], '<')) {
printf("<li>Sorry, but PHP version older than <b>%s</b> are not available for <b>%s</b>.</li><br />", $osmin[$os], $os);
} else {
+ if (!$phpvers[$php]) {
+ printf("<li><b>WARNING</b>: PHP version <b>%s</b> is a <b>development</b> version, not ready for production.</li><br />", $php);
+ }
if ($dist=='Fedora') {
- printf("<li>The <b>%s</b> collection is available in the <b>remi</b> repository</li><br />", $scl);
+ $repo = ($phpvers[$php] ? 'remi' : 'remi-test'); // Dev version
+
+ printf("<li>The <b>%s</b> collection is available in the <b>$repo</b> repository</li><br />", $scl);
printf("<li>Command to install:");
- printf("<pre> $yum --enablerepo=remi install %s</pre>", $scl);
+ printf("<pre> $yum --enablerepo=$repo install %s</pre>", $scl);
printf("</li><br />");
printf("<li>Command to install additional packages:");
- printf("<pre> $yum --enablerepo=remi install %s-php-xxx</pre>", $scl);
+ printf("<pre> $yum --enablerepo=$repo install %s-php-xxx</pre>", $scl);
} else {
- printf("<li>The <b>%s</b> collection is available in the <b>remi-safe</b> repository</li><br />", $scl);
+ $repo = ($phpvers[$php] ? 'remi-safe' : 'remi-test'); // Dev version
+ $opt = ($phpvers[$php] ? '' : '--enablerepo=remi-test'); // Dev version
+
+ printf("<li>The <b>%s</b> collection is available in the <b>$repo</b> repository</li><br />", $scl);
printf("<li>Command to install:");
- printf("<pre> $yum install %s</pre>", $scl);
+ printf("<pre> $yum $opt install %s</pre>", $scl);
printf("</li><br />");
printf("<li>Command to install <b>additional</b> packages:");
- printf("<pre> $yum install %s-php-xxx</pre>", $scl);
+ printf("<pre> $yum $opt install %s-php-xxx</pre>", $scl);
}
printf("</li><br />");
- printf("<li>Command to install <b>testing</b> packages:");
- printf("<pre> $yum --enablerepo=remi-test install %s-php-xxx</pre>", $scl);
- printf("</li><br />");
+ if ($phpvers[$php]) {
+ printf("<li>Command to install <b>testing</b> packages:");
+ printf("<pre> $yum --enablerepo=remi-test install %s-php-xxx</pre>", $scl);
+ printf("</li><br />");
+ }
printf("<li>Command to check the installed version and available extensions:");
printf("<pre> %s --version\n %s --modules</pre>", $scl, $scl);