httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "JPN. Sumarno" <ma...@ai3.itb.ac.id>
Subject Re: [users@httpd] 'Premature end of script headers' error when starting Apache at boot time
Date Tue, 24 Feb 2004 03:55:14 GMT
Dear Sujata, probably your script was damage. Please see
http://httpd.apache.org/docs/custom-error.html to see the
solution of your problem :-).

Regards,
-Marno-

On Tue, 24 Feb 2004 sujata@ked.biglobe.ne.jp wrote:
> Hello,
> 
> I have successfully configured Apache 2.0.4 with RedHat 7.3 and use
> Python 2.2.3 for cgi scripts.  When I start Apache manually through
> /usr/local/apache/bin/apachectl startssl, I can execute the cgi
> scripts without any problem from the browser. This works fine.
> 
> When I put the Apache start line in /etc/rc.local file so that Apache
> starts automatically at boot time, Apache starts without any problem,
> and I can access the HTML pages.  But in case of CGI scripts, I get
> '500 internal server error' on the browser, and 2 errors in the error
> log '/usr/bin/env: python: No such file or directory, referer: ..' and
> 'Premature end of script errors'.
> 
> In both cases, apache runs as root.  I dont know much about this, but
> it seemed to be a permission problem, so confirmed that 755 is set for
> my cgibin directory. /usr/local/bin/python also has 755 permissions.
> This has not helped. Its not finding python, but I dont know how to
> fix it.
> 
> At this point, if I stop Apache and restart it manually, everything
> again works fine.
> 
> Any ideas? Any help would be highly appreciated.
> 
> Rgds 
> Sujata


---------------------------------------------------------------------
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