Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deploying a Custom Program to a Hosting Service

I am a total newbie in servers/hosting etc, although I have some experience in programming in C,Java,etc. So excuse me if the question is 'absurd'.

I recently bought service from a hosting site,namely this(hostmds). I have some code I've written in C++ and I want to run it in the hosting site. So my question is:

  • Is this possible, or will I have to rewrite everything in a new language?
  • What should my approach be?

Edit: I have a Shared-Hosting account.

like image 595
urashima Avatar asked Feb 23 '10 11:02

urashima


2 Answers

You will have to get a "virtual private server" account from your host in order to do this. This will enable you to compile your program on your host machine and run it essentially as if it were a separate machine under your control.

This means you will also be responsible for maintaining your own HTTP server program (such as Apache, if running on a Linux/Unix host), and your own database servers and other support.

If you have a "shared hosting" account (the most common low cost option) with SSH support, you may be able to compile your program, and even run it, but you will be subject to the whims (capricious or otherwise) of the administrators of your system (that it, you may find that libraries you need are removed or moved around)

like image 181
Vincent Marchetti Avatar answered Sep 22 '22 00:09

Vincent Marchetti


What type of hosting is this? What kind of application is this, is it a daemon?

Depending on the amount of access rights you have, you can run the code in the cgi-bin folder or through the shell of the server.

Depending on the OS/compiler you've used to write your code in you might have to modify some things so that it'll work on the target OS. You should probably add some more details. :)

like image 27
Charles Avatar answered Sep 21 '22 00:09

Charles