After setting up the docker containers for WordPress and the NGINX Proxy Manager I still had one open issue: Sending mail was not possible. So I was looking for a solution to set up mail for the WordPress Docker setup.
I had the following options in mind:
Setting up a separate docker container with an e-mail server. More or less I just needed a so-called Smarthost, that takes sent-out e-mails from any docker container and forwards them to my e-mail provider, Gmail. I struggled to find a proper, small image of a mail server running on an RPi for a long time. Then open the ports of the WordPress containers and send the e-mail from the WordPress containers to the container with the Smarthost Mail server. Nevertheless, you must install any kind of mailer within the container to handle the mail() call coming from WordPress.
Set up an email server on the host (I used exim4) and let all Docker containers send their e-mails to the host, which will then be forwarded to the real e-mail provider by exim4. Still, you must install any kind of mailer within the container to handle the mail() call coming from WordPress. There were the following sub steps necessary:
Add also the local Home Assistant server/Port as the target
Reconfigure the port forwarding of the router to the NPM
Shutdown the old RPi4
So, let’s dive a little bit deeper into the different steps.
Configure the new RPi5 hardware and software
OK, let’s get the first new hardware, which means the new high-performance RPi5.
It took some time to be available on the market and the announced performance numbers looked promising.
As the power supply is quite strong I attached directly a SSD drive to the USB3 port.
So no need anymore for a USB hub!
Installing the latest Rasbian operating system on the SSD was pretty easy using the Raspian Imager.
I also configured the SSH access for it, of course.
So, how are we going further?
Install docker on the RPi5
As I wanted to run a WordPress life system and a WordPress staging system in my local network, I thought it would be a good idea to go with:
Docker to run multiple images/containers
Nginx Reverse Proxy to manage/route the traffic to/from these containers to the outside world
Install the docker containers
Setup a docker network manually
docker network create dockerwp
Create a directory for wp_prod, wp_staging, nginx
Define a file for common parameters used as anonymized volumes in the docker containers
Create docker-compose.yml for the Nginx Proxy
services:
app:
image: 'jc21/nginx-proxy-manager:latest'
container_name: nginx-proxy
restart: unless-stopped
ports:
# These ports are in format <host-port>:<container-port>
- '80:80' # Public HTTP Port
- '443:443' # Public HTTPS Port
- '81:81' # Admin Web Port
# Add any other Stream port you want to expose
# - '21:21' # FTP
# Uncomment the next line if you uncomment anything in the section
# environment:
# Uncomment this if you want to change the location of
# the SQLite DB file within the container
# DB_SQLITE_FILE: "/data/database.sqlite"
# Uncomment this if IPv6 is not enabled on your host
# DISABLE_IPV6: 'true'
volumes:
- ./data:/data
- ./letsencrypt:/etc/letsencrypt
networks:
dockerwp:
external: true
Create docker-compose.yml for the MariaDB and the WordPress container (one for the staging and one for the production system)
As I backed up the WordPress blog site with updraft, we are restoring the backup to the new WordPress staging and WordPress production system, respectively.
Configure the Sub-Domains
Go to your DNS provider and configure the new Sub-domains with a CNAME entry.
If you have a dynamic IP address, route the Sub-Domain entries to the same Dynamic DNS entry of your DynDNS Provider.
Configure the NPM
Define the target of the routing for all the Sub-Domains, e.g. the Ports of your WordPress containers.
Let the Sub-Domain for the Home Assistant point to the separate HA RPi3.
Add the SSL certificates from Let’s Encrypt.
Additional configuration for the Home Assistant
We must add the following configuration steps to make the Home Assistant run with an external Sub Domain, based on ademalidurmus.
1.) At the NPM, enter the following entry in the advanced config for the Home Assistant Host.
I think, now it’s time to move to the Fediverse. Most of us know that all the proprietary, closed-profit applications are f***ed up.
They are feeding us content that we mostly don’t want, and their only purpose they have is, generating money for them. And for this purpose, they are using our data, that we are giving them voluntarily.
They are bombarding us with advertisements and locking us into their systems. This is the same for Facebook, Instagram, Twitter,…
Twitter crashing
And thanks to Elon Musk – a guy that I admire as a businessman, but hate for his racist opinions – who bought Twitter some time ago, triggered a lot of people – including me – to move to the Fediverse.
I think, Musk is very good at managing technical industry companies but will fail IMHO managing a social internet company.
The Fediverse is per definition focussing on non-profit and is interoperable between different applications.
Multiple changes happened recently which is why I think now it’s the right time to move.
WordPress supports the ActivityPub protocol
Now there is a new plugin for any self-hosted WordPress installation available supporting the ActivityPub protocol. As soon as you configure the plugin anybody in the Fediverse can follow either a specific author of your WordPress blog or the complete blog.
Pixelfed can import from Instagram
You can now import your posts from Instagram into Pixelfed, preserving all the content you have produced in the past.
Mastodon supports search
A quite new and long-awaited feature searching just for text in the toots is now available.
My WordPress admin center was complaining for a long time that I should upgrade WordPress to PHP7.4.
And from experience, I knew that this will typically not go without any hiccups. Be aware of any risks performing this upgrade and consider at least having a backup available, better even using a staging environment e.g. with UpdraftClone.
So here are the steps I have performed to make WordPress run again on that (not really) new PHP version 7.4.
My WordPress was running on a Raspberry Pi4, with Raspberry Pi OS 10 (buster) Version, mariaDB 10.3.39, PHP 7.3, and Apache 2
First, you should check, if there are any indications that your WordPress plugins and theme is not working with the new PHP version.
Then bring your OS to the latest version.
# sudo apt update
# sudo apt upgrade -y
Then install the certificate and add the repository.
You can also have multiple PHP versions on your system and switch with the following configurations between them for the Apache web server and WordPress.
We also have to replace the proxy entries in all the sites from the virtual hosts you are running with Apache (folder „sites-available“). Look for the lines:
<FilesMatch \.php$>
# 2.4.10+ can proxy to unix socket
SetHandler "proxy:unix:/run/php/php7.3-fpm.sock|fcgi://localhost"
</FilesMatch>
And set the version to php7.4-fpm.
Now it’s time to restart the Apache web server.
# sudo service apache2 restart
Check with phpinfo() if the php configuration for Apache is working correctly. The new version 7.4 with a mysqli section should be shown.
Die neue Signal Chefin Meredith Whittaker sagt, „KI ist vor allem ein Marketing Hype“, und liegt meiner Meinung nach damit richtig. Der Begriff „Künstliche Intelligenz“ wird total missverständlich verwendet, und erweckt viel zu große Erwartungen, die aktuell definitiv nicht erfüllt werden können.
Es wäre es aus meiner Sicht viel ehrlicher, die Begriffe „maschinelles Lernen, basierend auf Big Data“ zu verwenden.
In dem Artikel geht es auch um die Macht der Großkonzerne, die in manchen Bereichen wirklich an die Macht von Regierungen heranreichen. Das jüngste Beispiel dafür ist Twitter.
Ja, wir geben den Konzernen mit der Benutzung der Applikationen die Daten und die Macht. Auf der anderen Seite ist es natürlich sehr verlockend, auf das meist kostenlose Angebot wie von Google etc. einzugehen.
Ich habe vor einiger Zeit versucht, als es die Datenschutz Diskussion bei WhatsApp gab, meine Freunde und Bekannten auf die Signal Plattform zu bekommen. Aber nur ein sehr geringer Anteil sind mir gefolgt und das Experiment ist gescheitert. Ich muss weiterhin mit WhatsApp arbeiten, weil die Leute viel zu bequem sind, sich mit etwas neuem zu beschäftigen. Das Alte funktioniert ja. Und dass man sich damit in die Abhängigkeit von Konzernen gibt („Google tracked sowieso schon“), wird stillschweigend akzeptiert.