Skip to content
HomeKnowledge BaseStatisticsChangelog GitHub Discord Email
tutorials / Your First WordPress Site

No results for ""

Your First WordPress Site

Prerequisites

  • Demyx installed and running (Installation guide)
  • DEMYX_DOMAIN and DEMYX_EMAIL set in demyx host edit
  • DNS A record for domain.tld pointing to your server

Step 1 — Create the Site

bash
demyx run domain.tld --ssl

Demyx will:

  1. Pull required Docker images (if not already cached)
  2. Create Docker volumes for WordPress files and MariaDB
  3. Generate compose.yml and .env
  4. Start containers: MariaDB → WordPress → NGINX
  5. Install WordPress via WP-CLI
  6. Output credentials

Step 2 — Save Your Credentials

After demyx run completes, you'll see output like:

text
WordPress Login      https://domain.tld/7b011c4d/9ab9d948f6
Username             magical_praman
Password             iSHEhkGxJzFPsVe0o6D1
The login URL uses a random path for security. Bookmark it.

Step 3 — Log Into WordPress

Visit the login URL and sign in with the provided credentials. Change the password immediately in Users → Profile.

Step 4 — Enable Cache (Optional)

bash
demyx config domain.tld --cache=true

For the nginx-php stack, this installs and configures Nginx FastCGI cache. For OLS, it enables LiteSpeed Cache.

Step 5 — Enable Redis (Optional)

bash
demyx config domain.tld --redis=true

Installs and configures a Redis container for object caching. Demyx automatically installs the correct plugin for your stack.

Step 6 — Set Up Backups

bash
# Enable auto-backup for this app
demyx config domain.tld --backup=true

And ensure global backups are enabled in the host:

bash
# demyx host edit
DEMYX_BACKUP_ENABLE=true

Common Configurations

bash
# Switch to OpenLiteSpeed
demyx config domain.tld --stack=ols

# Set PHP version
demyx config domain.tld --php=8.4

# Enable SFTP access
demyx config domain.tld --sftp=true

# Enable phpMyAdmin
demyx config domain.tld --pma=true

# Whitelist your IP for the WP login
demyx config domain.tld --whitelist=login

Verify the Site

bash
demyx info domain.tld

Check that DEMYX_APP_SSL=true, DEMYX_APP_STACK=nginx-php, and containers are running:

bash
demyx compose domain.tld ps