惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园 - Franky
Microsoft Azure Blog
Microsoft Azure Blog
阮一峰的网络日志
阮一峰的网络日志
宝玉的分享
宝玉的分享
量子位
N
Netflix TechBlog - Medium
M
MIT News - Artificial intelligence
GbyAI
GbyAI
Apple Machine Learning Research
Apple Machine Learning Research
博客园_首页
博客园 - 叶小钗
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
酷 壳 – CoolShell
酷 壳 – CoolShell
T
Tailwind CSS Blog
Y
Y Combinator Blog
L
LangChain Blog
The Cloudflare Blog
T
The Blog of Author Tim Ferriss
U
Unit 42
Martin Fowler
Martin Fowler
aimingoo的专栏
aimingoo的专栏
G
Google Developers Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
月光博客
月光博客

JonahDevs

Building in Public: The ‘Back to It’ VS Code Extension – Part 1 Building in Public: The Time, the Silent Exploit: The Unseen Enemy in Every Codebase Time, the Silent Exploit: The Unseen Enemy in Every Codebase The Mindful Coder’s Workweek: 5 Themes to Enhance Your Craft and Satisfaction The Mindful Coder From Dirty Dishes to Clean Code: How Household Chores Mirror Programming Team Dynamics From Dirty Dishes to Clean Code: How Household Chores Mirror Programming Team Dynamics You’re Closer Than You Think: The Only 6 DNS Concepts You Really Need You The Wasabi Method: Shocking Your Way Out of Anxiety Attacks The Wasabi Method: Shocking Your Way Out of Anxiety Attacks Free Software: The New Nicotine? Big Tech’s Playbook Straight Out of Big Tobacco Free Software: The New Nicotine? Big Tech Your Gut is Smarter Than Your Spreadsheet: The Art of Software Estimation Your Gut is Smarter Than Your Spreadsheet: The Art of Software Estimation The Subtract Day: Why Less Code Can Lead to More Success The Subtract Day: Why Less Code Can Lead to More Success ESLint ESLint: Why We Actually Bother Understanding Nginx Part 1: The Power of Event-Driven Architecture Exercise Snacks: The Secret to All-Day Energy and Productivity How Important Clamping Is For Woodworking How to Fix Your Sleep Cycle Min/Maxing My Internet Provider Everyone Uses Super Glue Wrong.
Min/Maxing WordPress Hosting
Jonah · 2024-06-02 · via JonahDevs

The Challenge

Getting as close to completely free self-hosted WordPress by combining the cheapest tiers of AWS offerings.

I run two WordPress sites, JonahDevs.com and AussieBulkBricks.com. I thought why not use this as an opportunity to learn some things about self hosting WordPress. Most importantly I was bound to save money on getting as close to free by trying this.

AWS Lightsail Free Tier

This one was simple enough, I followed the prompts and signed up to the free tier. Pointed my DNS records to Lightsail as instructed and I was up and running.

The Process of Setting Up AWS Lightsail for WordPress

Pick your instance image Select a platform >_ Linux/Unix28 blueprints Windows Select a blueprint Apps + OS OS only W WordPress6.5.3-0 W WordPress Multisite6.5.3-1

Picking the instance image: Linux/Unix + the WordPress blueprint

Select a size sort by: price per month $5 USD per month 512 MB memory 2 vCPUs 20 GB SSD 1 TB transfer First 3 months free $7 USD per month 1 GB memory 2 vCPUs 40 GB SSD 2 TB transfer First 3 months free $12 USD per month 2 GB memory 2 vCPUs 60 GB SSD 3 TB transfer First 3 months free $24 USD per month 4 GB memory 2 vCPUs 80 GB SSD 4 TB transfer picked $7 — wasn't smart enough to max out the free credit

Instance specs: 1 GB memory, 2 vCPUs, 40 GB SSD, 2 TB transfer — first 3 months free

Create instance this one

Press the orange button

W Username or Email Address Password Remember Me Log In Lost your password? · ← Go to blog

The vanilla WordPress install / login prompts

The Pros

  • It kind of just works out of the box
  • It’s free (to begin with)

The problems

I really couldn’t get CDN to work nicely via Cloudfront. I am sure I could by revisiting this but didn’t have the energy to push through after the initial easy setup set the bar for how easy I was expecting things to be moving forward. That bar definitely tripped me up here.

Why didn’t I settle for AWS Lightsail?

In short: Ego of a Software Developer and not having CDN working out the box irked me.

I’ll be honest, in hindsight I’m not entirely sure. It has something to do with the feeling of buying something that is ready out of the box. As a software developer I have such a strong gut instinct telling me that whatever resources are bundled up and sold as this package will have a great profit margin and that if only I was able to bundle those resources up myself I could save that difference.

Why Not Hetzner.com?

After a lot of research they really do seem to have great value VPS, If you are based anywhere near the European continent I would recommend going with them. Unfortunately I am half way around the globe from the nearest hosting locations that they offer (Germany / Finland / USA).

Primary IPv4 ●○ IPv6 only save € 0.55 CAX11 vCPU 2 Ampere RAM 4 GB Disk 40 GB Traffic 20 TB Locations € 4.17 / mo. CAX21 vCPU 4 Ampere RAM 8 GB Disk 80 GB Traffic 20 TB Locations € 7.14 / mo. CAX31 vCPU 8 Ampere RAM 16 GB Disk 160 GB Traffic 20 TB Locations € 13.74 / mo. CAX41 vCPU 16 Ampere RAM 32 GB Disk 320 GB Traffic 20 TB Locations € 26.94 / mo.

Hetzner VPS pricing, from €4.17 to €26.94 a month — Germany / Finland only

Why is this distance a dealbreaker for me? I like to edit files on my VPS directly via Visual Studio Code Remote extensions. The latency between your input and the file updating really slows things down when working for extended periods. Not to mention that the WordPress interface itself will be slow when updating posts, installing plugins and generally navigating around.

Maybe one day when I can afford to run my own private CDN nodes I will go back to them to serve my European traffic directly from my own server!