Question

Spaces files > directory access in Droplet (Apache, Ubuntu)

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


Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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:

https://www.digitalocean.com/community/tutorials/object-storage-vs-block-storage-services#what-is-object-storage

Best, Bobby