[EP-tech] Re: File upload failed

rchilliard at mun.ca rchilliard at mun.ca
Fri Mar 16 12:18:15 GMT 2012


Hi Fran,

   I think it will depend a bit on your particular apache setup, however, I was able to set the apache user on our system by specifying the values of for APACHE_RUN_USER and APACHE_RUN_GROUP in the Apache envvars (environment variables) file, (ours resides in /etc/apache2/envvars) as below:

export APACHE_RUN_USER=eprints
export APACHE_RUN_GROUP=eprints

Before making edits to the config, it's probably best to make a backup of the original; you will also likely need to be running as the root user to edit the config. Your config file likely has these variables exported already (most likely as apache/apache or www-data/www-data), so be sure to comment out or replace any existing definitions.

After making the changes, you will have to restart Apache before they take effect. It will also be necessary to revert ownership of the documents directory back to eprints/eprints. In configuring our repository, I found that running apache as eprints and setting blanket ownership within the eprints directories to the eprints user helped to solve essentially all permission issues.

Cheers,
Casey

________________________________
From: eprints-tech-bounces at ecs.soton.ac.uk [eprints-tech-bounces at ecs.soton.ac.uk] on behalf of Fran Callaghan [fran.callaghan at dcu.ie]
Sent: Friday, March 16, 2012 9:15 AM
To: eprints-tech at ecs.soton.ac.uk
Subject: [EP-tech] File upload failed

Hi,

I’ve just installed 3.2.9 via yum and created a test repository. Before I carry out any branding etc I tried to create a new eprint but when I try to upload a file I get the error “File upload failed”. No other details. Initially I thought this was due to file system permissions but I have added the user apache to the eprints group and eventually even changed the ownership of the documents directory to apache. The only comment I can see on this is on the wiki and suggests… “Perhaps you forgot to set Apache to run as eprints:eprints” Can anybody instruct me how to “set apache to run as eprints”? Or even tell me how I can get additional details on why “File upload failed”?

Thanks for any help!

Fran


This electronic communication is governed by the terms and conditions at
http://www.mun.ca/cc/policies/electronic_communications_disclaimer_2011.php
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20120316/de224452/attachment.html 


More information about the Eprints-tech mailing list