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

[email protected] (Keith Roberts)
Newsgroups php.install
Message-ID <[email protected]>
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 installed:
>
> 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, or maybe a mod_php7.1, but I cannot find it anywhere.  I also checked my Apache build environment, and I don't see any source for mod_php....  so I was wondering how I can get that?
>
> Also right now, (and without the module) when I access something like "info.php", I am getting a blank page, and when I do "view=>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, 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/ 
<https://www.cyberciti.biz/faq/how-to-install-php-7-2-on-centos-7-rhel-7/>

Regards,

Keith
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.