↓ Skip to main content

mariadb

2026

Moving an Old WordPress Site into This Setup

Part 10.1
·11 mins
Requirements The MariaDB container from 10 WordPress Setup must be set up and the db network created. 4.1 A Ready Template for Docker Containers must be done (proxy.tmpl and websocket.conf). Assumptions The old server runs WordPress with MariaDB as the database. The example site is example.com, and the site directory on the old server is /var/www/example. Our user on the new server can connect to the old server over SSH (its SSH key is allowed on the old server). The moved site uses port 8031 (pick a free port from the 8030–8049 range set aside for WordPress). The server each command runs on is written before it. On the new server, commands that need root rights are written with sudo.

WordPress Setup

Part 10
·10 mins
Requirements 3 NGINX Configuration, 4 Docker Setup and 4.1 A Ready Template for Docker Containers must be done. For the sites to send mail, 2 Mail Server Setup must be done. To finish the setup wizard behind the VPN, 7.2 Putting Services Behind the VPN must be done. Assumptions The example site is example.com, and the site’s short name is example. The short name is used in directory, container and database names; for each site, replace every example with the site’s name. A and AAAA records exist for example.com and www.example.com. The port range 8030–8049 is set aside for WordPress sites; the first site uses port 8030. Commands are run on the server with root rights (sudo).

Moving the Mail Server

Part 2.4
·5 mins
Requirements 2 Mail Server Setup must be done on the new server. You must have root access to the old server. Assumptions The old server was also set up with iRedMail (MariaDB + /var/vmail). There is no valuable data on the new server yet; the vmail database of the new installation can be overwritten. Commands are run with root rights (sudo). The server each command runs on is written before it.