Re: Apache shows PHP code instead of executing it

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On Wed, Jan 6, 2021 at 9:54 PM Ruben Safir <mrbrklyn@xxxxxxxxx> 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,
 

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux