No matter what server-provider you are using I strongly recommend you have a hot spare ready on a different provider
Aside
If you have not read my previous posts I have now moved my blog to the awesome UpCloud host (signup using this link to get $25 free UpCloud VM credit). I compared Digital Ocean, Vultr and UpCloud Disk IO here and UpCloud came out on top by a long way (read the blog post here). Here is my blog post on moving from Vultr to UpCloud.
Buy a domain name here
Now on with the post.
Murphy’s Law
I recently had an issue where I set up a website for a friend. I invested 6 hours into setting up..
I setup…
- Debian OS
- NGINX Web Server
- MySQL Database
- PHP 7.2
- PHP-FPM Child Workers
- HTTPS Certificate
- Security (Firewall/Headers/SSH, WordPress, Plugins etc).
- Installed WordPress and Plugins
- Setup DNSSEC
- Etc
I had tested GTMetrix scores = less than 1 second. Security headers were tested and I was happy with the site.
The server and backups were automatically deleted after 7 days while I was away from my keyboard because I assumed the account was valid and had credits.
Lesson Learned
- Always have a backup (of the server, setup/ www, MySQL etc).
- Script setups (Ansible, Puppet or Scripts) to sate time redeploying if need be.
- Backups are not always available.
- Do have setup documented (Check)
- Do have a disaster plan
I have guides on setting up a server on UpCloud, AWS, Vultr, Digital Ocean but setting up can be rather repetitive so how can you prevent resetting up servers?
Why Plan for the Worst
- Companies disappear.
- Some hosts go down.
- Some hosts have weird trial modes and internal process that could take your site down.
- Human error?
- Murphy’s Law
How I will prevent this in future
- I am building a Java desktop app for Windows/OSX/Linux app that will deploy and set up on UpCloud/Vultr/Digital Ocean providers and allow for 1 click deploy and backup and restore.
- I am going to re-establish replication between servers with RSync etc.
- I am going to start to automate installs and environments.
- I am going to set up a hot (ready to go) Green/Blue mirrored environments (www and DB server) on different providers in case of emergency. Then I can set the active live servers with DNS (blog posts soon).
- Consider a server farm (same provider or different providers)
I hope this guide helps someone.
Please consider using my referral code and get $25 UpCloud VM credit if you need to create a server online.
https://www.upcloud.com/register/?promo=D84793
Ask a question or recommend an article
[contact-form-7 id=”30″ title=”Ask a Question”]
Revision History
v1.0 Initial Post