Anyone used CGI's made with Realbasic?
As a test, I have developed a very simple CGI in Realbasic. It simply prints the header line and a "Hello World" message.
It works fine if you run it from terminal but fails when accessed by http:// (apache) with the following log messages:
[Fri Jun 23 11:30:44 2006] [error] [client 18.104.22.168] which: no testcon.cgi in (/usr/local/bin:/usr/bin:/bin)
[Fri Jun 23 11:30:44 2006] [error] [client 22.214.171.124] Premature end of script headers: testcon.cgi
The suEXEC log does not appear to show any problems:
[2006-06-22 21:49:40]: uid: (10005/txe) gid: (10001/10001) cmd: testcon.cgi
I have tried this on two different linux servers with the same results.
I have spent the last 4 days researching this and I am coming to the conclusion that the problem may well lie with the way Realbasic generates console apps for Linux.
If anyone would like to test it you can download the Realbasic source and compiled CGI (zipped) here:
All suggestions and ideas greatly appreciated.