You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 30, 2022. It is now read-only.
Make note of the IP address of the instance / droplet
Open up a terminal on your computer and key in the following:
ssh -v root@IP-Address-Of-The-Instance
An example would be: ssh -v root@107.170.223.166
Are you sure you want to continue connecting: Yes
At the end you should see something along the lines of:
root@ubuntu-512mb-
Hurray! You have successfully logged into the remote instance. In the terminal type:
exit
Install Fabric via pip
[In the Terminal execute:
pip install fabric (if you get a permission denied error execute: sudo pip install fabric)
If you are using Anaconda execute:
conda install fabric]
Open the file fabfile.py and set the value of env.hosts to the IP address of the instance / droplet as seen at https://cloud.digitalocean.com/droplets. Replace the IP address keyed-in-already with the one you see at the link(retain the single quotes)
In fabfile.py set the value of env.mysql_root_password(retain the single quotes); just like any password
In fabfile.py set the value of env.wordpress_password just like any password(retain the single quotes). Head over to wp-config.php in the downloaded directory and change 'wordpress1' to the value set for env.wordpress_password(again retain the single quotes)
If you have resorted to Option 2 in Setting up a Droplet set the value of env.password (retain the single quotes) in fabfile.py with the password you received in an email from Digital Ocean post creation of droplet / instance
In the unzipped directory execute the following:
fabric live first_time_setup
If you have resorted to Option 2 in Setting up a Droplet you'll be asked to set a new Unix Password. Enter the password you received in an email from Digital Ocean post creation of droplet / instance and hit Enter. Post which you'll be asked to enter a password of your choice. Update the new password you just entered in fabfile.py's env.password (retain the single quotes)
If you are caught in a loop where-in its asking you to re-enter the password again and again hit Ctrl+C and then re-run fabric live first_time_setup
If asked: Yes to upgrade (You'll see something along the lines of: Do you wish to upgrade...additional disk space..)
After installing LAMP components it'll ask you to set the root password for MySQL. Enter the value you keyed in Step(3) (skip the single quotes at the beginning and end)
To continue press the Tab key followed by space; enter the password again; tab followed by space
Then you'll be asked enter the MySQL's root password. Enter the value / password you keyed in Step 8
You'll be asked do you want to change the root password. We don't want to. Just type n
Y(es) to remove anonymous users
Y(es) to disallow root login remotely
Y(es) to remove test database and access to it
Y(es) to reload privileges table now
Wait until the execution is complete (you'll see 'Done...')
About
Deploying Wordpress on a Digital Ocean's Ubuntu Droplet