Re: [users@httpd] PHP-CGI with Apache-2.4.37

2019-03-08 Thread Hemant Chaudhary
Hi Eric, Now with script alias, I am getting error [Fri Mar 08 12:56:13.771703 2019] [cgi:error] [pid 1862271014:tid 579777016812208132] [client 15.213.82.149:52137] malformed header from script 'first.php': Bad header: Security Alert! The PHP Wherease script is working fine when running it thor

Re: [users@httpd] PHP-CGI with Apache-2.4.37

2019-03-08 Thread Eric Covener
On Fri, Mar 8, 2019 at 6:38 AM Hemant Chaudhary wrote: > > 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 This is mod_php configuration, you want to configure mod_cgi directly (ScriptAlia

[users@httpd] PHP-CGI with Apache-2.4.37

2019-03-08 Thread Hemant Chaudhary
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 But when I am sending request from browser, my php page got displayed there instead of content of php p