httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Davide Bianchi <>
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


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message