Report this

What is the reason for this report?

How to add volume to wordpress/content/uploads?

Posted on June 18, 2019

Hi,

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.



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.

Hello,

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:

https://www.digitalocean.com/docs/volumes/how-to/format-and-mount/

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

Hope that this helps.

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.