I’ve been trying to install both php 7 and 5.6 at the same time.
Fedora 27, nginx.
But note: I don’t need applications in nginx to be able to run both. I’m perfectly comfortable with just making it an either-or. It’s a development server sitting on my desk next to me, not public-facing.
So, as in- if I want to switch to 7, I just, like uncomment a couple lines in a config file an restart nginx.
Hell, I don’t even need them to run in module mode now that I think about it- the files can just use the # bang line. Doesn’t matter.
But the main problem is just getting them both installed with dnf.
I’m assuming 7 will install fine. It’s the 5.6 I’m having touble with.
I downloaded the remi repositories (https://rpms.remirepo.net/) and enabled them, but it still doesn’t recognize the existence of php56. Example:
[bog@localhost ~]$ sudo dnf install http://rpms.remirepo.net/fedora/remi-release-27.rpm
Last metadata expiration check: 0:04:08 ago on Wed 25 Apr 2018 02:16:46 PM EDT.
remi-release-27.rpm 51 kB/s | 18 kB 00:00
Package remi-release-27-2.fc27.remi.noarch is already installed, skipping.
Dependencies resolved.
Nothing to do.
Complete!
[bog@localhost ~]$ sudo dnf --enablerepo=remi install php56
Last metadata expiration check: 0:04:37 ago on Wed 25 Apr 2018 02:16:46 PM EDT.
No match for argument: php56
Error: Unable to find a match
Here’s what I have in the config file for dnf:
[remi]
name=Remi's RPM repository - Fedora $releasever - $basearch
#baseurl=http://rpms.remirepo.net/fedora/$releasever/remi/$basearch/
mirrorlist=http://cdn.remirepo.net/fedora/$releasever/remi/mirror
enabled=1
gpgcheck=1
failovermethod=roundrobin
fastestmirror=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi2017
(I’ve also tried it with uncommenting the baseurl line, no good.
I also tried using “php56-php” as the name,
[bog@localhost ~]$ sudo dnf install php56-php
Last metadata expiration check: 0:00:19 ago on Wed 25 Apr 2018 02:23:06 PM EDT.
No match for argument: php56-php
Error: Unable to find a match
So, help!
Thanks,