Can't see website files on my droplet

I have a WordPress site hosted on DigitalOcean, however I can’t see the site files on the droplet (I’m on a Mac). I know they exist since the website is live. I know very little about DigitalOcean, so I may be omitting important technical information. Any help or insight would be greatly appreciated.

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.

Hi there,

By default, the website files would be in the /var/www/html directory.

If you are connecting via SSH to your Droplet, you can use the cd command to get to that directory:

cd /var/www/html

If the files are not in there, you can use the cat command and check your Apache configuration file and find the document root:

cat /etc/apache2/sites-enabled/your_site

If you are using Nginx instead of Apache, you can use this command:

cat /etc/nginx/sites-enabled/your_site

Then look for the document root path.

Let me know how it goes! Regards, Bobby