Mike's Pub -> Discussion Corner -> Support Forum for aWebVisit

 MAC OSX cgi-bin errors [ Reply ] [ Back to Index ] Top Bottom

Author : Greg Walz-Chojnacki
Date: 2003/05/21 18:01

I'm trying to get awv-nap.cgi to run, but am getting the folowing errors;
1) when my browser loads /cgi-bin/awv-map.cgi I get:
Internal Server Error
 The server encountered an internal error or misconfiguration and was unable to complete
your request.

 Please contact the server administrator,  [no address given] and inform them of the time
the error occurred, and anything you might have done that may have caused the error.

 More information about this error may be available in the server error log.

2) when I check error_log, I get
[Wed May 21 12:47:18 2003] [error] (2)No such file or directory: exec of
/Library/WebServer/CGI-Executables/awv-map.cgi failed
[Wed May 21 12:47:18 2003] [error] [client 129.89.47.208] Premature end of script headers:
/Library/WebServer/CGI-Executables/awv-map.cgi

I keep scouring awv-map.cgi for errors, but can't seem to find the problem.

Any OSXers out there?

Thanks.

Greg

 Re: MAC OSX cgi-bin errors [ Reply ] [ Back to Index ] Top Bottom

Author : Greg
Date: 2003/05/21 18:16

P.S. I can run 
      perl awv-map.cgi >awv-map.html 
just fine.

 Re: MAC OSX cgi-bin errors [ Reply ] [ Back to Index ] Top Bottom

Author : Mike
Date: 2003/05/23 16:01

This sounds like you're running Apache as webserver, so perhaps the following will help :
http://httpd.apache.org/docs/howto/cgi.html - check out the section on Path Information in
particular (just a wild guess).

 Re: MAC OSX cgi-bin errors [ Reply ] [ Back to Index ] Top Bottom

Author : Greg Walz-Chojnacki
Date: 2003/05/28 15:42

Well, I think the first error _is_ a path error on my part,  but I'm truly puzzled by the
"Premature end of script headers" error.

Thanks for the pointer to the Apache site. I' afraid I may need some OSX-specific info.

Best.

Greg

 Re: MAC OSX cgi-bin errors [ Reply ] [ Back to Index ] Top Bottom

Author : Greg Walz-Chojnacki
Date: 2003/06/03 19:41

Doh! 

The problem was simply that the script have bad (I guess DOS/Windows) LF characters. Take
those out and voila! 

awv-maps.cgi totally rocks!

Thanks.

Greg

 Reply [ Back to Index ] Top Bottom
Name : or OpenID OpenID Login
E-mail : (optional)
Subject :
Message :
MathGuard security question: 4 + 0 =
 

Mike's Pub -> Discussion Corner -> Support Forum for aWebVisit