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
- What a business website costs
- Web hosting or a Cloud Server
- How the pieces fit
- 1. Sign up and add credit
- 2. Create the server
- 3. Open the web ports
- 4. Point your domain at the server
- 5. Connect over SSH
- 6. Install
Docker
- 7. Install
WordPress and HTTPS
- 8. First sign-in to
WordPress
- 9. Add a theme and the pages a business needs
- 10. Make the site fast and safe
- 11. Back up the whole server from the console
- 12. Back up and restore just the website
- 13. Keep the site updated
- 14. Move to a bigger plan as the site grows
- If you see this, do this
- Frequently asked questions
- 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.
You can try it for a day first. This table compares running the server for 24 hours with a full month.
| Item | Paid to | Required? |
|---|---|---|
| Cloud Server | XVer | Yes |
| Domain | Your domain registrar | Yes |
| HTTPS certificate | Free |
Yes |
| 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#
- Customer opens your domain over HTTPS
Caddy takes the request and gets and renews the certificate
WordPress builds the page
MariaDB stores posts, users and orders
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.
Type your own values and the commands on this page follow
1. Sign up and add credit#
- Open my.xver.cloud, click Sign up, and complete the verification the console asks for.
- Open Top up and choose an amount.
- Choose
PromptPay, card or
TrueMoney, then pay.
2. Create the server#
- Open Cloud Server and click Deployment.
- Choose
Linux >
Ubuntu > 24.04 LTS.
- Under Instance family, pick Shared and
s-2vcpu-4gb. - Set a Hostname such as
myshop. - Check the price in the summary, then click Create Server.


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 |


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.
nslookup DOMAIN
nslookup www.DOMAIN5. Connect over SSH#
Open the Access tab on the server page to see the username and password.


Windows
Press Start, type PowerShell, and open it.
ssh SERVER_USER@SERVER_IPMac
Press Command and Space, type Terminal, and open it.
ssh SERVER_USER@SERVER_IPThe 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.
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-world7. 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.
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 .envcat > ~/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
EOFNext is the Compose file. The database opens no port to the internet; only Caddy listens on ports 80 and 443.
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:
EOFStart everything and check the status.
cd ~/business
sudo docker compose config -q && sudo docker compose up -d
sudo docker compose ps8. First sign-in to
WordPress#
- Choose your language and continue.
- Use your shop or company name as the site title.
- Pick a username that is hard to guess, not
adminor the shop name. - Use the password
WordPress generates and keep it in a password manager.
- 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, |
| 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.


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.
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.shRun it every day at 03:00 server time with this command.
echo "0 3 * * * root $HOME/business/backup.sh >> /var/log/business-backup.log 2>&1" | sudo tee /etc/cron.d/business-backupFiles 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.
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.gzscp 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.
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-contentOpen 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.
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 ps14. Move to a bigger plan as the site grows#
Check RAM and disk before you decide.
free -h
df -h /
sudo docker stats --no-streamChange the plan under Settings > Resize; the server restarts. Disk can only grow, never shrink. Read how to upsize and how to choose a size.
If you see this, do this#
Common symptoms and fixes
IssueSSH times out
Check the IP, the server status, and the port 22 firewall rule.
IssueHTTPS does not load
Check DNS and ports 80/443, then run sudo docker compose logs --tail 50 caddy.
Issue502 Bad Gateway
Wait a minute, then check sudo docker compose ps and the wordpress log.
IssueError establishing a database connection
Check the db log; never create a new .env over the old passwords.
IssueThe old website shows up
An A or AAAA record still points to the old host, or DNS has not updated yet.
IssueLarge uploads fail
Files must be 64 MB or less, or edit uploads.ini and run sudo docker compose restart wordpress.
IssueDisk is full
Check sudo docker system df, delete old backups, then consider adding more disk space.
IssueEmail does not send
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.