The days of Share Hosting and Unsecured websites is becoming part of the pass. Many users are now demanding websites to secure their personal information. In order to do so web developers will need to install https.
In this Tutorial i will be guiding you on how to set up and secure a web server using Digital Ocean, Serverpilot, and Let’s Encrypt
Create a Digital Ocean Account
Using my Referral Link will give you $10 credit Click Here
Once you have created and verified your account.
Click on the Create a Droplet Button on the top Right
You must select the Ubuntu 16.04.1 x64 Image
If you use my referral link you will only be able to select the $5 or $10 Size. If you didn’t , you will need to load your account in the billing page under your account settings
Either way i recommend you start with the cheapest size.
Add block storage may be skipped, we can learn this in other guide
In the datacenter section you must select the region closet to where you live.
Skip down to Finalize and create
We are only creating one droplet for now, In the hostname choose a name for for the droplet/server. i recommend you choose a simple name like “ubuserv”
Now you may press the create button
After creating your droplet you will receive an email with the following information that you will need in the server pilot section.
IP Address, Username, Password
on to Serverpilot ….
Sign up at ServerPilot
Once log in we must connect the server to are server pilot
Using the information obtain from the digital ocean email you will need to fill the follow field to connect and setup your server
How to install
ssh to your server
move sple.sh to your /usr/local/bin folder
Run this command in your terminal
mv sple.sh /usr/local/bin
sudo chmod +x /usr/local/bin/sple.sh to make it executable
How to use
Run sple.sh anywhere from your console as root
Follow the on-screen instructions as Follow
sudo service nginx-sp restart
0 */12 * * * letsencrypt renew