Question

Novice: How do I get access my code/directories?

My tech person has gone MIA and he never placed the code on our Bitbucket account… So I have no way of allowing others to help get the site finished. Since Digital Ocean is my account, I was able to get into the console and put in the password. Once I did, I got a message that the ubuntu sever needed to be rebooted. Now I’m don’t know where to go from there. Is there a way to extract my website’s code (with a particulate command) so others can work on it? Thank you.


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.

Accepted Answer

The easiest way for someone who is not super familiar with the Linux command line to access their web files would be via SFTP. Each droplet includes an SFTP service enabled by default. You can use a client like FileZilla to access your files.

This will work as long as your droplet uses password authentication for SSH and not an ssh key. Based on your having been able to log into the console this is likely to be the case.

When you first log in via SFTP you will be in the folder /root. If your site is running on a LAMP stack (Linux Apache MySQL PHP) your web files are likely to be located in /var/www/html or /var/www/. If you’re running a different software stack they may be located elsewhere. If you’re unable to find your web files under /var/www/ let us know and provide any other details about the site you can share publicly as it might help in determining what software is running. Once we know that, we can help you identify the web root based on configuration files.

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.

Success! I was able to download the files. It was in a different folder than /var/www/, but I eventually found them! Thanks again!