Beginner

Build your business website with WordPress, from zero to online

From never having opened a server to a shop website with your own domain and HTTPS, step by step

On this page
  1. What a business website costs
  2. Web hosting or a Cloud Server
  3. How the pieces fit
  4. 1. Sign up and add credit
  5. 2. Create the server
  6. 3. Open the web ports
  7. 4. Point your domain at the server
  8. 5. Connect over SSH
  9. 6. Install Docker
  10. 7. Install WordPress and HTTPS
  11. 8. First sign-in to WordPress
  12. 9. Add a theme and the pages a business needs
  13. 10. Make the site fast and safe
  14. 11. Back up the whole server from the console
  15. 12. Back up and restore just the website
  16. 13. Keep the site updated
  17. 14. Move to a bigger plan as the site grows
  18. If you see this, do this
  19. Frequently asked questions
  20. Start with your first server

You can build your own WordPress business website even if you have never touched a server. This guide walks you through every step on a Cloud Server until customers can open your site over HTTPS, with copy-and-paste commands throughout.

At a glance

Result

WordPress with a database, your own domain, auto-renewing HTTPS, and backups

Time

About 60 minutes, not counting DNS propagation or writing your content

Server cost

฿0.70/hr billed hourly, capped at ฿419/mo per month

Before you start

What a business website costs#

This guide uses the Shared plan s-2vcpu-4gb with 2 vCPU, RAM 4 GB, NVMe disk 40 GB, Bandwidth 4 TB per month. That is enough for WordPress and its database on the same server.

PlanNVMe diskBandwidthPer hourPer month
2 vCPU · 4 GB40 GB4 TB฿0.70/hr฿419/mo

Prices when this page was built

You can try it for a day first. This table compares running the server for 24 hours with a full month.

฿16.80

24 hours

2 vCPU · 4 GB

฿419.00

730 hours

2 vCPU · 4 GB

Charged per hour the server exists, never above the monthly price in a calendar month

Item Paid to Required?
Cloud Server XVer Yes
Domain Your domain registrar Yes
HTTPS certificate Free Caddy requests it Yes
WordPress and free themes Free Yes
Backups in the console XVer, charged per GB Recommended
Paid themes or plugins The developer Only if needed

To add disk space or backups to the estimate, use the price calculator.

Web hosting or a Cloud Server#

Web hosting

  • Install WordPress from a control panel
  • The provider updates the system for you
  • Often includes email on your domain
  • Resources and settings are limited

Cloud ServerRecommended

  • Your own server and IP address
  • Choose your own software and settings
  • Move to a bigger plan as the site grows
  • You handle updates and backups

If you never want to type a command, web hosting suits you better; see the detailed comparison. If you want to set up Nginx and PHP yourself, follow Install WordPress on Ubuntu with Nginx instead of this guide.

XVer Cloud Servers run in a Bangkok data center, and every server has HA. If a host fails, the server starts again on another host with the same IP. The site pauses briefly while that happens, and HA does not replace backups.

How the pieces fit#

  1. Customer opens your domain over HTTPS
  2. Caddy takes the request and gets and renews the certificate
  3. WordPress builds the page
  4. MariaDB stores posts, users and orders
Your website has three parts on one server

Fill in your values here first and every command on the page updates. Enter the domain without https:// and without www. Come back for the IP and username after you create the server.

1. Sign up and add credit#

  1. Open my.xver.cloud, click Sign up, and complete the verification the console asks for.
  2. Open Top up and choose an amount.
  3. Choose PromptPay, card or TrueMoney, then pay.

2. Create the server#

  1. Open Cloud Server and click Deployment.
  2. Choose Linux > Ubuntu > 24.04 LTS.
  3. Under Instance family, pick Shared and s-2vcpu-4gb.
  4. Set a Hostname such as myshop.
  5. Check the price in the summary, then click Create Server.
Operating system picker in the console with Ubuntu 24.04 LTS selected
Pick Ubuntu 24.04 LTS so it matches the commands in this guide

3. Open the web ports#

On the server page, open the Networking tab. On the Firewall rules card, click Add rule and add one row at a time. Choose Inbound and Accept for every row.

