Closed (fixed)
Project:
Provision
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
3 Apr 2008 at 20:04 UTC
Updated:
12 Jun 2014 at 08:41 UTC
Jump to comment: Most recent
The sites directory and associated settings.php file has the wrong permission:
$ ls -al
total 28
drwxr-x--- 5 hostmaster hostmaster 4096 2008-04-03 15:25 .
drwxrwxr-x 6 hostmaster hostmaster 4096 2008-04-03 15:57 ..
drwxr-x--- 5 hostmaster hostmaster 4096 2008-04-03 15:24 files
drwxr-x--- 2 hostmaster hostmaster 4096 2008-04-03 15:24 modules
-r-xr-x--- 1 hostmaster hostmaster 280 2008-04-03 15:45 settings.php
-rw-r--r-- 1 hostmaster hostmaster 593 2008-04-03 15:45 site.php
drwxr-x--- 2 hostmaster hostmaster 4096 2008-04-03 15:24 themes
Workaround:
chmod o+X .
chmod o+r settings.php
Resulting permissions:
total 20
drwxr-x--- 5 hostmaster hostmaster 4096 2008-04-03 15:24 files
drwxr-x--- 2 hostmaster hostmaster 4096 2008-04-03 15:24 modules
-r-xr-xr-- 1 hostmaster hostmaster 280 2008-04-03 15:45 settings.php
-rw-r--r-- 1 hostmaster hostmaster 593 2008-04-03 15:45 site.php
drwxr-x--- 2 hostmaster hostmaster 4096 2008-04-03 15:24 themes
Maybe that should be:
chown :www-data . settings.php
... instead... Not sure about that. There's also that hack to provide the db user/password through the apache environment we could consider...
At any rate, with this (and after working around the other bugs I filed today) I was able to create my first drupal through hostmaster, even though hostmaster tries to recreate the site at every cron job...
Comments
Comment #1
anarcat commentedI think I fixed this in http://drupal.org/cvs?commit=110215
The hostmaster user needs to be part of the www-data group, however, and this needs to be documented, i'll file a seperate bug for this.
Comment #2
anarcat commentedActually, it's not quite there yet:
Comment #3
anarcat commentedComment #4
anarcat commentedI'll try to fix that today.
Comment #5
anarcat commentedI fixed this in a later commit. I simply made the settings.php chgrp www-data.
Comment #6
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.