XS Directory Layout

From OLPC
Revision as of 20:25, 24 March 2008 by Martinlanghoff (talk | contribs) (New page: The base rule is to follow Debian's approach to LSB layout, called the [http://www.debian.org/doc/packaging-manuals/fhs/fhs-2.3.html Filesystem Hierarchy Standard FHS] while we retain some...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The base rule is to follow Debian's approach to LSB layout, called the Filesystem Hierarchy Standard FHS while we retain some freedom to override FHS where it makes sense. Overall, this means that

  • Code should go to /usr (lib o bin)
  • Configuration must land in /etc
  • /var/lib is for permanent data storage (database files, for example)
  • The use /var/cache and /var/tmp should be obvious ;-)
  • Logs to /var/log
  • For webapps in scripting languages /var/www/<appname> can host the code, and http://<hostname>/<appname> will normally be the entry point

Language specific notes: