WordPress.org

Ready to get started?Download WordPress

Forums

New month, upload media folder gets created by wrong user (1 post)

  1. dionsis
    Member
    Posted 4 months ago #

    This has probably been tackled before but after searching a load through google I can't seem to find anyone with the same thing. Maybe I'm wording it wrong.

    At the start of every new month, WordPress creates a new folder.
    So this month it created uploads/2014/04

    The problem I have is, WordPress is creating this folder as the root user instead of the nginx user.
    This means that people uploading pictures in my wordpress backend get an error until I CHOWN the directory from root to nginx.

    After that all files upload file, and all the files are owned by nginx as you would expect. In nginx server, user is nginx.

    I'm not sure why it's using root but I'd love to stop it in time for May.

Reply

You must log in to post.

About this Topic

Tags

No tags yet.