For when you want to make everything you learn on Free Code Camp visible to the big bad world !
This is part 1 in “How to set up your own cloud based web server”
Let’s break the task into 5 smaller pieces:
- Create a server ← You are here !
For me, the decision to set up my own web server boiled down to three reasons:
- As we will see, paying for a VPS (virtual private server), costs a fraction of a managed, hosted offering.
- Setting up your own server allows you to control all facets of the server and how it operates, right down to the command line level.
- If you are reading this article it means you are most likely interested in learning more about web development. Servers are an integral part this technology, therefore, setting up and running your own web server will provide you with invaluable skills.
- We will be using a service called DigitalOcean to host our server. DigitalOcean offer very competitive pricing for everything from basic servers to high-memory computing engines.
- Their $5 a month droplet (droplet = server in DigitalOcean parlance) will be more than sufficient for our needs. It comes with 512mb RAM and 20Gb SSD storage.
- You can get a $10 (two months for free) using this link here.
Once you’ve made an account on DO (DigitalOcean)using the link above, go to your dashboard, click on the green Create Droplet button.
- On the next page, select the following options as I have in the images. We will be using the most up-to-date, stable version of Ubuntu server as our operating system.
- Lets ignore the Block Storage option (I’ll be doing an article on this later) for now.
- Select a Region which is closest, geographically, to you:
- No need to select any Additional options at this time.
- Now, the next step regarding SSH provides an extra layer of authentication security for your server. I do advise setting this up, however, I believe it is outside the scope of this introduction article and deserves its own dedicated post so I’ll cover this at a later date. For now, leave these options unchecked.
- Go ahead and select how many servers you need, 1 is fine for us today. Then, name your server i.e. ‘ myFirstServer ’ or whatever other name you wish.
- After you click on Create, it will take DO less than a minute to build your server out for you — amazing !
- Soon after, you will receive an email with the credentials for your new server.
.. and that is that. Well done! You’ve just created a new Virtual Private Server or Droplet on the DigitalOcean platform — clap yourself on the back.
Next up, we will set up your new server here , by logging in remotely, setting up users and completing some basic security steps !
Lets do this …
Setting up a new Ubuntu server for the first time.
This part 2 in “How to set up your own cloud based web server”