WordPress Multisite lets you run a network of websites — dozens or hundreds — from a single WordPress installation with a shared codebase, shared plugin set, and centralised administration. Deployed on a Hong Kong VPS with CN2 GIA routing, a Multisite network delivers all sites to mainland Chinese users at 30–60ms while sharing a single PHP-FPM pool, Redis object cache, and MySQL database — a dramatically more resource-efficient architecture than separate WordPress installations per site.
When to Use Multisite vs Separate Installs
| Use Multisite when | Use separate installs when |
|---|---|
| Running 5+ sites with shared plugins/themes | Sites have completely different plugin requirements |
| Agency managing client sites centrally | Clients need root WordPress access |
| Multi-language site (EN/ZH/JA versions) | Sites serve vastly different audiences |
| SaaS product with per-customer subdomains | One site getting 80%+ of your VPS traffic |
| Single team manages all sites | Different teams own different sites |
Step 1: Base Server Setup
<code">apt update && apt upgrade -y apt install -y nginx php8.3-fpm php8.3-mysql php8.3-redis \ php8.3-gd php8.3-mbstring php8.3-xml php8.3-zip php8.3-curl \ php8.3-intl php8.3-imagick mysql-server redis-server \ certbot python3-certbot-nginx # PHP-FPM tuning for Multisite cat > /etc/php/8.3/fpm/pool.d/wordpress.conf << 'EOF' [wordpress] user = www-data group = www-data listen = /run/php/php8.3-fpm-wordpress.sock listen.owner = www-data listen.group = www-data pm = dynamic pm.max_children = 20 pm.start_servers = 5 pm.min_spare_servers = 3 pm.max_spare_servers = 8 pm.max_requests = 1000 php_admin_value[memory_limit] = 256M php_admin_value[upload_max_filesize] = 64M php_admin_value[post_max_size] = 64M php_admin_value[max_execution_time] = 60 php_admin_value[opcache.enable] = 1 php_admin_value[opcache.memory_consumption] = 128 EOF systemctl restart php8.3-fpm
Step 2: MySQL Database
<code">mysql -u root -p << 'SQL' CREATE DATABASE wordpress_multisite CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; CREATE USER 'wp_user'@'localhost' IDENTIFIED BY 'StrongWPPass!'; GRANT ALL PRIVILEGES ON wordpress_multisite.* TO 'wp_user'@'localhost'; FLUSH PRIVILEGES; SQL
Step 3: Install WordPress
<code">mkdir -p /var/www/wordpress
cd /var/www/wordpress
wget https://wordpress.org/latest.tar.gz
tar xzf latest.tar.gz --strip-components=1
rm latest.tar.gz
cp wp-config-sample.php wp-config.php
# Configure wp-config.php
sed -i "s/database_name_here/wordpress_multisite/" wp-config.php
sed -i "s/username_here/wp_user/" wp-config.php
sed -i "s/password_here/StrongWPPass!/" wp-config.php
# Add salts (generate at https://api.wordpress.org/secret-key/1.1/salt/)
# Replace the placeholder AUTH_KEY etc. lines
# Add Multisite constant BEFORE "/* That's all, stop editing! */"
sed -i "/That's all, stop editing/i define('WP_ALLOW_MULTISITE', true);" wp-config.php
chown -R www-data:www-data /var/www/wordpress
find /var/www/wordpress -type d -exec chmod 755 {} \;
find /var/www/wordpress -type f -exec chmod 644 {} \;
Step 4: Nginx Configuration for Multisite
<code">cat > /etc/nginx/sites-available/wordpress-multisite << 'EOF'
# Map for WordPress Multisite subdomain routing
map $http_host $blogid {
default -999;
include /var/www/wordpress/wp-content/uploads/nginx-helper/map.conf;
}
upstream php-wordpress {
server unix:/run/php/php8.3-fpm-wordpress.sock;
keepalive 8;
}
# Main domain + subdomains
server {
listen 443 ssl http2;
server_name yourdomain.com *.yourdomain.com;
ssl_certificate /etc/letsencrypt/live/yourdomain.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/yourdomain.com/privkey.pem;
root /var/www/wordpress;
index index.php;
client_max_body_size 64m;
# Security headers
add_header X-Frame-Options DENY;
add_header X-Content-Type-Options nosniff;
# FastCGI cache (Nginx page cache)
fastcgi_cache_path /var/cache/nginx/wordpress
levels=1:2
keys_zone=wordpress_cache:50m
inactive=60m
max_size=2g;
# Don't cache logged-in users or cart pages
set $skip_cache 0;
if ($request_method = POST) { set $skip_cache 1; }
if ($query_string != "") { set $skip_cache 1; }
if ($request_uri ~* "/wp-admin/|/wp-login.php|/cart/|/checkout/") {
set $skip_cache 1;
}
if ($http_cookie ~* "comment_author|wordpress_logged_in|wp_woocommerce") {
set $skip_cache 1;
}
# WordPress Multisite subdomain rules
if (!-e $request_filename) {
rewrite /wp-admin$ $scheme://$host/wp-admin/ permanent;
rewrite ^(/[^/]+)?(/wp-.*) $2 last;
rewrite ^(/[^/]+)?(/.*\.php) $2 last;
}
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass php-wordpress;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
# FastCGI cache
fastcgi_cache wordpress_cache;
fastcgi_cache_valid 200 60m;
fastcgi_cache_bypass $skip_cache;
fastcgi_no_cache $skip_cache;
fastcgi_cache_key "$scheme$request_method$host$request_uri";
add_header X-Cache-Status $upstream_cache_status;
}
# Block access to sensitive files
location ~* /(?:uploads|files)/.*\.php$ { deny all; }
location ~ /\. { deny all; }
location = /wp-config.php { deny all; }
# Static assets caching
location ~* \.(css|js|png|jpg|jpeg|gif|ico|svg|webp|woff2)$ {
expires 1y;
add_header Cache-Control "public, immutable";
access_log off;
}
}
EOF
mkdir -p /var/cache/nginx/wordpress
chown www-data:www-data /var/cache/nginx/wordpress
# Wildcard SSL for all subdomains
certbot certonly --nginx -d yourdomain.com -d "*.yourdomain.com" \
--server https://acme-v02.api.letsencrypt.org/directory
ln -s /etc/nginx/sites-available/wordpress-multisite /etc/nginx/sites-enabled/
nginx -t && systemctl reload nginx
Step 5: Enable Multisite in WordPress
<code"># Complete the standard WordPress install first at https://yourdomain.com
# Then: Tools → Network Setup → choose Subdomains
# WordPress generates code to add to wp-config.php and .htaccess
# Add to wp-config.php (WordPress generates these values):
define('MULTISITE', true);
define('SUBDOMAIN_INSTALL', true);
define('DOMAIN_CURRENT_SITE', 'yourdomain.com');
define('PATH_CURRENT_SITE', '/');
define('SITE_ID_CURRENT_SITE', 1);
define('BLOG_ID_CURRENT_SITE', 1);
# Add Redis object cache
define('WP_REDIS_HOST', '127.0.0.1');
define('WP_REDIS_PORT', 6379);
define('WP_REDIS_DATABASE', 0);
define('WP_REDIS_SELECTIVE_FLUSH', true);
define('WP_CACHE_KEY_SALT', 'yourdomain_');
Step 6: Redis Object Cache
<code"># Install Redis Object Cache plugin via WP-CLI wget https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar -O /usr/local/bin/wp chmod +x /usr/local/bin/wp cd /var/www/wordpress sudo -u www-data wp plugin install redis-cache --activate --allow-root sudo -u www-data wp redis enable --allow-root # Verify Redis is being used sudo -u www-data wp redis status --allow-root # Status: Connected # Client: PhpRedis 6.0.x
Step 7: Network Administration
<code"># WP-CLI for Multisite management
# List all sites in network
sudo -u www-data wp site list --allow-root
# Create a new subsite
sudo -u www-data wp site create \
--slug=client-a \
--title="Client A Website" \
--email=admin@client-a.com \
--allow-root
# Install plugin network-wide
sudo -u www-data wp plugin install wordfence --activate-network --allow-root
# Activate theme for a specific site
sudo -u www-data wp --url=client-a.yourdomain.com theme activate astra --allow-root
# Run a command on all sites:
sudo -u www-data wp site list --field=url --allow-root | \
xargs -I {} sudo -u www-data wp --url={} cache flush --allow-root
Performance at Scale
| Sites | VPS Spec | Redis Cache Hit Rate | Nginx Cache |
|---|---|---|---|
| 1–10 sites, low traffic | 2 GB VPS | 80–90% | Optional |
| 10–50 sites, medium traffic | 4 GB VPS | 85–95% | Recommended |
| 50–200 sites, mixed traffic | 8 GB VPS | 90–97% | Essential |
Conclusion
WordPress Multisite on a Hong Kong VPS is the most resource-efficient way to manage multiple WordPress websites for Asia-Pacific audiences — one PHP-FPM pool, one Redis cache, one MySQL database, and one Nginx configuration serve all sites simultaneously. CN2 GIA routing delivers all sites to mainland Chinese users at 30–60ms TTFB. With Redis object caching achieving 90%+ hit rates and Nginx FastCGI caching serving cached pages without PHP, a single 4 GB VPS handles 20–50 moderate-traffic sites comfortably.
Host your site network: Browse Server.HK Hong Kong VPS plans — a 4 GB plan with NVMe storage runs WordPress Multisite at production scale for most agency or portfolio deployments.