Question

How to host a php and node application

Hey guys, I have never hosted a node application before but i have this website written in PHP and node. I used node and vue to create the admin panel page and the booking process. Is it possible to host this website with PHP and node

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi there @pujeremy27,

What you could do is use Nginx as a reverse proxy for your Node application and also use PHP FPM with Nginx for your PHP application.

What you could do is follow the steps here on how to setup Nginx with PHP-FPM:

https://www.digitalocean.com/community/tutorials/how-to-install-linux-nginx-mysql-php-lemp-stack-ubuntu-18-04

And also you can follow this article on how to prepare your Node JS for production with Nginx:

https://www.digitalocean.com/community/tutorials/how-to-set-up-a-node-js-application-for-production-on-ubuntu-16-04

Hope that this helps! Regards, Bobby