jishi / node-sonos-web-controller

A web based controller for Sonos utilizing web sockets for a native look and feel
MIT License
248 stars 45 forks source link

Run under freeBSD #7

Closed jishi closed 10 years ago

jishi commented 10 years ago

@reefwarrior, maybe this works

Is there perhaps a way to have the system run on apache with php? Reason being I would like to have the whole system run off 'FreeBSD'

jishi commented 10 years ago

I created a ticket for you, hopefully you will get a notification about it.

There is no reason for running it under apache or php, since this is a standalone framework. If you already run apache, and want to host this on the same port (80), you can use apache as a reverse proxy. However, it needs to support websockets, so you must use http://httpd.apache.org/docs/2.4/mod/mod_proxy_wstunnel.html in that case.

I suggest that you just host node.js standalone, using pm2 as a daemon service host.

reefwarrior commented 10 years ago

Hi! Thank you - hope so :)

Will have a look quickly this evening at it :) Busy in/around the house painting NOT FUN! :)

ynot123 commented 10 years ago

I run nodejs using a different port (8000) for the sonos controller and the main webserver uses 8080 in freebsd (Nas4free). A bit of scripting in your home webpages and voila.

reefwarrior commented 10 years ago

Cool I will try that :) Now for php... now THAT is a challenge :(

On 02/04/2014 02:26 AM, ynot123 wrote:

I run nodejs using a different port (8000) for the sonos controller and the main webserver uses 8080 in freebsd (Nas4free). A bit of scripting in your home webpages and voila.

— Reply to this email directly or view it on GitHub https://github.com/jishi/node-sonos-web-controller/issues/7#issuecomment-34017924.

jishi commented 10 years ago

I think there is some sort mixup of concepts here. PHP and Node.js is sort of competing frameworks, in the same "domain". There is no "run under php", it's more of, "runs INSTEAD of PHP".