Re: Installed php 7.1.33 but how to integrate it with Apache?
"ohaya via php-install" <[email protected]> Sat, 9 Oct 2021 21:45:13 +0000 (UTC)
| Newsgroups | gmane.comp.php.install |
|---|---|
| Message-ID | <[email protected]> |
------=_Part_586293_1537690867.1633815913659
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
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_586293_1537690867.1633815913659
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<div> Hi,<br><br>I am not sure... Are there any steps that I=
had to do with the Apache itself to "integrate" PHP with Apache?=
<br><br>One thing I noticed is that I tried putting an "info.php"=
into the Apache htdocs directory and when I access that using a browser, I=
am getting a blank page and when I do view=3D>source, I can see the sou=
rce in the "info.php" file, i.e., the info.php program is not act=
ually being executed, but rather Apache is just serving the file as a file.=
<br><br>What else do I need to do?<br><br>Jim<br><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-si=
ze:13px;color:#26282a;"> <div> =
On Saturday, October 9, 2021, 04:36:15 PM EDT, Keith Roberts <keit=
[email protected]> wrote: </div> <div><br></d=
iv> <div><br></div> <div><div dir=3D"ltr">On =
09/10/2021 21:31, ohaya via php-install wrote:<div class=3D"yqt8323894236" =
id=3D"yqtfd09398"><br clear=3D"none">> Hi,<br clear=3D"none">><br cle=
ar=3D"none">> I have an Apache 2.4.29 instance and I am trying get PHP w=
orking with it.<br clear=3D"none">><br clear=3D"none">> This is on RH=
EL 7.9.<br clear=3D"none">><br clear=3D"none">> I installed php via "=
yum install" and now I have the following packages installed:<br clear=3D"n=
one">><br clear=3D"none">> php-7.1.33-16.el7.remi.x86_64<br clear=3D"=
none">> php-json-7.1.33-16.el7.remi.x86_64<br clear=3D"none">> php-cl=
i-7.1.33-16.el7.remi.x86_64<br clear=3D"none">> php-common-7.1.33-16.el7=
.remi.x86_64<br clear=3D"none">><br clear=3D"none">> 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. I also checked my Apache build env=
ironment, and I don't see any source for mod_php.... so I was wonderi=
ng how I can get that?<br clear=3D"none">><br clear=3D"none">> Also r=
ight now, (and without the module) when I access something like "info.php",=
I am getting a blank page, and when I do "view=3D>source" it is just sh=
owing me the source of the "info.php" file, so am I correct that if I get t=
he mod_php and do an LoadModule, then the php will start executing?<br clea=
r=3D"none">><br clear=3D"none">> Thanks,<br clear=3D"none">> Jim</=
div><br clear=3D"none"><br clear=3D"none">Hi Jim,<br clear=3D"none"><br cle=
ar=3D"none">Is this what you are looking for:<br clear=3D"none"><br clear=
=3D"none"><a shape=3D"rect" href=3D"https://www.cyberciti.biz/faq/how-to-in=
stall-php-7-2-on-centos-7-rhel-7/ " target=3D"_blank">https://www.cyberciti=
.biz/faq/how-to-install-php-7-2-on-centos-7-rhel-7/ </a><br clear=3D"none">=
<<a shape=3D"rect" href=3D"https://www.cyberciti.biz/faq/how-to-install-=
php-7-2-on-centos-7-rhel-7/" target=3D"_blank">https://www.cyberciti.biz/fa=
q/how-to-install-php-7-2-on-centos-7-rhel-7/</a>><br clear=3D"none"><br =
clear=3D"none">Regards,<br clear=3D"none"><br clear=3D"none">Keith<div clas=
s=3D"yqt8323894236" id=3D"yqtfd58745"><br clear=3D"none"></div></div></div>=
</div> </div>
------=_Part_586293_1537690867.1633815913659--