WordPress on a dedicated server

WordPress runs a large share of the web, and on a dedicated machine it is fast and inexpensive per site. The right stack and a few settings make the difference.

Why put WordPress on a dedicated server?

For speed, control and cost per site. A busy shop, a membership site, a news site with traffic spikes, or an agency with forty client sites all outgrow shared hosting. On your own machine you choose the PHP version, the cache, the database settings and the security rules, and every core and gigabyte works for your sites alone.

Which stack should I install?

nginx, PHP-FPM, MariaDB and Redis is a proven combination. Ubuntu 24.04 ships PHP 8.3 and Debian 13 ships PHP 8.4, both well supported by current WordPress.

apt install nginx mariadb-server redis-server php-fpm php-mysql php-curl php-gd php-intl php-mbstring php-xml php-zip php-imagick php-redis
mariadb-secure-installation

Our Install a LAMP stack guide covers the Apache alternative; for many sites nginx uses less memory per connection.

How do I install a site with WP-CLI?

WP-CLI does everything the browser installer does, scriptably. Run it as the site's own user so file ownership stays correct.

sudo -u shopsite wp core download --path=/srv/www/shop.example.com --locale=en_GB
sudo -u shopsite wp config create --path=/srv/www/shop.example.com --dbname=shop --dbuser=shop --prompt=dbpass
sudo -u shopsite wp core install --path=/srv/www/shop.example.com --url=https://shop.example.com --title="Example Shop" --admin_user=owner --admin_email=owner@example.com --skip-email

The same tool updates core, plugins and themes, exports the database and rewrites URLs when you move a site: wp search-replace handles serialised data safely.

What is a sensible worker limit for the memory I have?

Divide the memory you give PHP by the memory per worker. A typical WordPress request uses 40 to 80 MB; WooCommerce and page builders sit at the top of that range or above. With 24 GB set aside for PHP and 80 MB per worker, pm.max_children can be about 300 across all pools. Each worker handles one request at a time, so with requests taking 150 ms that is roughly 2,000 uncached requests per second at full load, more than most sites ever see.

; pool file for the shop site, one such file per site in pool.d
[shop]
user = shopsite
group = shopsite
listen = /run/php/shop.sock
pm = ondemand
pm.max_children = 40
pm.process_idle_timeout = 20s
pm.max_requests = 1000

Which caches matter?

Three layers, each removing work from the one below.

How should cron run?

From the system, not from page visits. WordPress normally runs scheduled tasks when someone loads a page, which is unreliable on quiet sites and wasteful on busy ones. Set define('DISABLE_WP_CRON', true); in wp-config.php and add a system timer:

*/5 * * * * shopsite wp --path=/srv/www/shop.example.com cron event run --due-now --quiet

How do I keep many sites apart?

Give each site its own Linux user, PHP-FPM pool, database and database user. That way, a plugin exploited on one site stays locked inside it, unable to open the neighbours' files or database tables. Set open_basedir per pool, keep file permissions tight, block xmlrpc.php unless a site needs it, and issue certificates per domain with certbot. Hardening a new dedicated server covers the system side.

Which machine fits?

For a handful of sites, ESSENTIAL-2 with 8 cores and 32 GB DDR4 at $43.20 a month is ample. An agency hosting dozens of sites, or a large WooCommerce store, does well on BUSINESS-2 2024 with 64 GB DDR5, DDR5 and a 3 Gbps guaranteed port. Pair either with nightly database exports and file copies to another machine, as Ship database dumps to a second server explains, and see E-commerce shops for shop-specific planning.

Machines for WordPress hosting

Lowest monthly price of each model across its data centres; the model page shows the price in every location.

ModelProcessorCoresMemoryDrivesPortPer month
ESSENTIAL-2Intel Xeon-E 2388G832 GB2x 512 GB SSD NVMe1 Gbps unmetered$43.20
ESSENTIAL-SAMD Ryzen 7 9700X864 GB2x 512 GB SSD NVMe1 Gbps unmetered$46.20
ESSENTIAL-MAMD Ryzen 9 9900X1264 GB2x 512 GB SSD NVMe1 Gbps unmetered$70.80
ESSENTIAL-4AMD EPYC 73131664 GB2x 960 GB SSD NVMe1 Gbps unmetered$106.20
BUSINESS-1 2024AMD EPYC 4244P632 GB2x 960 GB SSD NVMe3 Gbps unmetered$81.60
BUSINESS-2 2024AMD EPYC 4344P864 GB2x 960 GB SSD NVMe3 Gbps unmetered$109.80

Start with an Essential model and move to Business when shops and traffic grow.

See all servers and prices

Related pages

High-traffic websites

Machines with fast cores and guaranteed 3 to 5 Gbps ports for news sites, forums, APIs and busy content platforms.

Read more

E-commerce shops

Single machines and two node setups for WooCommerce, Magento, PrestaShop and headless shops that must stay fast at checkout.

Read more

Install a LAMP stack

Install Apache, MariaDB and PHP on Debian, Ubuntu or the Enterprise Linux family, add a virtual host and HTTPS, and tune it for the hardware.

Read more

Hardening a new dedicated server

The first hour on a fresh machine: SSH keys, a firewall, automatic updates, brute force blocking and a habit of checking what listens.

Read more

Questions and answers

Which PHP version should WordPress use on a dedicated server?

A currently supported one. Ubuntu 24.04 ships PHP 8.3 and Debian 13 ships PHP 8.4, both well suited to current WordPress.

What pm.max_children value suits my server?

Divide the memory reserved for PHP by 40 to 80 MB per worker. With 24 GB for PHP, about 300 workers in total is a reasonable ceiling.

Does WordPress need Redis?

It is optional, but a Redis object cache speeds up logged-in users, shops and admin pages by keeping repeated query results in memory.

Should I disable WP-Cron?

Yes on a dedicated server. Set DISABLE_WP_CRON in wp-config.php and run wp cron event run --due-now from a system timer every five minutes.

Do you include a control panel for WordPress hosting?

No. We do not sell panel licences; the servers come with full root access, and WP-CLI plus nginx and PHP-FPM cover the work.