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

From: Date: Sat, 09 Oct 2021 21:47:15 +0000
Subject: Re: Installed php 7.1.33 but how to integrate it with Apache?
References: 1 2 3 4  Groups: php.install 
Request: Send a blank email to php-install+get-20549@lists.php.net to get a copy of this message
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/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 with Red Hat Support. On Saturday, October 9, 2021, 05:45:25 PM EDT, ohaya <ohaya@yahoo.com> wrote: Hi, I am not sure... Are there any steps that I had to do with the Apache itself to "integrate" PHP with Apache? 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=>source, I can see the source in the "info.php" file, i.e., the info.php program is not actually being executed, but rather 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@karsites.net> wrote: 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

« previous php.install (#20549) next »