[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[EP-tech] Apache can't write ?


I've installed eprints on a new ubuntu system using the repository:

  deb http://deb.eprints.org/ stable/

Now we're getting error messages like:

Failed to mkdir /usr/share/eprints3/archives/theoluniv/html/en/archive:
Permission denied
Can't open to write to file:
Failed to mkdir
/usr/share/eprints3/archives/theoluniv/documents/disk0/00: Permission
denied / Unable to write to

All dirs are owned by eprints:eprints

root:/usr/share/eprints3/archives/theoluniv/html# ls -l
total 4
drwxrwsr-x 9 eprints eprints 4096 jul  1 15:51 en

but apache is running (as per default) as www-data:www-data so it's no
wonder apache can't write anywhere.

Instead of manually changing all directories to group-www-data or
brutally setting write-rights for everyone, is there a more structural
solution. Maybe a configuration setting that is missing putting eprints
in the www-data group, or something ?


(it used to work on out old server, but that may have been some manual
labor getting it to work which I rather want to avoid)