permission denied!

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
persiangulf
Forum Commoner
Posts: 30
Joined: Tue Jan 29, 2008 12:04 pm

permission denied!

Post 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!
persiangulf
Forum Commoner
Posts: 30
Joined: Tue Jan 29, 2008 12:04 pm

Re: permission denied!

Post by persiangulf »

Is there any answer?
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Re: permission denied!

Post 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.
persiangulf
Forum Commoner
Posts: 30
Joined: Tue Jan 29, 2008 12:04 pm

Re: permission denied!

Post 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!
Post Reply