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

[email protected] ("ohaya via php-install") Sat, 9 Oct 2021 21:47:15 +0000 (UTC)
Newsgroups php.install
Message-ID <[email protected]>
------=_Part_583303_1278378384.1633816035932
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

 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 subsc=
ription-manager to register.

https://rhui3.us-west-2.aws.ce.redhat.com/pulp/repos/content/dist/rhel/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

https://access.redhat.com/solutions/69319

If above article doesn't help to resolve this issue please open a ticket wi=
th Red Hat Support.





     On Saturday, October 9, 2021, 05:45:25 PM EDT, ohaya <[email protected]>=
 wrote: =20
=20
  Hi,

I am not sure... Are there any steps that I had to do with the Apache itsel=
f to "integrate" PHP with Apache?

One thing I noticed is that I tried putting an "info.php" into the Apache h=
tdocs directory and when I access that using a browser, I am getting a blan=
k page and when I do view=3D>source, I can see the source in the "info.php"=
 file, i.e., the info.php program is not actually being executed, but rathe=
r Apache is just serving the file as a file.

What else do I need to do?

Jim


     On Saturday, October 9, 2021, 04:36:15 PM EDT, Keith Roberts <keith@ka=
rsites.net> wrote: =20
=20
 On 09/10/2021 21:31, ohaya via php-install wrote:
> Hi,
>
> I have an Apache 2.4.29 instance and I am trying get PHP working with it.
>
> This is on RHEL 7.9.
>
> I installed php via "yum install" and now I have the following packages i=
nstalled:
>
> php-7.1.33-16.el7.remi.x86_64
> php-json-7.1.33-16.el7.remi.x86_64
> php-cli-7.1.33-16.el7.remi.x86_64
> php-common-7.1.33-16.el7.remi.x86_64
>
> I think that in order to integrate it with my Apache, I need a mod_php, o=
r maybe a mod_php7.1, but I cannot find it anywhere.=C2=A0 I also checked m=
y Apache build environment, and I don't see any source for mod_php....=C2=
=A0 so I was wondering how I can get that?
>
> Also right now, (and without the module) when I access something like "in=
fo.php", I am getting a blank page, and when I do "view=3D>source" it is ju=
st showing me the source of the "info.php" file, so am I correct that if I =
get the mod_php and do an LoadModule, then the php will start executing?
>
> Thanks,
> Jim

Hi Jim,

Is this what you are looking for:

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

Regards,

Keith
   =20
------=_Part_583303_1278378384.1633816035932
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div>                Also, when I run some of the commands, I am getting an=
 error, e.g.:<br><br> yum search php71 | more<br>Loaded plugins: amazon-id,=
 product-id, search-disabled-repos, subscription-<br>              : manage=
r<br><br>This system is not registered with an entitlement server. You can =
use subscription-manager to register.<br><br>https://rhui3.us-west-2.aws.ce=
.redhat.com/pulp/repos/content/dist/rhel/rhui/server/7/7Server/x86_64/rh-co=
mmon/os/repodata/repomd.xml: [Errno 14] HTTPS Error 403 - Forbidden<br>Tryi=
ng other mirror.<br>To address this issue please refer to the below knowled=
ge base article<br><br>https://access.redhat.com/solutions/69319<br><br>If =
above article doesn&#39;t help to resolve this issue please open a ticket w=
ith Red Hat Support.<br><br><br><br><br><br>            </div>            <=
div class=3D"yahoo_quoted" style=3D"margin:10px 0px 0px 0.8ex;border-left:1=
px solid #ccc;padding-left:1ex;">                        <div style=3D"font=
-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color=
:#26282a;">                                <div>                    On Satu=
rday, October 9, 2021, 05:45:25 PM EDT, ohaya &lt;[email protected]&gt; wrote=
:                </div>                <div><br></div>                <div>=
<br></div>                <div><div id=3D"yiv9682199218"><div><div>        =
        Hi,<br clear=3D"none"><br clear=3D"none">I am not sure... Are there=
 any steps that I had to do with the Apache itself to "integrate" PHP with =
