Re: AppleEvents, CGIs, Cocoa
Re: AppleEvents, CGIs, Cocoa
- Subject: Re: AppleEvents, CGIs, Cocoa
- From: email@hidden
- Date: Sat, 26 Jan 2002 15:38:12 -0500
On Saturday, January 26, 2002, at 12:57 PM, Chilton Webb wrote:
Here's a brain thumper...
I have a Cocoa app running a tool with NSTask. No problems. I have a
Carbon app that talks to the Cocoa app via AppleEvents. No problems.
I wrote a tool that sends these events to the Cocoa app so that I could
ultimately run it as a CGI with the same interface as the Carbon app.
Problem. If I run it from the terminal, all is fine. If I run it from
the server, I get the 500 Server Misconfiguration error. Any idea why?
You may have already considered this, but my experience has been that
when you have a CGI program works "just fine" in the shell, but pukes up
when its run by apache it is almost always because apache's execution
environment for the CGI program in question cannot access the same path
or libraries as the shell. You'll want to check that:
1) Apache CGI's can find the binaries you are using (PATH variable).
2) Apache CGI's have execute permissions on the binaries you are using.
3) Apache CGI's can dynamically link any shared libraries you are using.
If your CGI is a binary,you can also try wrapping it in a shell script
that just exec's the binary and see what errors the shell gives you.
Hope that helps,
email@hidden