summaryrefslogtreecommitdiffstats
path: root/wizard/index.php
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2016-01-08 16:02:55 +0100
committerRemi Collet <fedora@famillecollet.com>2016-01-08 16:02:55 +0100
commit1444546175a49be38ba505dc9130d2c4e862e50f (patch)
tree38093dbd3761f550d67f3701a20693339df305c4 /wizard/index.php
parent2bdb03539a1ea0468437c8ae45315df217189d0e (diff)
Wizard: tweak for EL-5, thanks @drdol
Diffstat (limited to 'wizard/index.php')
-rw-r--r--wizard/index.php26
1 files changed, 19 insertions, 7 deletions
diff --git a/wizard/index.php b/wizard/index.php
index 80a83e5c..e412553f 100644
--- a/wizard/index.php
+++ b/wizard/index.php
@@ -119,9 +119,17 @@ if ($php && $os && $type && !$err) {
} else {
$yum = 'yum';
printf("<li>Command to install the EPEL repository configuration package:");
- printf("<pre> $yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-%d.noarch.rpm</pre>", $ver);
- printf("</li><br /><li>Command to install the Remi repository configuration package:");
- printf("<pre> $yum install http://rpms.remirepo.net/enterprise/remi-release-%d.rpm</pre>", $ver);
+ if ($ver < 6) {
+ printf("<pre> wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-%d.noarch.rpm\n", $ver);
+ printf(" $yum install epel-release-latest-%d.noarch.rpm\n", $ver);
+ printf("</li><br /><li>Command to install the Remi repository configuration package:");
+ printf("<pre> wget http://rpms.remirepo.net/enterprise/remi-release-%d.rpm\n", $ver);
+ printf(" $yum install http://rpms.remirepo.net/enterprise/remi-release-%d.rpm</pre>", $ver);
+ } else {
+ printf("<pre> $yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-%d.noarch.rpm</pre>", $ver);
+ printf("</li><br /><li>Command to install the Remi repository configuration package:");
+ printf("<pre> $yum install http://rpms.remirepo.net/enterprise/remi-release-%d.rpm</pre>", $ver);
+ }
printf("</li><br />");
if ($dist == 'RHEL') {
printf("<li>On <b>RHEL</b> you (probably) need to enable the <b>optional channel</b> for some dependencies.</li><br />");
@@ -151,11 +159,15 @@ if ($php && $os && $type && !$err) {
} else {
printf("<li>PHP version <b>%s</b> packages are available for <b>%s</b> in <b>%s</b> repository</li><br />", $php, $os, $phpvers[$php]);
- printf("<li>Command to enable the repository:");
- if ($dist == 'Fedora') {
- printf("<pre> dnf config-manager --enable %s</pre>", $phpvers[$php]);
+ if ($ver < 6) {
+ printf("<li>You have to enable the repository by setting <b>enabled=1</b> in the [%s] section of /etc/yum.repos.d/remi.repo", $phpvers[$php]);
} else {
- printf("<pre> yum-config-manager --enable %s</pre>", $phpvers[$php]);
+ printf("<li>Command to enable the repository:");
+ if ($dist == 'Fedora') {
+ printf("<pre> dnf config-manager --enable %s</pre>", $phpvers[$php]);
+ } else {
+ printf("<pre> yum-config-manager --enable %s</pre>", $phpvers[$php]);
+ }
}
printf("</li><br />");
printf("<li>Command to upgrade (the repository only provides PHP):");