httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hemant Chaudhary <>
Subject [users@httpd] PHP-CGI with Apache-2.4.37
Date Fri, 08 Mar 2019 11:38:02 GMT
Hi All,

I want to use my php scripts using mod-cgi.

AddHandler application/x-httpd-php7 php
 AddHandler application/x-httpd-php7 .php

and my first.php is like

header('Content-Type: text/html');
print "hello php"

But when I am sending request from browser, my php page got displayed
there instead of content of php page.

Permission of php file is -rwxr-xr-x

Please let me know what am I missing ?



View raw message