HIRO GEAR
Raspberry Pi DDNS Now Let's Encrypt SSL WordPress

Launch a WordPress Server Locally Without Spending Money

Launch a WordPress Server Locally Without Spending Money

Setting Up WordPress on Raspberry Pi and Publishing it to the Internet

Considerations

I wanted to set up a WordPress environment in my home without spending much money. Since setting up an environment vaguely could lead to having to rebuild it later, I decided to organize the requirements beforehand.

  • Use a 64-bit OS (to ensure efficient operation on less powerful hardware).
  • Improve HDD availability using software RAID (mdadm) to prevent data loss.
  • Register a domain (essentially the “address” needed for others to find your site via search engines on the internet).
  • Enable SSL (I don’t mind information leakage, but I chose SSL as a minimum courtesy to be found by Google).
  • Bonus: The audio source board is connected to an amplifier. I plan to keep a Spotify server running constantly in the background for room BGM.

image

Additional Notes

I am using a standard home internet line (such as Fletts Optical) and have not paid for a fixed IP address. Therefore, I chose to register a domain using DDNS, which works even if the IP address changes. I used DDNS Now (https://ddns.kuku.lu/), which is free and allows subdomains. I applied for gonta under f5.si. Since my IP address changes frequently, I need to periodically notify DDNS Now of the current IP address.

Additionally, I used Let’s Encrypt, a free service, for SSL certificates. As an aside, it seems convenient that we can now obtain certificates issued by trusted Certificate Authorities directly from browsers at no cost. However, since the validity period of certificates issued by this service is quite short (a few days), it is necessary to implement a script to update them regularly.

Aside

I was concerned about the reliability of the Wi-Fi unit built into the Raspberry Pi board. (Upon further research, I found that disabling power-saving mode can improve this issue.) Since I am not using wireless connectivity, I have not verified this myself. In particular, when CPU usage is high, noise seems to be generated, causing the Wi-Fi connection to drop frequently. Therefore, I implemented a wired connection.