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?

1 Answer 1


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:

  • I guess it must be permissions only for root and run?
    – AlejoNext
    Jul 11, 2012 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 Jul 11, 2012 at 0:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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