Like any hosting, how to get home path for a particular droplet?

For every hosting, after login, we can see the base home page url in the dashboard. For example, Home Directory: /home/sandpit/ /home/sandpit/

How to get this path for a particular droplet?

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.

No, there is no such URL, things work little bit different. You can look at the Droplet same as on VPS - it’s not the same as shared hosting. You need to install Web Server, then create directories for your websites. That means, you chose where you want to store your Web site.

This is easy, especially with tutorials DigitalOcean provide. How To Install Linux, Apache, MySQL, PHP (LAMP) stack on Ubuntu 16.04 will help you setup Apache for Web Server as well as PHP and MySQL if you need them.

Second option is to use One-Click images, but this only applies when you’re creating new Droplet. In that case, on Droplet Creation, you can choose LAMP image which contains everything from above tutorial.

Once you have Web Server, by default on Ubuntu, you have /var/www/html directory for Web site files.

If you want to setup multiple sites, or use another directory, you have to use Virtual Hosts. You can learn more about Virtual Hosts in How To Set Up Apache Virtual Hosts on Ubuntu 16.04.

I’m using serverPilot to install the environment on DO and installing wordpress from one-click images provided by serverpilot.

Say, after server installation my web root directory shows as, apps/myDomain/public

So, along with the path from DO, what would be the whole path?

/var/www/html/apps/myDomain/public OR /var/www/html/srv/users/serverpilot/apps/myDomain/public

I’m asking this as I have to use the absolute path like “/home/sandpit/” in Fraudbuster cloaker settings…

They show this picking the home directory path from cpanel and amending the content directory path (domain folder) at the end.

All was OK as long as I was working with shared hsoting. But for DigitalOcean, I just can’t make this.