Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Good Morning, i realized that for some time I have problems with permissions Apache. Let me explain, I created a file upload ajax, when transferring the uploaded file to the folder "files" hangs around, I tried the same script (copy-paste, I have not even touched the link) on a website and there everything works. Surely this is permission problems, how do I solve these problems once and for all permit? I use Apache on Ubuntu. Thanks in advance!

share|improve this question

migrated from Sep 21 '12 at 23:11

This question came from our site for professional and enthusiast programmers.

perhaps you can share some of the code so we can see what's occurring and help you out? – ericosg Sep 21 '12 at 10:38
Question is not quite clear. What is your steps and where is the problem? – webbandit Sep 21 '12 at 10:39
SE Linux can prevent Apache from launching off processes that edit file. – Myforwik Sep 21 '12 at 10:40
The problem I think it's in the permits. I wanted to know how to change the permissions to run the upload. – Filippo Alessi Sep 21 '12 at 10:48
please provide more info as earlier advised. have you tried using chmod to change the permissions to the folder? usually there is an associated www user (but a quick test is to set it to 777 - full access - to see if that's really it, but don't forget to turn it back!) – ericosg Sep 21 '12 at 10:51
up vote 1 down vote accepted

Have you tried using 'chmod' to change the permissions to the folder?

Usually there is an associated www user for which you can set the permissions to be able to have write and read access to the folder, not just read.

More info on the command here.

A way to test for the permissions is to set to full access, i.e. "chmod -R 777 ." if you are in the current directory.

Remember not to leave it on 777 as it's accessible by everyone.

share|improve this answer
Thanks you a lot! – Filippo Alessi Sep 21 '12 at 11:34

Your Answer


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