Report this

What is the reason for this report?

How can I pull my source code out?

Posted on February 27, 2020

I am taking over our WP website project and need to get the source code. How can I get the code out of DO?



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!

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.

Hi @jbaird,

You’ll need to enter your account via this link - https://cloud.digitalocean.com/login . From there you can actually reset the root password for your droplet if you don’t know it.

Once you are in, you can get to the DocumentRoot of your domain and use either Rsyc/SCP or FTP to download the code.

If you don’t know where is the DocumentRoot of your website, you can get it by following these steps :

First determine which Web Service you are using by executing the following command

netstat -tulpen | grep 80

It is most probably going to be either Apache or Nginx. Both should be located in the following directories /etc/apache2 or /etc/nginx. From there find your conf.d folder and go in. There you’ll see your website’s virtual configuration file. In it, you’ll be able to see the DocumentRoot

Regards, KDSys

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.