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

Posted September 3, 2020 472 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.

I’m wondering if I am missing a step in Apache, or there is some other approach.


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


What I could suggest is taking a look at the answer here that explains how to use s3fs and mount your Space:

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:


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.