cgi - WebApp not launching

Hello @all,

i have encountered a strange error. I have designed an webapp (running just on an internal server with an url no one else knows),

checked for running app via ps command. nothing there. the app wont start (as cgi app) in my error-logs from apache i find the following error:

[Thu Sep 10 12:24:40 2015] [error] [client x.x.x.x] The application cannot continue because a needed file cannot be installed. Unable to locate myAppTest Libs/libRBCrypto.so [Thu Sep 10 12:24:40 2015] [error] [client x.x.x.x] [Thu Sep 10 12:24:40 2015] [error] [client x.x.x.x] Can't use an undefined value as a symbol reference at asbuchungroute.cgi line 118. [Thu Sep 10 12:24:40 2015] [error] [client x.x.x.x] Premature end of script headers: myapptest.cgi [Thu Sep 10 12:39:56 2015] [error] [client x.x.x.x] Premature end of script headers: myapptest.cgi

checked the Libs folder. the file is there and the rights for libRBCrypto.so are set to 755. the web-server user and group owns the file.

Testet compiling with an old version of Xojo (2015r2.3) and checked compiling with the current version (2015r2.4) always the error with the libRBCrypto.so

Server ist an Linux-Server CentOS 6 (6.7 x64) with all the 32bit libs installed (if i compile the app as standalone, the app runs correctly)

hope anyone has a idea for my wat i can do?

Best Regards,

Ren Landscheidt

Perhaps one more Info:

At the beginning of the development (about a Month) ago i had a compiled version witch was working as cgi app. (Just hatt not all the features i wanted, but for a Test it worked an looked like i wanted to, just still had to code the actions for the app)

Mmm I would check the Options FollowSymLinks in your Apache Config first.

Thx.
That was it.

Still wondering why it worked at first with the old version.

Did not change anything there.

So. now i can change the names and so on for the deployment for the usage in the company :wink:

You’re welcome!

Hello at all.

I’ve the same issue.
FollowSymLinks is present like this:
Options Indexes FollowSymLinks

[cgi:error] [pid 16820] [client 193.107.20.111:61564] End of script output before headers: webapp64.cgi
[cgi:error] [pid 16822] [client 193.107.20.111:61565] AH01215: Can’t exec “/var/www/cgi-bin/Webapp64”: No such file or directory at /var/www/cgi-bin/webapp64.cgi line 186.
[cgi:error] [pid 16822] [client 193.107.20.111:61565] AH01215: Can’t use an undefined value as a symbol reference at /var/www/cgi-bin/webapp64.cgi line 118.
[cgi:error] [pid 16822] [client 193.107.20.111:61565] End of script output before headers: webapp64.cgi

i have checked every privileges and all seems right.

I have tried to launch this app under Centos 7.0
I have put it here: /var/www/cgi-bin/
I have made some test with a small perl script, and it works fine.

I tried to compile my project with 32 and 64 bits…same issue.

I don’t understand where this problem come from.

I forgot.

I’m using Xojo 2015 R3 RC1. (32 and 64)
I have tried with 2014 R2.4, same issue.
Runing under Centos 7.0 64bits

Hi,

according to the error message it seems the cgi script does not find “/var/www/cgi-bin/Webapp64”. Maybe you have already checked, but just in case, make sure the app file Webapp64 is in that path (case sensitive) and that it has the right privileges (755 is what I have for mine).

KR.

It works or almost.
Some libraries was not installed, sorry.
For one short project, it works (a fresh project from scratch)
However, with another project (big), it doesn’t work.

I’ll try to check again what’s the problem about that, and i’ll let you know.

Regards and thanks again for your help.