[clug] Weird 500 error - script not executing?

Alex Satrapa grail at goldweb.com.au
Sat Jul 9 13:46:13 GMT 2005


On 9 Jul 2005, at 14:20, Paul Wayper wrote:

> [...] Premature end of script headers: subs.cgi; referer http:// 
> localhost/[...]/email.cgi
>
> The script is set executable by all, and I can run it and it gives  
> the outputs I expect.

Check the permissions on the working and non-functional scripts. You  
may find that your web server is interpreting specific permissions  
(or file name fragment) to mean that the script should be run in "non- 
parsed header" mode - in which case your script must generate all the  
headers required. It may be that the web server doesn't see a valid  
header (ie: the stuff at the beginning of an HTTP response that tells  
the browser okay/bad), so it barfs.

Hope this helps in some way.
Alex



More information about the linux mailing list