bdawg.io
12/29/2018, 10:10 PM/srv
directory defined by the FHS (Filesystem Hierarchy Standard) since 2004 which most Linux distros follow
contains site-specific data which is served by this system./srv
napperley
12/29/2018, 10:15 PM/var/www
directory is used (for Apache).napperley
12/29/2018, 10:21 PM/srv
directory doesn't exist in Debian and all distros based on Debian (incl Ubuntu and Linux Mint).orangy
bdawg.io
12/29/2018, 10:28 PM/srv
on Ubuntu for even our PHP applications (regardless of Apache or PHP-FPM) for 5 years now. It absolutely exists on base Debian too (check for yourself docker run --rm debian ls -ls / | grep srv
)bdawg.io
12/29/2018, 10:29 PMSite-specific data which is served by the system
bdawg.io
12/29/2018, 10:33 PMIn particular, paths specifically created by the FHS editors, such as /media/ and /srv/, do not see widespread usage.^^ This is certainly the case but doesn’t make it any less part of the defined standard
bdawg.io
12/29/2018, 10:37 PMWhen targeting Linux as a platform, application developers want to have some assurance that the code they write on one Linux distribution will run on other Linux distributions without having to go through extra effort. This matches their experiences on other popular platforms, such as Windows or Mac OS X.
The LSB workgroup has, as its core goal, to address these two concerns. We publish a standard that describes the minimum set of APIs a distribution must support, in consultation with the major distribution vendors.
bdawg.io
12/29/2018, 10:51 PM/srv
in its configuration that’s just commented out for legacy reasonsnapperley
12/29/2018, 11:10 PMbdawg.io
12/29/2018, 11:41 PM/srv
provided by Ubuntu (as a sub-distro of Debian). This can also be verified docker run --rm ubuntu ls -ls / | grep srv
bdawg.io
12/30/2018, 2:28 AM/srv
directory and using /srv/www
as the HTTP document root (it still documents /srv/ww
in the latest update from January 2016).
Similarly, the Debian wiki documentation on its hierarchy first published in January 2004 directly references FHS (which included /srv
as of 2004)