Page 1 of 1

permission denied!

Posted: Wed Feb 13, 2008 7:45 am
by persiangulf
hi all,
I'm a beginner in php uploading file and using w3schools upload sample. The problem is that when I want to move the uploaded file,I get warning that the permission is denied.I use Linux and I have the complete permission on that directory and the I am the owner of the directory and file.
I would be very grateful If someone can help me.By the way some days ago I wanted to open a file in my directory but I got the permission denied warning!

Re: permission denied!

Posted: Thu Feb 14, 2008 3:09 am
by persiangulf
Is there any answer?

Re: permission denied!

Posted: Thu Feb 14, 2008 3:19 am
by Benjamin
Who has complete permission? What user? What user is apache running as? Does that user have traverse and write permissions? Does that user have traverse permissions for every parent directory all the way to root?

If that doesn't solve your problem, it could be an SELinux issue.

Re: permission denied!

Posted: Thu Feb 14, 2008 8:17 am
by persiangulf
Of course the owner is root but the problem is that I can not even open a file in the site directory in which I am the owner (not the root) and have complete permission on it!