Re: Installed php 7.1.33 but how to integrate it with Apache?
[email protected] ("ohaya via php-install") Sat, 9 Oct 2021 22:45:30 +0000 (UTC)
| Newsgroups | php.install |
|---|---|
| Message-ID | <[email protected]> |
------=_Part_596829_53151287.1633819530438
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
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 c=
ommand:
$ sudo yum install https://dl.fedoraproject.org/pub/epel/epel-release-lates=
t-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=3Drhel-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-ph=
p-mbstring php72-php-mysqlnd php72-php-xml php72-php-xmlrpc php72-php-opcac=
he
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: =20
=20
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, a=
nd 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 <inbound-lists-=
[email protected]> wrote: =20
=20
=20
> Date: Saturday, October 09, 2021 21:47:15 +0000
> From: ohaya via php-install <[email protected]>
>
>=C2=A0 Also, when I run some of the commands, I am getting an error, e.g.:
>=20
>=C2=A0 yum search php71 | more
> Loaded plugins: amazon-id, product-id, search-disabled-repos,
> subscription-=C2=A0 : manager
>=20
> This system is not registered with an entitlement server. You can
> use subscription-manager to register.
>=20
> 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
>=20
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.
=20
------=_Part_596829_53151287.1633819530438
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<div> These are what I was trying (from the RHEL info from t=
he page you linked, but for PHP 7.1 (rather than 7.2)):<br><br>he steps are=
as follows to enable and install PHP 7.2 on RHEL 7 using yum command:<br>$=
sudo yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest=
-7.noarch.rpm<br>$ sudo yum install http://rpms.remirepo.net/enterprise/rem=
i-release-7.rpm<br>$ sudo yum install yum-utils<br>$ sudo subscription-mana=
ger repos --enable=3Drhel-7-server-optional-rpms<br>$ sudo yum-config-manag=
er --enable remi-php72<br>$ sudo yum update<br>$ sudo yum search php72 | mo=
re<br>$ sudo yum install php72 php72-php-fpm php72-php-gd php72-php-json ph=
p72-php-mbstring php72-php-mysqlnd php72-php-xml php72-php-xmlrpc php72-php=
-opcache<br><br>I first run into that error at the "yum install yum-ut=
ils" step.<br><br>Jim<br><br> </div> <div class=
=3D"yahoo_quoted" style=3D"margin:10px 0px 0px 0.8ex;border-left:1px solid =
#ccc;padding-left:1ex;"> <div style=3D"font-family:'=
Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;=
"> <div> On Saturday, Oct=
ober 9, 2021, 06:34:45 PM EDT, ohaya <[email protected]> wrote: =
</div> <div><br></div> <div><br></div=
> <div><div id=3D"yiv4955139853"><div><div> H=
i,<br clear=3D"none"><br clear=3D"none">Per my original post, I am on RHEL =
7.9, rather than CENTOS.<br clear=3D"none"><br clear=3D"none">I did see tha=
t that page had a separate set of steps for CENTOS vs. RHEL, and I am prett=
y sure that I did the ones for RHEL.<br clear=3D"none"><br clear=3D"none">I=
will double check.<br clear=3D"none"><br clear=3D"none">Thanks,<br clear=
=3D"none">Jim<br clear=3D"none"><br clear=3D"none"><br clear=3D"none"> =
</div> <div class=3D"yiv4955139853yahoo_quoted" style=3D"=
margin:10px 0px 0px 0.8ex;border-left:1px solid #ccc;padding-left:1ex;"> =
<div style=3D"font-family:'Helvetica Neue', Helvetica,=
Arial, sans-serif;font-size:13px;color:#26282a;"> =
<div class=3D"yiv4955139853yqt7555645060" id=3D"yiv4955139853yqtfd08=
841"><div> On Saturday, October 9, 2021, 06:06:36 PM EDT=
, Richard <[email protected]> wrote: =
</div> <div><br clear=3D"none"></div> <d=
iv><br clear=3D"none"></div> <div><br clear=3D"none"><br cle=
ar=3D"none">> Date: Saturday, October 09, 2021 21:47:15 +0000<br clear=
=3D"none">> From: ohaya via php-install <<a rel=3D"nofollow noopener =
noreferrer" shape=3D"rect" ymailto=3D"mailto:[email protected]" tar=
get=3D"_blank" href=3D"mailto:[email protected]">php-install@lists.=
php.net</a>><br clear=3D"none">><br clear=3D"none">> Also, w=
hen I run some of the commands, I am getting an error, e.g.:<br clear=3D"no=
ne">> <br clear=3D"none">> yum search php71 | more<br clear=3D"=
none">> Loaded plugins: amazon-id, product-id, search-disabled-repos,<br=
clear=3D"none">> subscription- : manager<br clear=3D"none">> <=
br clear=3D"none">> This system is not registered with an entitlement se=
rver. You can<br clear=3D"none">> use subscription-manager to register.<=
br clear=3D"none">> <br clear=3D"none">> <a rel=3D"nofollow noopener =
noreferrer" shape=3D"rect" target=3D"_blank" href=3D"https://rhui3.us-west-=
2.aws.ce.redhat.com/pulp/repos/content/dist/r">https://rhui3.us-west-2.aws.=
ce.redhat.com/pulp/repos/content/dist/r</a><br clear=3D"none">> hel/rhui=
/server/7/7Server/x86_64/rh-common/os/repodata/repomd.xml:<br clear=3D"none=
">> [Errno 14] HTTPS Error 403 - Forbidden Trying other mirror.<br clear=
=3D"none">> To address this issue please refer to the below knowledge ba=
se<br clear=3D"none">> article<br clear=3D"none">> <br clear=3D"none"=
><br clear=3D"none">You've enabled a redhat repository which won't work if =
you're running<br clear=3D"none">centos. Did you, perhaps, go through the "=
How to install PHP 7.2 on<br clear=3D"none">RHEL 7" steps in the install in=
structions in:<div class=3D"yiv4955139853yqt6411970107" id=3D"yiv4955139853=
yqtfd38734"><br clear=3D"none"><br clear=3D"none"><<a rel=3D"nofollow no=
opener noreferrer" shape=3D"rect" target=3D"_blank" href=3D"https://www.cyb=
erciti.biz/faq/how-to-install-php-7-2-on-centos-7-rhel-7/">https://www.cybe=
rciti.biz/faq/how-to-install-php-7-2-on-centos-7-rhel-7/</a></div>><br c=
lear=3D"none"><br clear=3D"none">referenced in the previous message? Some o=
f those instructions are<br clear=3D"none">duplicates of the centos ones, b=
ut a couple are redhat/rhel specific<br clear=3D"none">and should be undone=
.<div class=3D"yiv4955139853yqt6411970107" id=3D"yiv4955139853yqtfd99123"><=
br clear=3D"none"></div></div> </div></div><div class=3D"yiv4955=
139853yqt7555645060" id=3D"yiv4955139853yqtfd57657"> </div><=
/div></div></div></div> </div> </div>
------=_Part_596829_53151287.1633819530438--