Skip to content
Open console

WordPress

WordPress is the world’s most popular open-source content management system, powering over 40% of all websites. This image ships a complete LAMP stack (Apache, MariaDB, and PHP) with WordPress pre-installed and ready to configure.

ComponentVersion
WordPress7.x (latest)
Apache2.4.x
MariaDB10.x
PHP8.3
Ubuntu24.04 LTS

Set these when deploying WordPress from the marketplace. SITE_URL and ADMIN_EMAIL must contain your deployment’s real values. You can leave ADMIN_USER and ADMIN_PASSWORD blank to have secure random values generated automatically.

VariableDescription
SITE_URLPublic URL of the site
ADMIN_USERAdministrator username
ADMIN_PASSWORDAdministrator password
ADMIN_EMAILAdministrator email address
ssh ubuntu@<your-vm-ip>

On the first boot, a setup script runs automatically. It:

  • Creates the WordPress database and a dedicated database user with a randomly generated password
  • Writes wp-config.php with the database credentials and unique secret keys

This takes under 30 seconds. Track progress:

journalctl -u wordpress-first-boot.service -f

Open a browser and navigate to:

http://<your-vm-ip>

The WordPress setup wizard will guide you through:

  1. Selecting your language
  2. Setting your site title
  3. Creating your WordPress admin username and password
  4. Entering your admin email address

After completing the wizard, log in at:

http://<your-vm-ip>/wp-admin

Restart Apache:

sudo systemctl restart apache2

Restart MariaDB:

sudo systemctl restart mariadb

WordPress files are located in /var/www/wordpress/.

PHP configuration: /etc/php/8.3/apache2/php.ini

Apache virtual host: /etc/apache2/sites-available/wordpress.conf

WordPress is served on port 80 (HTTP) by default. To enable HTTPS:

  1. Point a domain name at your VM’s IP address
  2. Install Certbot: sudo apt install certbot python3-certbot-apache
  3. Run: sudo certbot --apache -d yourdomain.com

Certbot will automatically configure Apache for HTTPS and set up certificate renewal.

Port 80 is open by default. UFW is enabled.

After setting up HTTPS, restrict HTTP traffic:

sudo ufw allow 443/tcp
sudo ufw delete allow 80/tcp

Ask the ZCP docs

Type a question and pick an assistant. The assistant opens in a new tab and reads this page and the full ZCP documentation, so its answer comes from our docs.

Example questions

Ask with

Your question goes to the assistant you pick, under its own terms.