Re: Installed php 7.1.33 but how to integrate it with Apache?

[email protected] ("ohaya via php-install")
Newsgroups php.install
Message-ID <[email protected]>
 These are what I was trying (from the RHEL info from the page you linked, but for PHP 7.1 (rather than 7.2)):

he steps are as follows to enable and install PHP 7.2 on RHEL 7 using yum command:
$ sudo yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
$ sudo yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
$ sudo yum install yum-utils
$ sudo subscription-manager repos --enable=rhel-7-server-optional-rpms
$ sudo yum-config-manager --enable remi-php72
$ sudo yum update
$ sudo yum search php72 | more
$ sudo yum install php72 php72-php-fpm php72-php-gd php72-php-json php72-php-mbstring php72-php-mysqlnd php72-php-xml php72-php-xmlrpc php72-php-opcache

I first run into that error at the "yum install yum-utils" step.

Jim

     On Saturday, October 9, 2021, 06:34:45 PM EDT, ohaya <[email protected]> wrote:  
 
  Hi,

Per my original post, I am on RHEL 7.9, rather than CENTOS.

I did see that that page had a separate set of steps for CENTOS vs. RHEL, and I am pretty sure that I did the ones for RHEL.

I will double check.

Thanks,
Jim


     On Saturday, October 9, 2021, 06:06:36 PM EDT, Richard <[email protected]> wrote:  
 
 

> Date: Saturday, October 09, 2021 21:47:15 +0000
> From: ohaya via php-install <[email protected]>
>
>  Also, when I run some of the commands, I am getting an error, e.g.:
> 
>  yum search php71 | more
> Loaded plugins: amazon-id, product-id, search-disabled-repos,
> subscription-  : manager
> 
> This system is not registered with an entitlement server. You can
> use subscription-manager to register.
> 
> https://rhui3.us-west-2.aws.ce.redhat.com/pulp/repos/content/dist/r
> hel/rhui/server/7/7Server/x86_64/rh-common/os/repodata/repomd.xml:
> [Errno 14] HTTPS Error 403 - Forbidden Trying other mirror.
> To address this issue please refer to the below knowledge base
> article
> 

You've enabled a redhat repository which won't work if you're running
centos. Did you, perhaps, go through the "How to install PHP 7.2 on
RHEL 7" steps in the install instructions in:

<https://www.cyberciti.biz/faq/how-to-install-php-7-2-on-centos-7-rhel-7/>

referenced in the previous message? Some of those instructions are
duplicates of the centos ones, but a couple are redhat/rhel specific
and should be undone.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.