Project

General

Profile

[Solved] Is it possible to run Nodejs and PHP in the same server? If that is so, can you please explain the steps to make it happen?

Added by fermartz7 almost 6 years ago

Hello everyone!

I'm new to Lighttpd and I have been reading the forums but I haven't found any example running php and nodejs. I'll appreciate any directions. Thanks in advance!


Replies (2)

RE: [Solved] Is it possible to run Nodejs and PHP in the same server? If that is so, can you please explain the steps to make it happen? - Added by gstrauss almost 6 years ago

One way is to run nodejs on a different port on localhost and to use lighttpd mod_proxy to send certain requests to the nodejs backend. PHP can be handled by mod_fastcgi or mod_cgi.

RE: [Solved] Is it possible to run Nodejs and PHP in the same server? If that is so, can you please explain the steps to make it happen? - Added by fermartz7 almost 6 years ago

@gstrauss Thanks for the quick reply. PHP is already installed and configured by a previous developer that worked on this project. I'll take a look at the documentation you mentioned and I'm guessing I just need to create a new folder and install nodejs there. Then proceed to configure the reverse proxy...am I on the correct path?

    (1-2/2)