Apache?<br clear=3D"none"><br clear=3D"none">One thing I noticed is that I =
tried putting an "info.php" into the Apache htdocs directory and when I acc=
ess that using a browser, I am getting a blank page and when I do view=3D&g=
t;source, I can see the source in the "info.php" file, i.e., the info.php p=
rogram is not actually being executed, but rather Apache is just serving th=
e file as a file.<br clear=3D"none"><br clear=3D"none">What else do I need =
to do?<br clear=3D"none"><br clear=3D"none">Jim<br clear=3D"none"><br clear=
=3D"none"><br clear=3D"none">            </div>            <div class=3D"yi=
v9682199218yqt2816482918" id=3D"yiv9682199218yqt11773"><div class=3D"yiv968=
2199218yahoo_quoted" style=3D"margin:10px 0px 0px 0.8ex;border-left:1px sol=
id #ccc;padding-left:1ex;">                        <div style=3D"font-famil=
y:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#2628=
2a;">                                <div>                    On Saturday, =
October 9, 2021, 04:36:15 PM EDT, Keith Roberts &lt;[email protected]&gt; =
wrote:                </div>                <div><br clear=3D"none"></div> =
               <div><br clear=3D"none"></div>                <div><div dir=
=3D"ltr">On 09/10/2021 21:31, ohaya via php-install wrote:<div class=3D"yiv=
9682199218yqt8323894236" id=3D"yiv9682199218yqtfd09398"><br clear=3D"none">=
&gt; Hi,<br clear=3D"none">&gt;<br clear=3D"none">&gt; I have an Apache 2.4=
.29 instance and I am trying get PHP working with it.<br clear=3D"none">&gt=
;<br clear=3D"none">&gt; This is on RHEL 7.9.<br clear=3D"none">&gt;<br cle=
ar=3D"none">&gt; I installed php via "yum install" and now I have the follo=
wing packages installed:<br clear=3D"none">&gt;<br clear=3D"none">&gt; php-=
7.1.33-16.el7.remi.x86_64<br clear=3D"none">&gt; php-json-7.1.33-16.el7.rem=
i.x86_64<br clear=3D"none">&gt; php-cli-7.1.33-16.el7.remi.x86_64<br clear=
=3D"none">&gt; php-common-7.1.33-16.el7.remi.x86_64<br clear=3D"none">&gt;<=
br clear=3D"none">&gt; I think that in order to integrate it with my Apache=
, I need a mod_php, or maybe a mod_php7.1, but I cannot find it anywhere.&n=
bsp; I also checked my Apache build environment, and I don't see any source=
 for mod_php....&nbsp; so I was wondering how I can get that?<br clear=3D"n=
one">&gt;<br clear=3D"none">&gt; Also right now, (and without the module) w=
hen I access something like "info.php", I am getting a blank page, and when=
 I do "view=3D&gt;source" it is just showing me the source of the "info.php=
" file, so am I correct that if I get the mod_php and do an LoadModule, the=
n the php will start executing?<br clear=3D"none">&gt;<br clear=3D"none">&g=
t; Thanks,<br clear=3D"none">&gt; Jim</div><br clear=3D"none"><br clear=3D"=
none">Hi Jim,<br clear=3D"none"><br clear=3D"none">Is this what you are loo=
king for:<br clear=3D"none"><br clear=3D"none"><a rel=3D"nofollow noopener =
noreferrer" shape=3D"rect" target=3D"_blank" href=3D"https://www.cyberciti.=
biz/faq/how-to-install-php-7-2-on-centos-7-rhel-7/ ">https://www.cyberciti.=
biz/faq/how-to-install-php-7-2-on-centos-7-rhel-7/ </a><br clear=3D"none">&=
lt;<a rel=3D"nofollow noopener noreferrer" shape=3D"rect" target=3D"_blank"=
 href=3D"https://www.cyberciti.biz/faq/how-to-install-php-7-2-on-centos-7-r=
hel-7/">https://www.cyberciti.biz/faq/how-to-install-php-7-2-on-centos-7-rh=
el-7/</a>&gt;<br clear=3D"none"><br clear=3D"none">Regards,<br clear=3D"non=
e"><br clear=3D"none">Keith<div class=3D"yiv9682199218yqt8323894236" id=3D"=
yiv9682199218yqtfd58745"><br clear=3D"none"></div></div></div>            <=
/div>                </div></div></div></div></div>            </div>      =
          </div>
------=_Part_583303_1278378384.1633816035932--