Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have some load balanced web servers but need a common place to store uploads files. I've got a file server with NFS and have successfully mounted NFS volumes on each of my web servers. The issue I'm having is when I try to complete the actual upload:

PHP Warning: move_uploaded_file(/5000001-1366067447-TestFile.docx): failed to open stream: Permission denied in /xxx/upload.php on line 30

I have a feeling it may have to do with the way the NFS share has permissions setup and/or the way it is mounted. On the NFS server, the shared folder user and group is nfsnobody but, on my web servers, the apache process is running under the apache user. I've also set permissions on the source folder to be 755.

As a root user on the web servers, I can create/modify files with no issue on the share. Just not from Apache. I feel like I'm overlooking something simple but I'm stuck on this issue. Really appreciate any advice!

share|improve this question
add comment

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.