How to add volume to wordpress/content/uploads?


I am using WordPress on Ubuntu 18.04 droplet.

I would like to add volume to /var/www/html/wp-content/uploads to store media files.

What are the exact SSH commands and steps I need to take?

Thank you.


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.


This is really well documented in the Digital Ocean’s official documentation. They have a step by step guide on how to How to Manually Format, Mount, and Partition Volumes here:

You just need to change the mount point to match your uploads directory.

Hope that this helps.