Unable to upgrade PHP to 5.6.x

Latest response

sudo subscription-manager repos --enable rhel-server-rhscl-7-rpms
Fehler: »rhel-server-rhscl-7-rpms« stimmt nicht mit einer gültigen Repository-ID überein. Verwenden Sie »subscription-manager repos --list«, um gültige Repositorys anzuzeigen.

English:
Error: »rhel-server-rhscl-7-rpms« does not match with a valid Repository ID

My system: Red Hat Enterprise Linux Server release 7.5 (Maipo)

Responses

Hi Denis,

Please check whether your subscription includes the product Software Collections - either by executing the following command : sudo subscription-manager repos --list - or by visiting the portal : https://access.redhat.com/management/products.
If Software Collection (rhel-server-rhscl-7-rpms) is not listed, you may consider acquiring another suitable subscription. :)

Regards,
Christian

PHP 5.6 is an old version - the current rhscl versions are 7.0 and 7.1.

See the list here: https://access.redhat.com/support/policy/updates/rhscl

Please advise if PHP 5.6 is still the required version.

Hi Mike,

I think the main problem is that Denis or his organization is lacking of a valid subscription which includes RHSCL. :)

Regards,
Christian

I want to install a "DokuWiki" and the error message is: "Your PHP version 5.4.16 is lower than the needed 5.6.0." So I aimed at PHP 5.6

The subscrition we have: Red Hat Enterprise Linux Academic Server, Self-support (16 sockets) (Up to 1 guest) with Smart Management

I do not know if it includes the product Software Collections.

Rgds

Hi Denis,

PHP 5.4.16 is the latest version available in RHEL 7.5 ... and when sudo subscription-manager repos --list doesn't show rhel-server-rhscl-7-rpms as an available option, then your Red Hat Enterprise Linux Academic Server subscription does not include the product Software Collections. If your organization does not want to acquire a matching subscription, a workaround could be to install the (free) community edition CentOS 7,5 in a KVM virtual machine, install the newer PHP version using their Software Collections and perform the operation from within there. Hope this clarifies the situation ... :)

Regards,
Christian

I think the self-support licenses don't include rhscl. But I really do not understand self-support licenses. That's basically a CentOS then. You can use the centos software collections: https://www.softwarecollections.org

This is really disappointing. Release 7.5 is the latest stable. PHP 5.4.16 is really very old. MG noted above that PHP 7.0 and 7.1 are availlable. Where can I get it? Rgds

Hi Denis,

Those PHP versions are part of the Software Collections -> Red Hat Software Collections (as Mike already told
you) ... also, there is no reason to be disappointed, you simply need to attach a subscription which entitles you
to make use of Software Collections. If you can't or don't want to do that - I've suggested an alternative way to
achieve what you want. And please note that Red Hat mainly aims at businesses who rely on absolute stability.

Users who prefer to have more current or bleeding edge software, distributions such like fedora - the lab for
what later becomes RHEL - are available. It is up to you or your organization to decide which way to go ... :)

Regards,
Christian

We as a university computing center have to order our software from an appointed dealer. We asked them about how to aquire a subscription which entitles us to make use of Software Collections. No answer yet; I doubt they are capable. I have chosen RedHat exactly for the purpose of absolute stability and security. Someone mentioned the epel repository. Will this be a possibility? We mostly use Debian or scientific Linux. On our supercomputers (http://www.hlrs.de/home/) we have vendor supplied OS and software. The last choice will be to install the wiki on another computer although I was keen to work with RHEL to get some experience. Maybe someone of You can give me a hint how to get access to this Software Collections. Rgds Dieter

Hi Denis (or Dieter),

EPEL is not an option - but maybe the free no-cost RHEL Developer Edition could be an option.
Instructions -> Red Hat Developer Program - Getting Red Hat Enterprise Linux Developer Suite

Infos -> Frequently asked questions: no-cost Red Hat Enterprise Linux Developer Subscription
Please read the terms and conditions and the FAQ's, and check if you meet the requirements. :)

Regards,
Christian

Denis,

IIRC, I'm pretty sure we added Software Collections to RHEL Academic subscription. You do have to enable the channel, etc. - see here: https://developers.redhat.com/products/softwarecollections/hello-world/#fndtn-php

The subscriptions that support RHSCL are listed here: https://access.redhat.com/solutions/472793

And instructions to get PHP 5.6 are:

$ su -

subscription-manager repos --list | egrep rhscl subscription-manager repos --enable rhel-server-rhscl-7-rpms subscription-manager repos --enable rhel-7-server-optional-rpms yum install rh-php56

Hi Mike,

I (still) think something else is wrong, he wrote in his initial post "sudo subscription-manager repos --enable rhel-server-rhscl-
7-rpms ... Error: »rhel-server-rhscl-7-rpms« does not match with a valid Repository ID". Maybe the subscription isn't correctly
attached ? I suggest to un-register the system, re-register the system and re-attach the subscription - then enable all wanted
repositories, clean up yum and yum cache, run yum update. Hopefully afterwards he is able to install the desired PHP version.

Regards,
Christian

Ah Christian - I see (finally) your reference. A good suggestion by you.

Thank you, Mike ... let's hope that our suggestions help. :)

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.