Several questions regarding compiled web server (/usr/local)
Hello,
it's the first time I am not using Debian packages and
I have several questions regarding the correct use of
paths and permissions. Cherokee runs under www-data:www-data.
I build Cherokee Web Server from source and there are
some differences between that and the package installation:
1)
- Package: Uses /etc/cherokee/cherokee.conf and /var/www
- Source: Uses /usr/local/etc/cherokee.conf and /usr/local/var/www
- Question: While somehow the path of the config file looks
reasonable, I am not sure if it's common practice
to have the www-dir in /usr/local?
2)
- Package: Had access to some graphs in /var/lib/somewhere.
Can't remember but it just worked.
- Source: Now accesses /usr/local/var/lib/cherokee/graphs
but has no permission.
- Question: I am confused because of the permissions in
/usr/local (2775 root:staff). I would simply change
the permissions of /usr/local/var/lib/cherokee
recursively to root:www-data and chmod it to g+w.
I am not sure if this is common practice or wrong!
3) Then I have one last question before I press "Send": Shouldn't the
compilation process configure the permissions of folder
that it needs to write in? (looking to question #2.)
Thanks in advance!
Reply to: