Make Block Storage Web-Writable

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?


Submit an 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