• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Issue Wordpress "uploads" folders getting created with root permissions

Ned Griffith

New Pleskian
I have dozens of WordPress sites on my Plesk Onyx server.

They run on PHP 7.03 and NGINX.

When Wordpress automatically creates the new year/month directories each month in the /wp-content/uploads directory, the folders are getting created with root permissions instead of the "{user}" permissions.

When a WordPress Administrator logs in and attempts to upload media through the WordPress admin panel he unable to do so due to the root permissions.

I have to manually change the ownership of the folders each month after they get created in order for them to work properly.

Why is this happening? I have searched for answers/solutions and found nothing.
 
maybe it wouldbe helpful for the comunity that you describe a bit more your settings & plesk version ilke

PHP runs as fpm or fastcgi?
how looks like the permission and ownership of the automatically created folders
 
What other informatino do you need to know? I am running PHP as FPM on NGINX.

Wordpress sites used to work fine. I don't know what settings might have changed. Each time a new "uploads" subdirectory gets created, it gets created with root ownership.

What else do you need to know?
 
I realise this thread is a year old, but I've been bumping into this exact problem on a VPS for several months now, and the customer is starting to get annoyed about it, having to contact me everything month to update permissions (it's a managed VPS). For a while I thought it might be revslider, as that had root permissions, but it's still happening despite my having corrected that. I've put a cron job in place to fix it, but that's a band-aid.

OP, did you track down the source of the problem?
 
Back
Top