summaryrefslogtreecommitdiffstats
path: root/wizard/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'wizard/index.php')
-rw-r--r--wizard/index.php67
1 files changed, 41 insertions, 26 deletions
diff --git a/wizard/index.php b/wizard/index.php
index c77e7066..9b4751ca 100644
--- a/wizard/index.php
+++ b/wizard/index.php
@@ -26,9 +26,9 @@ $osvers = [
'EL 9' => ['8.0', '8.1', '8.2'],
'EL 8' => ['7.4', '8.0', '8.2'],
// 'EL 7' => '5.4',
+ 'Fedora 41' => '8.3',
'Fedora 40' => '8.3',
'Fedora 39' => '8.2',
- 'Fedora 38' => '8.2',
];
$osmin = [
'RHEL 9' => '7.4',
@@ -40,9 +40,9 @@ $osmin = [
'EL 9' => '7.4',
'EL 8' => '5.6',
// 'EL 7' => '5.4',
+ 'Fedora 41' => '7.4',
'Fedora 40' => '7.4',
'Fedora 39' => '7.4',
- 'Fedora 38' => '7.4',
];
$osminbase = [
'RHEL 9' => '7.4',
@@ -54,9 +54,9 @@ $osminbase = [
'EL 9' => '7.4',
'EL 8' => '7.2',
// 'EL 7' => '5.4',
+ 'Fedora 41' => '7.4',
'Fedora 40' => '7.4',
'Fedora 39' => '7.4',
- 'Fedora 38' => '7.4',
];
$osmax = [
'RHEL 9' => '8.4',
@@ -68,9 +68,9 @@ $osmax = [
'EL 9' => '8.4',
'EL 8' => '8.4',
// 'EL 7' => '8.3',
+ 'Fedora 41' => '8.4',
'Fedora 40' => '8.4',
'Fedora 39' => '8.4',
- 'Fedora 38' => '8.4',
];
$osname = [
':rhel' => 'Red Hat Enterprise Linux',
@@ -86,9 +86,9 @@ $osname = [
'EL 8' => 'EL 8',
// 'EL 7' => 'EL 7 (maintained until June 30, 2024)',
':fedora' => 'Fedora Linux',
+ 'Fedora 41' => 'Fedora 41 (development version)',
'Fedora 40' => 'Fedora 40',
'Fedora 39' => 'Fedora 39',
- 'Fedora 38' => 'Fedora 38 (End of Life since May 21, 2024)',
];
$types = [
'base' => 'Default / Single version (simplest way)',
@@ -118,10 +118,10 @@ $phpvers = [
];
$phpname = [
':devel' => 'Development version, not ready for production',
- '8.4' => '8.4.0alpha1',
+ '8.4' => '8.4.0beta5',
':stable' => 'Stable versions - usage recommended',
- '8.3' => '8.3.9 (active support until December 2025)',
- '8.2' => '8.2.21 (active support until December 2024)',
+ '8.3' => '8.3.11 (active support until December 2025)',
+ '8.2' => '8.2.23 (active support until December 2024)',
':secure' => 'Security only versions',
'8.1' => '8.1.29 (security only support until December 2025)',
':eol' => 'Deprecated versions - usage discouraged',
@@ -132,8 +132,6 @@ $phpname = [
'7.1' => '7.1.33 (no upstream support since December 2019)',
'7.0' => '7.0.33 (no upstream support since December 2018)',
'5.6' => '5.6.40 (no upstream support since January 2019)',
-// '5.5' => '5.5.38 (no upstream support since July 2016)',
-// '5.4' => '5.4.45 (no upstream support since September 2015)',
];
$php = (isset($_POST['php']) && isset($phpvers[$_POST['php']]) ? $_POST['php'] : false);
$os = (isset($_POST['os']) && isset($osvers[$_POST['os']]) ? $_POST['os'] : false);
@@ -277,14 +275,16 @@ if ($arch == 'ppc64le' || $arch == 's390x') {
if ($php && $os && $type && !$err) {
if ($dist == 'Fedora') {
- $mod = ($ver >= 29);
+ $mod = ($ver >= 29);
+ $dnf5 = ($ver >= 41);
$yum = 'dnf';
printf("<li>Command to install the Remi repository configuration package:");
printf("<pre> $yum install https://rpms.remirepo.net/fedora/remi-release-%d.rpm</pre>", $ver);
printf("</li><br />");
} else {
- $mod = ($ver >= 8);
+ $mod = ($ver >= 8);
+ $dnf5 = false;
if ($ver >= 8) {
$yum = 'dnf';
} else {
@@ -349,8 +349,8 @@ if ($php && $os && $type && !$err) {
printf("<li>Sorry, but PHP version older than <b>%s</b> are not available for <b>%s</b>, try multiple versions.</li><br />", $min, $os);
} else {
- if ($dist == 'Fedora' && version_compare($php, $tmp=(is_array($osvers[$os]) ? $osvers[$os][0] : $osvers[$os]), '=')) {
- $repo = 'remi';
+ if ($mod) {
+ $repo = 'remi-modular';
} else {
$repo = $phpvers[$php];
}
@@ -364,13 +364,32 @@ if ($php && $os && $type && !$err) {
if ($mod) {
printf("<li>PHP version <b>%s</b> packages are available for <b>%s</b> in <b>remi-modular</b> repository</li><br />", $php, $os);
- printf("<li>You have to enable the module stream for $php, and update the old version if installed:");
- printf("<pre> dnf module switch-to php:remi-%s</pre>", $php);
- printf("</li><br />");
-
- printf("<li>If no version is installed, command to <b>install</b> the php stream default profile:");
- printf("<pre> dnf module install php:remi-%s</pre>", $php);
- printf("</li><br />");
+ if ($dnf5) { // dnf v5 have minimal support for modularity https://bugzilla.redhat.com/2305955
+ printf("<li>You have to enable the module stream for $php:");
+ printf("<pre> dnf module reset php</pre>");
+ printf("<pre> dnf module enable php:remi-%s</pre>", $php);
+ printf("</li><br />");
+
+ printf("<li>If no version is installed, command to <b>install</b> the php stream default profile:");
+ printf("<pre> dnf install php-cli php-fpm php-mbstring php-xml</pre>");
+ printf("</li><br />");
+
+ printf("<li>If an older version is installed, command to <b>upgrade</b> the php stack:");
+ printf("<pre> dnf update</pre>");
+ printf("</li><br />");
+
+ printf("<li>If an newer version is installed, command to <b>downgrade</b> the php stack:");
+ printf("<pre> dnf downgrade php-common</pre>");
+ printf("</li><br />");
+ } else {
+ printf("<li>You have to enable the module stream for $php, and update the old version if installed:");
+ printf("<pre> dnf module switch-to php:remi-%s</pre>", $php);
+ printf("</li><br />");
+
+ printf("<li>If no version is installed, command to <b>install</b> the php stream default profile:");
+ printf("<pre> dnf module install php:remi-%s</pre>", $php);
+ printf("</li><br />");
+ }
} else {
printf("<li>PHP version <b>%s</b> packages are available for <b>%s</b> in <b>%s</b> repository</li><br />", $php, $os, $repo);
printf("<li>Command to enable the repository:");
@@ -396,11 +415,7 @@ if ($php && $os && $type && !$err) {
if (version_compare($php, '7.0', '>=')) {
printf("<li>Command to install <b>testing</b> packages:");
- if ($dist != 'Fedora' && $mod) {
- printf("<pre> $yum --enablerepo=remi-modular-test install php-xxx</pre>", $repo);
- } else {
- printf("<pre> $yum --enablerepo=%s-test install php-xxx</pre>", $repo);
- }
+ printf("<pre> $yum --enablerepo=%s-test install php-xxx</pre>", $repo);
printf("</li><br />");
}