-
Notifications
You must be signed in to change notification settings - Fork 3
Home
Digital Ocean Web Interface
Got to https://cloud.digitalocean.com/droplets and click on the Create Droplet icon
This is the password method.
- Enter the desired hostname at the top of the page. For this example we will choose 'school1'
- As of 5/2/2014, the standard configuration of 512MB / 1 CPU 20GB SSD DISK 1TB TRANSFER is suficient for a development machine
- Select a region most appropriate to the applicaton.
- For the Linux image, this project is being developed on an Ubuntu 14.04 x64 Linux Image
Thats it! Select create droplet and check your email for the password
Log in to the new droplet with SSH and the password provided by Digital Ocean in the email that confirms the creation of your new droplet
$SSH root@xxx.xxx.xxx.xxx
password
https://www.digitalocean.com/community/articles/initial-server-setup-with-ubuntu-12-04
Change the root password of your newly created droplet with
passwd
command, then create a new user with
adduser NewUser
Just set the password for the new user and press enter thru the next prompts
Edit sudo priveledges with shell command
visudo
Change the user privilege specification
root ALL=(ALL:ALL) ALL
NewUser ALL=(ALL:ALL) ALL
Save this file c-x and now disable root access
nano /etc/ssh/sshd_config
you can change the Port and ability to login as root
Port ##
PermitRootLogin no
reload ssh
Close this session
ssh NewUser@xxx.xxx.xxx.xxx
Now run
sudo apt-get update
sudo apt-get upgrade
Now your droplet has been set up, it has been updated and you are ready to start installing the software required to run a django server with Apache
Install
sudo apt-get install apache2
Go to the droplet IP to see if Apache was installed correctly
Now install mod-wsgi
sudo apt-get install libapache2-mod-wsgi
Restart apache2
sudo service apache2 restart