Used for Protocol Port Source
SSH into the server TCP 22 Your IP followed by /32
Certificate issuing and HTTP TCP 80 0.0.0.0/0
HTTPS website TCP 443 0.0.0.0/0
Add firewall rule dialog: fill in protocol, port and source, then save the rule
Fill in fields 1 to 4, one rule at a time

Find your own IP at ifconfig.me. By default ports 22 and 3389 are open to every IP, so limit SSH with a rule.

4. Point your domain at the server#

Open your domain's DNS settings and add two records.

Type Name Value
A @ Server IP
A www Server IP

Delete any existing A or AAAA records for these two names that point elsewhere. Do not delete MX records; email uses them. If you use Cloudflare, set the records to DNS only for now.

Run on your own computer
nslookup DOMAIN
nslookup www.DOMAIN

5. Connect over SSH#

Open the Access tab on the server page to see the username and password.

Server Access tab showing the SSH command, username and hidden password
1 is the command to connect, 2 is the password; the data shown is an example

Windows

Press Start, type PowerShell, and open it.

Terminal
ssh SERVER_USER@SERVER_IP

Mac

Press Command and Space, type Terminal, and open it.

Terminal
ssh SERVER_USER@SERVER_IP

The first time, type yes, then paste the password. Nothing appears on screen as you type; that is normal.

6. Install Docker#

Docker starts all three programs from one file. Paste this whole block into the SSH window. If it asks for a password, use the server password.

Terminal
sudo apt-get update && sudo apt-get install -y ca-certificates curl openssl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | sudo tee /etc/apt/sources.list.d/docker.list
sudo apt-get update
sudo apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
sudo docker run --rm hello-world

7. Install WordPress and HTTPS#

Check that DOMAIN and EMAIL are filled in. All files live in one folder.

  • business/
    • compose.yaml
    • Caddyfile
    • uploads.ini
    • .env

Paste the first block to create the folder and random passwords. Running it again does not overwrite existing passwords.

Terminal
mkdir -p ~/business && cd ~/business
[ -f .env ] || (umask 077; printf 'DB_PASS=%s\nDB_ROOT_PASS=%s\n' "$(openssl rand -hex 24)" "$(openssl rand -hex 24)" > .env)
ls -l .env
Set the domain and upload size
cat > ~/business/Caddyfile <<'EOF'
{
    email EMAIL
}

DOMAIN {
    encode zstd gzip
    @blocked path_regexp ^/(xmlrpc\.php$|wp-content/uploads/.*\.php)
    respond @blocked 403
    reverse_proxy wordpress:80
}

www.DOMAIN {
    redir https://DOMAIN{uri} permanent
}
EOF

cat > ~/business/uploads.ini <<'EOF'
upload_max_filesize = 64M
post_max_size = 64M
memory_limit = 256M
max_execution_time = 120
EOF

Next is the Compose file. The database opens no port to the internet; only Caddy listens on ports 80 and 443.

Create compose.yaml
cat > ~/business/compose.yaml <<'EOF'
services:
  caddy:
    image: caddy:2
    restart: unless-stopped
    ports:
      - "80:80"
      - "443:443"
    volumes:
      - ./Caddyfile:/etc/caddy/Caddyfile:ro
      - caddy_data:/data
      - caddy_config:/config
    depends_on:
      - wordpress
    logging: &log
      driver: json-file
      options:
        max-size: "10m"
        max-file: "3"

  wordpress:
    image: wordpress:7-php8.3-apache
    restart: unless-stopped
    environment:
      WORDPRESS_DB_HOST: db
      WORDPRESS_DB_NAME: wordpress
      WORDPRESS_DB_USER: wordpress
      WORDPRESS_DB_PASSWORD: ${DB_PASS}
      WORDPRESS_CONFIG_EXTRA: |
        define('DISALLOW_FILE_EDIT', true);
    volumes:
      - wp_data:/var/www/html
      - ./uploads.ini:/usr/local/etc/php/conf.d/uploads.ini:ro
    depends_on:
      db:
        condition: service_healthy
    logging: *log

  db:
    image: mariadb:11.8
    restart: unless-stopped
    environment:
      MARIADB_DATABASE: wordpress
      MARIADB_USER: wordpress
      MARIADB_PASSWORD: ${DB_PASS}
      MARIADB_ROOT_PASSWORD: ${DB_ROOT_PASS}
      MARIADB_AUTO_UPGRADE: "1"
    volumes:
      - db_data:/var/lib/mysql
    healthcheck:
      test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
      start_period: 30s
      interval: 10s
      timeout: 5s
      retries: 10
    logging: *log

