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 22.214.171.124] which: no testcon.cgi in (/usr/local/bin:/usr/bin:/bin)
[Fri Jun 23 11:30:44 2006] [error] [client 126.96.36.199] 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.