Wt deployment on hosted server
Dear Wt users,
The wiki page about Wt deployment (http://redmine.webtoolkit.eu/projects/wt/wiki/Wt_Deployment) starts, IMHO, at a level too high. I would like answers to questions like:
- Can Wt be deployed on any server?
- Can Wt be deployed on a hosted server?
- How do I determine the type of my web server?
I believe that these answers will fill a knowledge gap in the Wt wiki, so I hope someone will put these answers on the wiki.
My most pressing question is: can Wt be deployed on a hosted server? My website (http://www.richelbilderbeek.nl) is expanded by uploading .htm files using gFTP (or any other FTP program). Simply uploading 'HelloWt.wt' (that is, the executable with the .wt extension added (as done with the CMake examples in the Wt wiki FAQ)) to it, results in the browser (both Chrome and Firefox) starting to download it. Which (probably basic) thinking step am I missing?
Thanks in advance, Bilderbikkel
RE: Wt deployment on hosted server - Added by Koen Deforche over 8 years ago
Yes, I believe this is information is somewhat lacking. I have not yet encountered a shared hosting environment that is suitable for hosting of Wt applications. Wt requires either that you are allowed to install a FastCGI application or that you are allowed to run daemons to which HTTP requests are routed through a reverse proxy.
If you can login to your server using SSH, then that is a sign that you may have sufficient rights on the server to host a Wt application.
If all you can do is upload files over FTP, then you are most likely not in a situation that you can run a Wt application.
Type cheapest type of server on which you can host Wt application is usually a Virtual Private Server. A quick google reveals offerings starting at around $50 per year.
RE: Wt deployment on hosted server - Added by Richel Bilderbeek over 8 years ago
Thanks for your reply. I succeeded in running a Wt application on a home computer using the Ubuntu server edition: http://richelbilderbeek.nl/CppWtDeployGlobalHomeUbuntuServer.htm
Wt is great!
RE: Wt deployment on hosted server - Added by Pau Garcia i Quiles over 8 years ago
Koen Deforche wrote:
I have not yet encountered a shared hosting environment that is suitable for hosting of Wt applications
A Small Orange http://www.asmallorange.com
FastCGI is allowed. Servers run CentOS Linux.
RE: Wt deployment on hosted server - Added by Patrick Wolf over 3 years ago
When I complete my wt web application, the time of deployment on a VPS will come. If I compiled and tested it on my laptop with Kubuntu, will it run on a server with CentOS or will I have to compile it again on the same type of OS and hardware architecture?
RE: Wt deployment on hosted server - Added by Pau Garcia i Quiles over 3 years ago
If you compiled everything statically, the Linux flavor (Kubuntu vs CentOS) shouldn't matter. Make sure the glibc version where you compiled is same or older than where you will be deploying.
32-bit vs 64-bit binary does matter, in general, except if multiarch or ia32 libraries are installed on the deployment system.