volumes:
  caddy_data:
  caddy_config:
  wp_data:
  db_data:
EOF

Start everything and check the status.

Terminal
cd ~/business
sudo docker compose config -q && sudo docker compose up -d
sudo docker compose ps

8. First sign-in to WordPress#

  1. Choose your language and continue.
  2. Use your shop or company name as the site title.
  3. Pick a username that is hard to guess, not admin or the shop name.
  4. Use the password WordPress generates and keep it in a password manager.
  5. Enter your email, click install, then sign in.

From now on, manage the site at your domain followed by /wp-admin/. Then set these four things.

Menu What to set
Settings > General Timezone Bangkok
Settings > Permalinks Post name, for readable URLs
Settings > Reading Make sure search engines are not discouraged
Settings > Discussion Turn comments off if you do not use them

Menu names may differ slightly between WordPress versions and languages.

9. Add a theme and the pages a business needs#

Go to Appearance > Themes and pick a free theme that was updated recently and works on mobile. The theme that ships with WordPress is a fine start; change the colors and logo.

Page What customers should find
Home What you sell, who it is for, and a contact button
Products or services Real photos, details, how to order
About us Your story and business details
Contact Phone, LINE, map and opening hours
Privacy What data you collect and why

Write the home page so it answers in three lines what you sell, who it suits, and how to get in touch. Then set it as the front page under Settings > Reading.

10. Make the site fast and safe#

Pre-launch speed and safety checklist

The files above already turn off code editing in the WordPress dashboard, block xmlrpc.php, and block PHP files in the uploads folder.

11. Back up the whole server from the console#

On the server page, open the Backups tab and click Enable backups. Choose daily, weekly or monthly, and keep the latest 3, 4 or 7 copies.

Backups page with a daily schedule and the latest 4 copies kept
1 Choose the schedule 2 Choose how many copies to keep; backups are charged per GB

Before a big change, click Backup now. Backups you create by hand stay until you delete them. Details are in Backups.

12. Back up and restore just the website#

This script dumps the database and the website files and keeps them on the server for 7 days, so you can restore the site without rolling back the whole server.

Create and run the backup script
cat > ~/business/backup.sh <<'EOF'
#!/bin/bash
set -euo pipefail
umask 077
cd "$(dirname "$0")"
mkdir -p backups
d=$(date +%F-%H%M)
docker compose exec -T db sh -c 'MYSQL_PWD=$MARIADB_ROOT_PASSWORD exec mariadb-dump --single-transaction -uroot wordpress' | gzip > "backups/$d-db.sql.gz"
docker compose exec -T wordpress tar czf - -C /var/www/html wp-content > "backups/$d-files.tar.gz"
find backups -name '*.gz' -mtime +7 -delete
ls -lh backups
EOF
chmod +x ~/business/backup.sh
sudo ~/business/backup.sh

Run it every day at 03:00 server time with this command.

Terminal
echo "0 3 * * * root $HOME/business/backup.sh >> /var/log/business-backup.log 2>&1" | sudo tee /etc/cron.d/business-backup

Files on the same server can disappear with the server, so download them somewhere else regularly. Run the first command on the server and the second on your computer.

On the server: bundle into one file
sudo tar czf ~/shop-backup.tar.gz -C ~/business backups .env Caddyfile compose.yaml uploads.ini
sudo chown "$(id -u):$(id -g)" ~/shop-backup.tar.gz && chmod 600 ~/shop-backup.tar.gz
On your computer
scp SERVER_USER@SERVER_IP:shop-backup.tar.gz .

This file holds the database passwords and customer data. Never send it over chat; keep it somewhere encrypted.

