dcsimg
www.webdeveloper.com
Results 1 to 4 of 4

Thread: Created Directories not Writable

  1. #1
    Join Date
    Feb 2005
    Location
    Florida
    Posts
    219

    Created Directories not Writable

    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.

  2. #2
    Join Date
    Sep 2008
    Location
    Mexico
    Posts
    786
    strange...
    what is the code you are using to create the directories and who is the "owner" of that file?

  3. #3
    Join Date
    Feb 2005
    Location
    Florida
    Posts
    219
    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.

  4. #4
    Join Date
    Sep 2008
    Location
    Mexico
    Posts
    786
    chown()? chgrp()?
    again, please show the code that you used to create the folder... the problem might be there.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles