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!
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
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.