By majix
Hi, The Block storage feature is awesome, i was one of the beta testers. I’m using Wordpress and i want to connect Media library or Uploads folder to one or multiple block storages i have created. I could do this buy linking folders in Ubuntu, but this just works for one volume. Is there any other way to do this that i don’t know?
Thank you in advance
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!
Hey everyone,
Just want to add for other folks that may help, if your using this article which is awesome so kudos guys, and your WordPress install whether one click or LAMP stack, your uploads folder will not exist until you upload a file to it or create it.
Hope that helps, Thanks for info above again!
I’m not sure how you would be able to point the uploads folder at multiple volumes at once short of doing something like setting up a RAID array. I’m curious what you use case is?
If you want to move the location of the WordPress Media library and Uploads folder without using sysmlinks, you can define the location in your wp-config.php file. You can not use absolute paths though. So if the folder is located at /mnt/volume-nyc1-01/wp-uploads, you would set:
define('UPLOADS', '../../../../mnt/volume-nyc1-01/wp-uploads');
Some other points to consider are that you need to ensure the folder is owned by the webserver user. On Ubuntu, this would be www-data To do so, run:
- sudo chown www-data:www-data /mnt/volume-nyc1-01/wp-uploads
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.