PHP-CGI with Apache-2.4.37

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

 



Hi All,

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

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

and my first.php is like
#!/usr/bin/php-cgi
<?php
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 ?

Thanks
Hemant

[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