问题
I am using nodejs and php on my website but when I want to host it on a server they told me there is no server that can run both node and php.
Is there anything that could take the place of nodejs and do the same work not requiring a server for it? I am using nodejs and socket to make realtime updates for my website .
回答1:
A couple of options are DigitalOcean, AWS (Amazon Webservices) and Heroku.
Personally, I'd go with DigitalOcean. IMO it's the best for small projects; user friendly (good for beginners as well as advanced users), neat stability, easy scalability and best of all: insanely affordable. You can run both in one 'droplet' as you have full control over the OS.
回答2:
You can do it at A2 Hosting This allows Apache to act as a Proxy to the Node aplication,
A2 How to install and configure Node.js on managed hosting accounts
来源:https://stackoverflow.com/questions/28298627/nodejs-and-php-hosting