Re: CGI-executable Apache

From: Date: Mon, 05 Jun 2000 18:14:21 +0000
Subject: Re: CGI-executable Apache
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-1075@lists.php.net to get a copy of this message
Hi Victor! On Mon, 05 Jun 2000, Victor wrote: > Well, it still does not work. The cgi version of php just doesn't seem to > get results out properly. Is there some switch I can set for more info/error > messages? > > My test.cgi works from command line when I am logged in and webadmin and > when I am logged in as nobody. However, when I call it from apache, it says > "Premature end of script headers: /data/www/stonecare/cgi-bin/test.cgi" > > Any input still helpful. here is my test.cgi: > > #!/opt/apache/bin/php > <?php print "Hello World\n"; ?> try to debug it by running httpd in single mode(-X param.) Also, what do you see in your error logs? Also, do you have a 'safe_exec_dir' set somehow? -- teodor

« previous php.general (#1075) next »