Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

For some time I am developing an application in Nodejs. And I asked where in the Linux file system on a server was the best place to leave it running. Since PHP5 and Apache2 is in /var/www , and tomcat has its own system.

I wonder where is the best place?

share|improve this question
up vote 5 down vote accepted

It doesn't really matter where you put your Node.js but more how you set up this place. The right permissions are most important.

Possible locations (from a logical point of view) are:

share|improve this answer
I guess it must be permissions only for root and run? – AlejoNext Jul 11 '12 at 0:24
It is more secure to run node.js not as root (if possibe) and let the directories have the owner of the server user – Christopher Perrin Jul 11 '12 at 0:32

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.