Skip to content

WordPress on a VPS

CMS for websites and blogs

Author
WordPress.org
License
GPL-2.0-or-later
Version
7.1.2

The script is free · VPS from $2.79 per month · installs in about 2 minutes

Install over SSH

root@vps:~# command -v docker >/dev/null || curl -fsSL https://get.docker.com | sh; P=$(openssl rand -hex 16); docker network create wp && docker run -d --name wp-db --network wp --restart unless-stopped -e MYSQL_DATABASE=wordpress -e MYSQL_USER=wordpress -e MYSQL_PASSWORD=$P -e MYSQL_RANDOM_ROOT_PASSWORD=yes -v wp-db:/var/lib/mysql mysql:8.0 && docker run -d --name wordpress --network wp --restart unless-stopped -p 80:80 -e WORDPRESS_DB_HOST=wp-db -e WORDPRESS_DB_USER=wordpress -e WORDPRESS_DB_PASSWORD=$P -e WORDPRESS_DB_NAME=wordpress -v wp-html:/var/www/html wordpress

  • SystemUbuntu 24.04 · x86_64ok
  • Sourcegithub.com/WordPress/WordPressok
  • Version7.1.2ok
  • Port80/tcplisten
  • Port443/tcplisten

✓ WordPress 7.1.2 installed · about 2 minutes

root@vps:~#

Install command from the library. Output is shortened and may differ on your server.

What it is

  • CMS
  • PHP
  • MySQL
  • Blog
  • WooCommerce

WordPress is the most widely used CMS: people build blogs, landing pages, corporate websites and WooCommerce stores with it. There are tens of thousands of themes and plugins, and pages can be edited in a visual editor without code.

On your own VPS you aren't bound by shared hosting limits: you choose the PHP version, caching and plugins yourself, and can host several sites on one server.

The command below starts WordPress and MySQL in two Docker containers using the official Docker Hub images; the database password is generated automatically.

  • Visual page editor (Gutenberg)
  • Thousands of themes and plugins in the official directory
  • Online store with WooCommerce
  • REST API for mobile apps and headless sites
  • Automatic core and plugin updates

Recommended plan

For WordPress: at least 1 vCPU, 2 GB RAM and 10 GB NVMe.

Minimum to run
1 vCPU · 1 GB RAM · 10 GB disk
Systems
Ubuntu 22.04 · Ubuntu 24.04 · Debian 12

How to install

Three steps in the bot or one command over SSH; installation takes about 2 minutes.

  1. 01

    Choose a plan in the bot

    Open @ExpressHost_bot and pay for a VPS. The server will be ready in about 60 seconds.

  2. 02

    Add WordPress

    At the “Add-ons” step pick the script from the library, or run it later: Server settings → Scripts.

  3. 03

    Open http://server-IP and complete the setup wizard: language, site title, admin login

    The bot will send the server address and login details to the chat.

Manually over SSH

Connect to the server as root and run the command. Supported systems: Ubuntu 22.04, Ubuntu 24.04, Debian 12.

Install command
command -v docker >/dev/null || curl -fsSL https://get.docker.com | sh; P=$(openssl rand -hex 16); docker network create wp && docker run -d --name wp-db --network wp --restart unless-stopped -e MYSQL_DATABASE=wordpress -e MYSQL_USER=wordpress -e MYSQL_PASSWORD=$P -e MYSQL_RANDOM_ROOT_PASSWORD=yes -v wp-db:/var/lib/mysql mysql:8.0 && docker run -d --name wordpress --network wp --restart unless-stopped -p 80:80 -e WORDPRESS_DB_HOST=wp-db -e WORDPRESS_DB_USER=wordpress -e WORDPRESS_DB_PASSWORD=$P -e WORDPRESS_DB_NAME=wordpress -v wp-html:/var/www/html wordpress

Ports

WordPress ports
PortProtocolPurpose
80tcpWebsite and admin (HTTP)
443tcpHTTPS, if you add a reverse proxy with a certificate

After installation

  1. 1.Open http://server-IP and complete the setup wizard: language, site title, admin login
  2. 2.Point your domain's A record at the server IP and change the site address under "Settings → General"
  3. 3.For HTTPS, put a reverse proxy in front of WordPress (Nginx with Certbot, or Caddy)

WordPress FAQ

Didn’t find an answer? Message @ExpressHost_SupportBot.

How many visitors can the plan handle?

It depends on the theme and plugins. A small site with a caching plugin runs comfortably on 1 vCPU and 2 GB RAM. For a WooCommerce store, choose 2 vCPU and 3 GB or more.

How do I update WordPress?

The core, themes and plugins are updated from the admin panel: "Dashboard → Updates". Files live in a volume, so recreating the container won't affect them.

Where is the data stored?

Site files are in the wp-html Docker volume, the database in the wp-db volume. Both are located in /var/lib/docker/volumes.

WordPress installs at checkout — in the bot.