• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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