Report this

What is the reason for this report?

WP uploaded custom media directory cant be written to even with correct permissions (777)

Posted on May 14, 2018

I created a custom folder to host my media files in my wp install called media Now even with the correct permissions library uploads as well as plugins cannot write files here. Unless I change permission to 777 I cannot normally upload (I want to use 755). And even on 777 WooCommerce cant “Log directory writable”

I believe the issue might be see here as the folder owner/group of everything I ftp upload changes to root root. As seen here: https://i.imgur.com/wWJ3f43.png

Can anyone tell me how to change this? Or does someone know where else the issue could come from?

Thanks a lot in advance!

Here you can see how I added the folder to my wp-config.php: https://i.imgur.com/ef3Jg7y.png



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.

Try this:

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

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.