On Wed, Jan 6, 2021 at 9:54 PM Ruben Safir <mrbrk...@panix.com> wrote:

> On 1/6/21 11:09 AM, Kaushal Shriyan wrote:
> > When I invoke it from the browser Apache shows PHP code instead of
> > executing it. Please let me know if you need any additional information.
> > Thanks in Advance
>
>
> trun it on and read the docs.  You need to turn it one from httpd.conf
> and assign it to a php enabled uri
>

Hi Ruben,

I have added the below in /etc/httpd/conf/httpd.conf. The issue still
persists.

<FilesMatch \.php$>
SetHandler application/x-httpd-php
</FilesMatch>

#apachectl -M | grep -i PHP does not return anything.

==> /var/log/httpd/access_log <==
192.168.0.95 - - [06/Jan/2021:23:38:03 +0530] "GET /info.php HTTP/1.1" 304
- "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 11_1_0) AppleWebKit/537.36
(KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36"

Best Regards,

Reply via email to