I have a website on a FreeBSD server which is reachable from the Internet. I know I can run it from whichever directory I wish. But still, which directory is more right, common and recommended? At the moment I'm running it from /usr/local/my_website123

Your advice?

  • It is a very flavor thing. I typically prefer to have a /srv directory, where all services are running from. But it is a linux custom, freebsd likes /usr/local .
    – peterh
    Aug 27, 2017 at 2:30

1 Answer 1


Such questions are asked to man hier, but it doesn't say anything about /www.

Apache runs its default host from /usr/local/www/apache2x/data, so I guess /usr/local/www/my_website is generally fine.

  • And the most web applications installed into /usr/local/www so I suggest this directory too.
    – uzsolt
    Aug 26, 2017 at 7:52

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