Web Form
Posted
#1
(In Topic #92)
Guru

Thanks
Posted
Regular

You will need a server with Gambas installed on it. Since there are no hosting companies that provide that, you'll either have to
1. Set up a server in your own house
2. Rent a server from e.g. DigitalOcean | Cloud Infrastructure for Developers (staring at $5/moth)
Once you've got the server up and running with Gambas, you should set up a cron job to verify that the web app is running (it could crash, and it will not restart by itself).
The way to execute your web app is:
Code
GB_HTTPD_PORT=XXX gbr3 --httpd website.gambasThen access your server's ip from your browser, and hopefully it will work
(For a home server, a RaspberryPi might do)
Of cource, this information is very basic. It might be better to run it through Apache or Nginx (not sure how this is done exactly), you'll probably do better with firewall and other server hardening measures.
Posted
Posted
Trainee
Posted
Administrator

See: https://httpd.apache.org/docs/2.2/howto/cgi.html
Now, if you understand this, treat gambas webpages as cgi scripts and Apache2 will know what to do with them.
So, you will need to add a 'Handler' that contains the extensions of your Gambas webpages.
I have been researching this because in future I will be needing it.
I haven't actually done or tested any of above myself, but that is what my general understanding of the matter is.
Hope this helps hosting Gambas sites using Apache2
gbWilly
- Gambas Dutch translator
- Gambas wiki content contributor
- Gambas debian/ubuntu package recipe contributor
- GambOS, a distro for learning Gambas and more…
- Gambas3 Debian/Ubuntu repositories
… there is always a Catch if things go wrong!
- Gambas Dutch translator
- Gambas wiki content contributor
- Gambas debian/ubuntu package recipe contributor
- GambOS, a distro for learning Gambas and more…
- Gambas3 Debian/Ubuntu repositories
… there is always a Catch if things go wrong!
Posted
Regular

Thank you willy! This will also be helpful for me in the future I can manage to complete my CMS written in Gambas
Posted
Administrator

gbWilly
- Gambas Dutch translator
- Gambas wiki content contributor
- Gambas debian/ubuntu package recipe contributor
- GambOS, a distro for learning Gambas and more…
- Gambas3 Debian/Ubuntu repositories
… there is always a Catch if things go wrong!
- Gambas Dutch translator
- Gambas wiki content contributor
- Gambas debian/ubuntu package recipe contributor
- GambOS, a distro for learning Gambas and more…
- Gambas3 Debian/Ubuntu repositories
… there is always a Catch if things go wrong!
Posted
Regular

Posted
Trainee
Code
http://gambasforge.orgThe code is here :
https://sourceforge.net/projects/gambasforge/?source=directory
:-P
Posted
Regular

Posted
Regular

1 guest and 0 members have just viewed this.

