Question

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

Posted September 3, 2020 340 views
DigitalOcean Spaces

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

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.

×
Submit an Answer
1 answer

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

by Brian Boucheron
Flexible and scalable data storage is a baseline requirement for most applications and services being developed today. With today's complex deployments, containers, and ephemeral infrastructure, the days of simply saving files to disk on a single server are gone. Cloud providers have developed services to fill the storage needs of modern application deployments, and they mostly fit into two categories: object storage, and block storage.