• Hi All,
    This one is a little bit weird. But I’m hoping you might have some advice.
    I am running WordPress 4.2.2, on Centos 6.6 (Final)

    Here is what happens.
    I create a deploy a site, in an automated fashion, and the site has NO upload directory.
    Then use the site admin to upload some media, and I get an error about not being able to move the uploaded content into the uploads directory.

    This is because wordpress is creating the uploads directory owned by root. (the rest of the site is owned by apache)

    If I try to pre-create the uploads folder, then I get an error when the image is attempted to be moved into the upload/<year>/<month> folder.

    Here is where it gets weird… if I delete the upload directory, rm -rf uploads/, and then try to upload media. This time wordpress creates the folder (and sub folders) as owned by apache, and everything is fine.

    Why is it that the FIRST TIME wordpress creates folders, it uses root, but subsequent times, it correctly uses apache?

  • The topic ‘Uploads directory gets created with incorrect ownership’ is closed to new replies.