Report this

What is the reason for this report?

Wordpress file permissions

Posted on July 14, 2014
emp

By emp

OK… I have 2 users for my droplet root (unused) user (user with all privileges, obviously not the real name)

However, I chowned wp-content/uploads to user and chmodded it to 775

Wordpress is unable to uplaod anything unless I change permissions to 777

Any pointers?



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

This comment has been deleted

sudo chown -R www-data:www-data /var/www

worked perfectly fine for us on our website http://www.reckontalk.com

Wordpress most likely runs as the user “www-data”, so you will need to allow it to write to wp-content/uploads.

Since the directory already allows the members of the group that owns it to write to it (775), you just need to change its group ownership to the www-data group:

sudo chgrp www-data wp-content/uploads

Make sure you apply it recursively so that it can write to its subdirectories as well:

sudo chgrp -R www-data wp-content/uploads
sudo chmod -R g+w wp-content/uploads

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.