I would like to run Node.js/Express as a backend server mainly for handling WebRTC features in my app.
I was just discussing this with my hosting provider and they rejected this request saying that Node.js is heavy and requires Java thus making it impossible to run on Apache so I need to upgrade my account to VPS.
Google tells me the opposite and many people are running Node.js on Apache.
Is the above true or are they trying to take advantage of me?
Best Answer
Actually you can run node.js on a typical shared hosting with Linux, Apache and PHP. Even NPM, Express and Grunt work fine. Here are the necessary steps:
1) Create a new PHP file on the server with the following contents and run it:
2) Install your node app, e.g. jt-js-sample, using npm:
3) Run the node app from PHP:
Voila! Have a look at the working demo of a node app on PHP shared hosting.
EDIT: Here is my new project Node.php on GitHub.