What is the correct directory layout for a web server in Mac OS X?

I am building a Cherokee web server, a very fast web server with a beautiful configuration web interface written by Spanish hacker Alvaro Lopez Herrera and available from http://www.cherokee-project.com .

So far, I have managed to create the .pkg installer using the Apple PackageMaker.app, which comes with Xcode, but I install everything under / opt / cherokee.

I think I would like the binaries to fall into a directory that is already on the path and the same for manpages and other things.

It seems to me that installing everything with the prefix = / usr may work well, except for configuration files that should go to / etc / cherokee, and the document root should go to / var / www, but I'm not sure.

Will this work or should I use some directory structure in / Library? like / Library / Cherokee / VERSION / ???

The Apple Apache bundle seems to be embedding the prefix = / usr, but configuring the files in / etc / apache 2 and CGI and the / Library / WebServer manual with the document root in / Library / WebServer / Documents.

Maybe my docroot should be / Library / Cherokee / Documents or something like that ...

For reference, the default Cherokee layout is as follows: (dirs only)

http://pastebin.com/f57bc2d21

Thanks for the help in advance! :)

+3
source share
1 answer

/usr. Apple. /opt , Unix Mac OS X.

- /usr/local. Apple (, ..), /usr/local/bin , Mac OS X, .

Mac OS X, ( , Mac OS X), , /usr/local/whatever/.... , , MySQL /usr/local/mysql/... , MySQL /usr/local/mysql/bin/..., . , . ( - /usr/local/whatever/..., /usr/local/bin)

+3

Source: https://habr.com/ru/post/1708341/


All Articles