Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

up vote 4 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:

/opt/<appname>
/usr/local/share/<appname>
/var/nodejs/<appname>
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

 
discard

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.