Skip to main content

Master Server Setup

The master server is your primary WordPress server—the one currently serving your live website.

What the Installer Does

When you run the master installer script, it:

  1. Installs Tergum Agent - Monitors server health and executes commands
  2. Configures MySQL for Replication - Enables binary logging
  3. Sets up SSH Keys - For secure communication with slave
  4. Registers with Tergum - Connects to your dashboard

Running the Installer

The Initial Setup Wizard provides the exact command. It looks like:

curl -sSL https://app.tergum.ca/api/install/master | sudo bash -s -- \
--token YOUR_API_TOKEN \
--server-id YOUR_SERVER_ID

Post-Installation Verification

After installation, verify:

# Check agent is running
systemctl status tergum-agent

# Check MySQL binary logging
mysql -e "SHOW MASTER STATUS;"

# Test Tailscale connectivity
tailscale ping your-slave-hostname

MySQL Configuration Changes

The installer modifies /etc/mysql/mysql.conf.d/mysqld.cnf (or equivalent):

[mysqld]
server-id = 1
log_bin = /var/log/mysql/mysql-bin.log
binlog_format = ROW
binlog_do_db = your_wordpress_db

A MySQL restart is required and performed automatically.

Next Steps

Once the master is configured:

  1. Set up the slave server →
  2. Install agents on both servers →