httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Davide Bianchi <dav...@onlyforfun.net>
Subject Re: [users@httpd] Can't run any php or any other exec file. Error 500. Premature end of script headers
Date Thu, 09 Jun 2005 13:07:17 GMT
Miguel - Globalview wrote:
> "... Premature end of script headers:
> In addition, I created a test shell script testing, that usually works
> fine:
> "#!/bin/sh
> echo "<h1> Just for testing purposes...";

This isn't a correct CGI. A Cgi should start by sending back some
'headers', minimal requirements are:

Content-Type: text/html


(note: two newlines)

If your script doesn't return such header you get the aforementioned
error.

Davide

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message