Can't see website files on my droplet

Posted January 28, 2021 343 views
WordPressDigitalOcean Droplets

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.

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

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!