You are not logged in.
I have some experience with creating and managing Drupal sites, but only in hosted environments. I am now trying to set up a couple of sites on my own desktop machine and I see that the drupal package installs the sites under /var/lib/drupal instead of putting them under the DocumentRoot (at /srv/http). Can anyone tell me why this is the case? Why using /var/lib?
Offline
I have no experience with drupal but I am thinking that if it uses its own user (perhaps http) that /var/lib/drupal is the homedir.
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Online
In addition to graysky's good point, /srv is for you, not for pacman. The system's version resides in /var/lib, /lib or other paths with explicitly static or otherwise important content. One traditionally symlinks package management installed web applications to /srv/whatever. I'd personally complain a lot, if pacman touched /srv in any way, that's for productive servers and not for library files.
Or, shorter answer: The probability, that $USER will throw files into /srv manually is huge and pacman doesn't like file conflicts, so we don't package files to /srv.
Offline
In addition to graysky's good point, /srv is for you, not for pacman. The system's version resides in /var/lib, /lib or other paths with explicitly static or otherwise important content. One traditionally symlinks package management installed web applications to /srv/whatever. I'd personally complain a lot, if pacman touched /srv in any way, that's for productive servers and not for library files.
Or, shorter answer: The probability, that $USER will throw files into /srv manually is huge and pacman doesn't like file conflicts, so we don't package files to /srv.
This makes sense, BUT:
if the drupal package is only supposed to install a system version for the user to move around and/or symlink and not a production-ready system, I would expect:
1. that the pacman-installed drupal would NOT work (i.e that it would not be accessible by apache)
2. That the wiki page would make it clear that one of the two actions above is expected (symlink or copy everything under /srv)
instead what happens is tha at the end of the installation process there is a perfectly functional site being served from a location outside the DocumentRoot---that, I don't like.
Perhaps the wikipage should at least be updated to make pacman's strategy clearer.
Offline
You are free to create a wiki account and open a discussion in the article. I personally don't think it's that specific page's job to teach you how the linux file system is supposed to work, neither is it supposed to guess, how you like your doc root, but don't let me stop you from discussing it with the authors of the article.
Offline
instead of putting them under the DocumentRoot (at /srv/http).
Your document root is wherever you configure your http.conf (or http-vhosts.conf) to point to. Just point the DocumentRoot of the host/vhost to the directory with the Drupal content.
/srv/http is just the default entry in the config file and it's a completely useless default if you have multiple domains/sub-domains.
Symlinking seems like a less than ideal workaround. If you want to serve files from /var/lib/whatever just serve the files from /var/lib/whatever and be done with it.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Whatever the user ends up doing, /srv is a dead zone for pacman.
Offline
stefano wrote:instead of putting them under the DocumentRoot (at /srv/http).
Your document root is wherever you configure your http.conf (or http-vhosts.conf) to point to. Just point the DocumentRoot of the host/vhost to the directory with the Drupal content.
/srv/http is just the default entry in the config file and it's a completely useless default if you have multiple domains/sub-domains.
Symlinking seems like a less than ideal workaround. If you want to serve files from /var/lib/whatever just serve the files from /var/lib/whatever and be done with it.
Well, that what exactly my point, sorry for having being unclear:
pacman should install in /var/lib and the wiki page should make clear that the user should either change httpd.conf to point there or move the fresh drupal install under /srv/http (or set up a new root somewhere else, etc.)
At any rate, I'll follow up on the wiki discussion page
Offline
I still don't see what's wrong with the wiki arcticle. It has "Include conf/extra/drupal.conf" for the httpd.conf and "/usr/share/webapps/drupal/.htaccess" changes mentioned. What's wrong with that?
Offline