Report this

What is the reason for this report?

Make Block Storage Web-Writable

Posted on July 6, 2021

On my older server (Ubuntu 18.04), I would just be able to create block storage and mount it in my droplet, and create a symlink to the mounted directory into the /public_html directory for media uploads. With write permissions, uploads from my website would work.

On my new setup (Ubuntu 20.04), when I do the same thing, it does not allow write access whatever permissions I set. Is there a new/differnt way to do this?



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.

Hi there @skinniyah,

As long as you are using EXT4 this should work as normal.

I could suggest making sure that the user that your web server is running as is actually the owner of the folder that you are trying to write to.

If you are using Nginx or Apache, the default user is www-data, you could change the ownership of your upload directory with the chown command:

chown www-data:www-data /path/to/upload_directory

Let me know how it goes. Regards, Bobby

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.