Restore the website from a backup

List the backups with sudo ls ~/business/backups and change the date on the first line. This overwrites the current content, so take a fresh backup first.

Terminal
cd ~/business && B=2026-11-23-0300
sudo gunzip -c backups/$B-db.sql.gz | sudo docker compose exec -T db sh -c 'MYSQL_PWD=$MARIADB_ROOT_PASSWORD exec mariadb -uroot wordpress'
sudo cat backups/$B-files.tar.gz | sudo docker compose exec -T wordpress tar xzf - -C /var/www/html
sudo docker compose exec -T wordpress chown -R www-data:www-data wp-content

Open the home page, sign in, and check the images to confirm. If you are moving to a new server, put the original configuration files in place and start the stack before restoring.

13. Keep the site updated#

Update WordPress, themes and plugins from Dashboard > Updates. WordPress itself lives in the persistent data volume, so pulling new images updates PHP, Apache, Caddy and MariaDB.

Once a month, after a backup
cd ~/business
sudo ./backup.sh
sudo docker compose pull && sudo docker compose up -d
sudo apt-get update && sudo apt-get upgrade -y
[ -f /var/run/reboot-required ] && echo "Reboot needed"
sudo docker compose ps

14. Move to a bigger plan as the site grows#

Check RAM and disk before you decide.

Terminal
free -h
df -h /
sudo docker stats --no-stream

Change the plan under Settings > Resize; the server restarts. Disk can only grow, never shrink. Read how to upsize and how to choose a size.

PlanNVMe diskBandwidthPer hourPer month
2 vCPU · 4 GB40 GB4 TB฿0.70/hr฿419/mo
4 vCPU · 8 GB80 GB10 TB฿1.37/hr฿819/mo

Prices when this page was built

If you see this, do this#

Common symptoms and fixes

IssueSSH times out
Fix

Check the IP, the server status, and the port 22 firewall rule.

IssueHTTPS does not load
Fix

Check DNS and ports 80/443, then run sudo docker compose logs --tail 50 caddy.

Issue502 Bad Gateway
Fix

Wait a minute, then check sudo docker compose ps and the wordpress log.

IssueError establishing a database connection
Fix

Check the db log; never create a new .env over the old passwords.

IssueThe old website shows up
Fix

An A or AAAA record still points to the old host, or DNS has not updated yet.

IssueLarge uploads fail
Fix

Files must be 64 MB or less, or edit uploads.ini and run sudo docker compose restart wordpress.

IssueDisk is full
Fix

Check sudo docker system df, delete old backups, then consider adding more disk space.

IssueEmail does not send
Fix

Check the SMTP plugin settings and the email account connection.

Run Compose commands inside the ~/business folder. If you cannot fix it, send the error message to support with any passwords removed.

Frequently asked questions#

How much does a WordPress company website cost?

If you build it yourself with a free theme, the main costs are the domain and the server. The plan in this guide costs no more than ฿419/mo, not counting backups and add-ons.

Can I start without a domain?

You can create the server first, but the HTTPS steps in this guide need a domain, and the server is billed from the moment you create it. Registering the domain first saves money.

Can I run a WooCommerce shop on this server?

Yes. 4 GB of RAM is the starting point we recommend for a shop with several plugins. Watch real usage before upgrading, and back up more often once you take orders every day.

Does this include email on my domain?

This setup covers the website only. Use a separate email service and set MX records as that provider tells you. The website and email can share the same domain.

Does turning the server off at night save money?

No. A stopped server is still billed, and customers cannot open your site. If you stop using it, back up and then delete the server.

Start with your first server#

Add credit, choose Ubuntu 24.04 LTS with s-2vcpu-4gb, and follow the steps from step 3. If you try it and decide not to keep it, back up and delete the server; you only pay for the hours it existed. Or skip installing packages yourself and use the 1-click install from Marketplace below.

Plans suited to company and shop websites are on the WordPress hosting servers in Thailand page.

Follow the guide on your own server

Create a Cloud Server with Ubuntu, Debian or Windows Server, billed by the hour in Thai baht. Support answers 24/7 in Thai and English.