Skip to content
Live $300 credit for new accounts Valid for 60 days from account creation Get started →

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
WordPress6.x (latest)
Apache2.4.x
MariaDB10.x
PHP8.3
Ubuntu24.04 LTS
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