Sorry for this newbie question. Can node.js run in any hosting provider like Fastdomain? We have an account in fastdomain where we upload our Website made in PHP. I allowed SSH in our host and tried installing node.js but it didn't work. I've been searching the internet but there is no exact answer to this

## 3 Answers
No, you can not run Node.js on every hosting provider. You need certain base capabilities. If your hosting provider doesn't directly support Node.js (like Heroku does), then you need to be able to shell into your server. You also need access to a C compiler to build Node.js or the ability to install packages for your system

Once you get Node.js installed then you need root access to be able to run it on port 80. You can get around this if your provider provides reverse proxy service

The fact that you can shell in is a good start. It might be possible on Fastdomain, but to be sure you should contact Fastdomain support. Every hosting provider is different and if you have shared hosting then the answer is most likely no. You generally need dedicated hosting to run Node.js

-
1You do not need root access. You still can proxy through another frontend server TheHippoMay 14, 2013 at 23:25
-
Does it mean we cannot use PHP and NODE.JS at the same project in the same hosting?If it can, how OrvylMay 14, 2013 at 23:38
-
@TheHippo Right, I didn't intend to say you needed root access to install Node, only that you needed it to run on port 80 DanielMay 15, 2013 at 0:36
-
@Daniel You can combine node.js and PHP. You need either a) a hosting provider how hosts node.js and PHP or b) an "own" server and which you could easily configure to host both TheHippoMay 15, 2013 at 7:56
No, Node can't run on any hosting providers, you can however deploy Nodejs projects in PAAS sites as Heroku and Linode that offer a plataform for you to deploy your app or on Cloud Hosting Providers

The PAAS model puts the provider as responsible for infrastructure and for configuring the OS and the overall infrastructure, and you only have to worry with develop and deploy

On other hand Nodejs can be deployed on any Cloud Hosting, once you have acess to a virtual or dedicated server you can install nodejs and the dependencies to start offering your application, in this case you are responsible for Install Nodejs, Databases, Webservers (if you don't wanna use Node's Http server)


Cloud Hosting are usually more expensive but offer more control over infrastructure, PAAS are often more easy to use from a developer point of view once that is only develop and deploy (sometimes configure like domains and other account settings)

I was able to install node on my shared hosting plan using
nvm. You can take a look here for more information: httpsheynode.com/tutorial/install-nodejs-locally-nvmtext=Using%20nvm%20(Node.,on%20a%20single%20local%20environment.