Click to See Complete Forum and Search --> : Created Directories not Writable


rpcarnell
11-02-2009, 09:43 PM
I have a PHP script that creates directories when I run it.

The permissions for each directory are always 777.

But I cannot upload anything into those directories? How is that possible?

I noticed the user:group for this directories is apache:apache.

If I want to keep that user:group, what should I change? I haven't had this problem before because I always change the user group in the httpd.conf file to whatever I want.

opifex
11-09-2009, 05:47 PM
strange...
what is the code you are using to create the directories and who is the "owner" of that file?

rpcarnell
11-09-2009, 10:09 PM
Well, I should change the user and group in httpd.conf. Right now it is apache:apache.

Unfortunately, I can't get access to it, no password, so I guess I'll have to find other ways around the problem.

What puzzles me is that the server is not uploading pictures into a directory whose permissions are 777.

opifex
11-09-2009, 11:25 PM
chown()? chgrp()?
again, please show the code that you used to create the folder... the problem might be there.