Question

Make Block Storage Web-Writable

Posted July 6, 2021 103 views
Block Storage

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?

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.

×
Submit an Answer
1 answer

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