I've recently compiled Apache 1.0.0 under SCO 3.4.2. The system was previously
running 0.6.5, and existing CGI programs in C are not running under the new
service. The error_log contains the message:
[Tue Jan 16 13:41:56 1996] access to /w/cgi-bin/srch failed for dbyrne.aba
soft.co.uk, reason: malformed header from script
I've run the program from the command line, and the output is as expected:
Content: text/html
<HTML>
<HEAD><TITLE>title</TITLE></HEAD>
<BODY>
...
</BODY>
</HTML>
This all appears valid, and the same cgi progs compiled on a Sun running
Solaris 2.4 work fine with the 1.0.0 Server, so it looks like a SCO problem.
When the cgi program exits, it is as a result of a failed select(2) call,
which it doesn't do under 0.6.5. The number of SpareServers/MaxServers etc
does not affect the problem.
The cgi progs are all called from URLs, no SSI involved.
Has anyone seen this or have any ideas ?
Regards,
David
--
David Byrne, Abacus Software, London, UK Tel: +44 (0)171 603 9877
Here's a koan: If you have ice-cream I will give you some. If you have none,
I will take it away from you. (it's an ice-cream koan).