Spaces has folders and files I want to access on a Droplet, which is a LAMP stack on Ubuntu. Ultimately, I want to access those files from within the CMS on Droplet.
I would like to access the Spaces files from within the Apache directory /var/www/html/images. Following these two tutorials (s3fs) and some stack overflow, I got the top level of Spaces mounted, but could not access the files or subfolders.
https://jianjye.com/p/access-digitalocean-spaces-from-droplets-via-cli/ https://dotlayer.com/how-to-mount-s3-wasabi-digital-ocean-storage-bucket-on-centos-and-ubuntu-using-s3fs/
I’m wondering if I am missing a step in Apache, or there is some other approach.
Thanks
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!
Hello,
What I could suggest is taking a look at the answer here that explains how to use s3fs and mount your Space:
https://www.digitalocean.com/community/questions/mount-point-with-spaces?answer=40902
In general, as suggested in the answer, Spaces are not meant to be accessed like a file system. They are API driven and most often used programmatically. Check out this tutorial to learn more about object storage and if it’s right for your use case:
Best, 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.