php7 on rhel7.4
Question: How do I get php7x?
"yum search php7" does not show up after the following:
I reinstalled rhel-server-7.4-x86_64-dvd.iso on a paid subscription.
And authenticated with redhat .
We have an application we run using php and would like to install php7x
I am currently testing the install with rhel-7.4 on a VM. (VMWare)
I am following these instructions:
https://developers.redhat.com/products/softwarecollections/hello-world/#fndtn-php
and have enabled the following with the following command
subscription-manager repos --enable rhel-server-rhscl-7-beta-rpms
Repository 'rhel-server-rhscl-7-beta-rpms' is enabled for this system.
yum search php7
does not show up
subscription-manager repos --list | egrep rhscl
Repo ID: rhel-server-rhscl-7-beta-source-rpms
Repo ID: rhel-server-rhscl-7-beta-debug-rpms
Repo ID: rhel-server-rhscl-7-beta-rpms
No luck
notes:
subscription-manager attach --auto
All installed products are covered by valid entitlements. No need to update subscriptions at this time.
Installed Product Current Status:
Product Name: Red Hat Enterprise Linux Server
Status: Subscribed
Responses
Hi Craig,
Execute these commands to enable the RHSCL repo which contains the packages :
sudo subscription-manager repos --enable rhel-7-server-extras-rpmssudo subscription-manager repos --enable rhel-7-server-optional-rpmssudo subscription-manager repos --enable rhel-server-rhscl-7-rpms
Then update the software sources : sudo yum update and install the packages. :)
Regards,
Christian
Hi Craig,
There seems to be something wrong with the attachment of your subscription, so refresh everything :
sudo subscription-manager remove --allsudo subscription-manager unregistersudo subscription-manager clean
sudo subscription-manager registersudo subscription-manager refreshsudo subscription-manager attach --auto
sudo subscription-manager repos --enable rhel-7-server-extras-rpmssudo subscription-manager repos --enable rhel-7-server-optional-rpmssudo subscription-manager repos --enable rhel-server-rhscl-7-rpms
sudo yum clean allsudo rm -rf /var/cache/yumsudo yum update
Regards,
Christian
All, I know this is an old thread but I wanted to pass it on to the community. So, I have through my University the RHEL Academic version with Self-Support, the RHEL Academic version does not have access to all of the repos a standard version does. Please see below from the RedHat support;
"As per your queries, I would like to inform you that, - None of your Self Support subscriptions provides access to RHSCL Repositories for GA Release version of OS. "
I was able to get the php7x by following the recommended configurations provided to me by support.
# subscription-manager attach --pool=8a85f98c635f699f016374b1eabb0c06
# subscription-manager repos --enable=rhel-server-rhscl-7-rpms
# yum clean all
# yum install rh-php70
# scl enable rh-php70 bash
Hi Craig,
Please check whether the repositories are enabled : sudo subscription-manager repos --list-enabled
As you can see here in the Red Hat Package Browser, the rh-php70 and rh-php71 packages are available. :)
Regards,
Christian
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
