[EP-tech] Re: Apache can't write ?

Lizz Jennings e.jennings at bath.ac.uk
Thu Jul 3 09:26:10 BST 2014


I added eprints to the apache group and apache to the eprints group to 
enable writing.

Lizz

On 03/07/2014 08:11, W. Koster wrote:
> 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)
> *** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
> *** Archive: http://www.eprints.org/tech.php/
> *** EPrints community wiki: http://wiki.eprints.org/
> *** EPrints developers Forum: http://forum.eprints.org/

-- 
Lizz Jennings BA MSc ACLIP MCLIP (Revalidated 2013)
Technical Data Officer
The Library 4.10, University of Bath, Bath, BA2 7AY UK
Ext. 3570 (External 01225 383570)
E.Jennings at bath.ac.uk



More information about the Eprints-tech mailing list