what can i do to deploy multiple web apps?
I buildt a standalone with port 1025.
On firefox i entered “123.123.123.123//cgi-bin/test_1 :1025” an error 404 appears.
AH02811: script not found or unable to stat: /usr/lib/cgi-bin/test_1 :1025
On firefox i entered “123.123.123.123//cgi-bin/test_1” an error 500 appears.
AH01220: Timeout waiting for output from CGI script /usr/lib/cgi-bin/test_1
If i enter the old cgi “123.123.123.123//cgi-bin/test_1.cgi” it works!
123.123.123.123:1025//cgi-bin/test_1 is running
But i don’t know why! I drunk a cup of coffee and now it works… Strange!
Update!
I think i should quit working…
The web app is extremely unstable. If i start the app with my smart phone the app starts and then it shuts down. After some time i can start again. Maybe it’s a result of timers / android…
Or the server doesn’t like this kind of CGI / port
The CGI program should be deployed on a Web server such as apache, and the port is configured by apache. I’m deployed on a Ubuntu server. Multiple CGI applications deployed on the same server can’t have the same Application Identifier, otherwise opening multiple applications at the same time will fail.
If it’s a stand-alone application, you shouldn’t have to enter a path like / CGI-bin / test_1, you just need an IP address + a port number to open the Web page. If you’re building a CGI application through a template, you can only run it on a web server like apache. This is just an interface program for post or get to get data. I’m using CGIApplication to build various post and get interfaces. If it is standalone, it is a daemon on Ubuntu and must be executed on the server before using it.
I wrote a new xojo standalone app for port 1025. Without Timer, slider,…
The test on a Linux PC is positive with 123.123.123.123:1025//cgi-bin/test_1
And it works on Android!
But after 10 min the server shut down.
No connection to server:
123.123.123.123:1025//cgi-bin/test_1
… i tried every thing and combination
123.123.123.123:1025
…
Nothing works! No message in error or access log.
My old CGI app is stabile working, even on Android!
I am an absolute newbie and for me it’s the question what is wrong?
My Xojo standalone app the server configuration or …
If it shut down then the app quit and will have to be restarted. Youll need to add some logging, probably within the App.UnhandledException event to start, to figure out why its closing on its own.
and a standalone on port 1025 i renamed in xxx.cgi
I will remove the xxx".cgi" and
“move your standalone app out of the cgi-bin folder”
Where should i place it? In the /var/www/html ?
And the additional folders for Libs and Resources?
I think the idea to have a standalone web app is that you don’t need to have a web server installed. So I guess you can put the web app wherever you want, you then go to your server’s shell and execute it as ./webapp
I’m just saying that a standalone web app work on your server without apache, yes.
For cgi you need apache (or nginx or other web server). At least that’s what I understand.
Ubuntu 32 or 64 bit?
Did you copy the app and the directories created by Xojo to /var/www/html ?
Did you execute the app from your server’s command line?
I have an Ubuntu VPS running apache and nginx with a Xojo .cgi. Later today I’ll build a stand alone version of my cgi and, for the first time, copy that to my server and execute it. Then I’ll have a little more experience to help you.