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

Launch a WordPress Server

Launch a WordPress Server

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 can easily lead to having to rebuild it later if not planned properly, 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 an address required for search engines to find you on the internet).
  • Enable SSL (I don’t worry about information leaks, but I consider SSL a basic 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 for background music in the room.

image

Additional Notes

I am using a standard home internet connection (such as Fletts Optical) and have not paid for a static 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, to obtain an SSL certificate. As a side note, it is convenient that we can now obtain certificates issued by trusted Certificate Authorities directly from browsers for free. 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.

Side Note

The built-in Wi-Fi unit on the Raspberry Pi board seems unreliable. (I looked into this later and found that disabling power-saving mode can improve stability.) Since I am not using wireless networking, I have not verified this myself. In particular, when CPU usage is high, noise appears to be generated, causing the Wi-Fi connection to drop frequently. Therefore, I implemented a wired connection.