CGI Frustration
Yennie at aol.com
Yennie at aol.com
Wed Jan 22 12:56:00 EST 2003
Ken,
Can you run the script from the command line?
That is, can you connect via Telnet, ssh, etc, and run something like:
> ./linux test.mc
?
If so, then it probably has something to do with the ISP setup / Apache
configuration (assuming they use Apache). If not, then it may be your setup.
Some tidbits that *could* help (or at least narrow down the problem):
1) Try putting a full path to the mc engine.
2) Try changing the extension to ".cgi". The ISP configuration could possibly
only accept cgis with certain extensions.
HTH.
Brian
> OK, I'm finally trying to get MC set up as a CGI. I have an ISP that uses
> Linux, so I DL'ed the linux engine and uploaded it to my cgi-bin folder. I
> set the permissions to 755, and have a simple script called "test.mt" that
> sits in the cgi-bin folder as well, and its permissions are 755. The script
> is this...
>
> #!linux
>
> on startup
> put "Hello World!" into tResponse
> put "Content-Type: text/HTML" &crlf
> put "Content-Length:" &(the length of tResponse) &crlf &crlf
> put tResponse
> end startup
>
> ... and I keep getting an internal server error 500. I tried exactly the
> same thing on another ISP using BSD (with the exception of the first line
> being "#!mc"), and got the same result. I'm convinced I'm just not calling
> it properly... any ideas?
>
> Thanks for any help anyone can provide.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.runrev.com/pipermail/metacard/attachments/20030122/ec30b773/attachment.htm
More information about the metacard
mailing list