Project

General

Profile

Wt deployment on hosted server

Added by Richel Bilderbeek over 13 years ago

Dear Wt users,

One of the reasons I use Wt is, because it expands the use of a language I already know (that is, C), instead of needing me to learn a new website language (like PHP or Javascript). Due to this, I have little knowledge about deploying any application on a server.

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


Replies (5)

RE: Wt deployment on hosted server - Added by Koen Deforche over 13 years ago

Hey Richel,

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.

Regards,

koen

RE: Wt deployment on hosted server - Added by Richel Bilderbeek over 13 years ago

Dear Koen,

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!

Richel Bilderbeek

RE: Wt deployment on hosted server - Added by Pau Garcia i Quiles over 13 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 almost 9 years ago

Dear all,

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 almost 9 years ago

Patrick,

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.

    (1-5/5)