EPrints Technical Mailing List Archive

See the EPrints wiki for instructions on how to join this mailing list and related information.

Message: #03214


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

[EP-tech] Apache can't write ?


Greetings,

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:
/usr/share/eprints3/archives/theoluniv/html/en/archive/00/00/00/01/index.html
Failed to mkdir
/usr/share/eprints3/archives/theoluniv/documents/disk0/00: Permission
denied / Unable to write to
/usr/share/eprints3/archives/theoluniv/documents/disk0/00/00/00/01/01/Completedissertation.pdf

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 ?

Regards,
Willem.

(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)