[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cobalt-users] cgiwrap problem running cgi script



I am having trouble executing a cgi script on a site.

When it is called through the web I get the error message:
   The server encountered an internal error or
   misconfiguration and was unable to complete your request.

and when I look at the apache logs I see the error:

   Premature end of script headers: /usr/cgiwrap/cgiwrap

Now Ive tested this script from the command line and it runs perfectly, but
it seems to return this error when called throught the web.

Ive checked the owner and permissions and they seem fine to me. Permissions
are 755 and the script and containing folder are owned by the site admin and
the site group. I have tried all sorts of combinations of ownership and
chmod also but with no luck at all. .cgi is enabled on that site.

Can anybody suggest what the problem may be, or is there some kind of debug
log from cgiwrap that I can use to find out the cause of the problem.

Thanks
Tom