By ss4502
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.
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!
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
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.