My Journal

Maths Grinds
7 Jun 2020

Self Hosting

/
Posted By
/
Comments0

Pingdom provides a nice tool where you can see how quickly your webpage loads. It’s a nice thing to know and normallyย  I get speeds of 1.5 to 2 seconds however once in a while I get super low loading times. I’m not sure what the conditions are for this but I suspect there are many factors at play for example I use Clouldflare as my DNS provider, and how their network is performing is not up to me ๐Ÿ™‚ see my new best loading time below btw. 383 ms YEAH ๐Ÿ˜€

 

 

Also, I try to cache my pages when I can and serve up cached pages. I’m always looking at ways to have my server running as fast as I can. I host my website myself on my Raspberry Pi which had a steep learning curve at first but is worth it! I really enjoy having the flexibility of running my own server, you see, I’ve tried shared servers before and I find them too constricting! And paying (i.e. renting) your own dedicated server is too expensive.

 

So, if you are thinking of Self-Hosting, here are some tips

 

  1. Use a service like Clouldflare to help server up your site faster and to give it some protection online
  2. Use a lightweight computer like a Raspberry Pi
  3. Use a CMS that is widespread like WordPress (many tutorials online and many plugins too)
  4. Make sure you can open your ports on your router or at least give your server DMZ access
  5. Stick with it, it is rewarding
  6. Note, you normally can’t assess your website via the same internet connection you use to browse the web (as to host your site) so don’t panic if at first you can’t get to your website! Use a VPN or a DNS service like Clouldfare
  7. Try to build on Linux and not windows, that is, keep it light
  8. Always keep backups ๐Ÿ™‚
  9. Buy a good domain name
  10. Watch out for bots, one of my first sites got spammed with 100s of postings because I had no captcha

 

I hope this all helps ๐Ÿ™‚

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.