WordPress.org

Ready to get started?Download WordPress

Forums

Ownership of folders created in /wp-content/uploads/ (6 posts)

  1. albertknox
    Member
    Posted 8 years ago #

    WordPress creates dated folders for uploaded images in this path:
    /wp-content/uploads/
    For example:
    /wp-content/uploads/2006/07

    I wanted to FTP some images directly into the folders that WordPress already created but I did not have permission to enter these folders. I see in my file manager the ownership is for user "httpd" not "myusername".

    Is there a setting somewhere that can change how WordPress creates folders so that I can have access through FTP?

  2. yosemite
    Member
    Posted 8 years ago #

    That is controlled by your host, not WP. Best you can do is try chmodding...

  3. albertknox
    Member
    Posted 8 years ago #

    Thanks for the response.

    I can't chmod because I (myusername) don't have permission to change/access these WordPress created folders owned by user "httpd" in anyway. I asked my web host's opinion and they replied:

    "As for the uploads directory, it was likely created or edited by the WordPress script, which runs as Apache's user httpd. This can sometimes cause the folders to be owned by httpd, and not your user."

    I would like access to access these folders to delete files or add images directly. Also when I tried to upload a non-image file through WordPress it would not let me, saying, "File type does not meet security guidelines. Try another."

  4. yosemite
    Member
    Posted 8 years ago #

    Yeah, you're going to have a problem using both ftp and php to manage anything in uploads/. You can try deleting the directories and re-creating them with your ftp client, then chmod 777 on the directories (so httpd owner can still write into it), but any file you upload with WP/php will be a different owner then if ftp'ed. Might get you closer, though.

  5. albertknox
    Member
    Posted 8 years ago #

    I don't have permission to delete it either. Oh well, I guess it's just something I have to live with. Next time I will make the folders ahead of time so WP won't create it.

    Thanks for your help.

  6. yosemite
    Member
    Posted 8 years ago #

    Some have been able to delete via their host's supplied "File Manager" interface (then gone in and created directories with ftp and chmodded to 777).

Topic Closed

This topic has been closed to new replies.

About this Topic