By uiszaman
For every hosting, after login, we can see the base home page url in the dashboard. For example, Home Directory: /home/sandpit/WebsiteName1.com/ /home/sandpit/WebsiteName2.com/
How to get this path for a particular droplet?
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!
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/WebsiteName1.com/” 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.
Thanks.
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.