Websites & CMS

WordPress VPS requirements: RAM, CPU, disk, and how many PHP workers fit

By VPSfit · Sources checked · WordPress website · source code · GPL-2.0-or-later

WordPress is PHP on top of a MySQL-compatible database, and WordPress.org itself publishes no RAM figure for a server. It asks for PHP 8.3 or newer, MySQL 8.4 or MariaDB 10.11, and HTTPS. The WordPress hosting handbook adds a PHP memory limit of 128M as the floor, 256M as the normal default, and 512M or more for WooCommerce and page builders. Published tests this autumn put a fresh WordPress 7.1 with MariaDB at roughly 190 to 260 MiB idle. The two things that actually size the server are the database (MySQL 8.4 at its defaults takes over 400 MB before it holds a single table) and how many PHP processes can run at once, multiplied by what each one uses. One cached blog fits on 1 GB; a WooCommerce store wants 4 GB.

Sizing guide

Our recommendations, derived from the sourced figures below. Not measurements.

ScenarioRAMvCPUWhy
One blog or brochure site with a page cache, MariaDB (or MySQL tuned), PHP-FPM capped at 4–6 workers1 GB1Published tests put WordPress 7.1 with MariaDB at 188–262 MiB idle, and one test estimated about 537 MB at peak with MySQL tuned (Performance Schema off, 64 MB buffer pool). Add 1–2 GB of swap and block xmlrpc.php: floods of uncached PHP requests, not readers, are what knock small WordPress servers over. We haven't measured WordPress ourselves yet.
The standard Docker Compose stack with MySQL 8.4 at defaults, or a handful of small sites, or a 256M memory limit with more workers2 GB1MySQL 8.4 alone held 434–492 MB in one test before tuning, and WordPress plus MySQL peaked at about 834 MB with defaults. A community rule of thumb, 10 PHP workers at 60–120 MB plus MariaDB, also lands at 1–1.5 GB. Use 2 vCPU if several sites get real traffic.
WooCommerce, memberships, LMS or page builders: lots of uncached, logged-in PHP requests4 GB2WooCommerce asks for a 256 MB WordPress memory limit and the hosting handbook suggests 512M+ for stores and page builders. Carts, checkout and accounts bypass page caches, so each shopper is a PHP worker and database query. Community advice for stores is 4 GB and 2 vCPU. Our estimate, not a measurement.

Official requirements

ItemWhat the project saysSource
Requirements"PHP version 8.3 or greater. MariaDB version 10.11 or greater OR MySQL version 8.4 or greater. HTTPS support." Apache or Nginx recommended, "but any server that supports PHP and MySQL will do". WordPress still runs on PHP 7.4+ and MySQL 5.5.5+, which are end-of-lifeWordPress.org: Requirements
checked Nov 16, 2026
PHP memory limit tiersFor hosts, in the absence of a documented core minimum: 128M ("sufficient for a vanilla WordPress installation with no additional plugins or themes"), 256M recommended default, 512M or more for WooCommerce, page builders, multilingual plugins and import/export tools. WP_MEMORY_LIMIT defaults to 40M for front-end requests (64M on Multisite) and WP_MAX_MEMORY_LIMIT to 256M for admin, updates and image processingWordPress Hosting Handbook: Server Environment, PHP Memory Limit
checked Nov 16, 2026
PHP versions"PHP 8.4 or later is recommended for production environments." WordPress 7.1 is fully compatible with PHP 7.4 to 8.5 (7.4–8.1 for backward compatibility only). PHP 8.2 reaches end of life on 31 Dec 2026 and 8.3 is security-only. WordPress 7.0 raised the minimum PHP from 7.2.24 to 7.4WordPress Hosting Handbook: Server Environment, PHP
checked Nov 16, 2026
DatabaseRecommended LTS versions: MySQL 8.4 and 9.7, MariaDB 10.11, 11.4, 11.8 and 12.3. MySQL 8.0 reached end of life on 30 Apr 2026 and MariaDB 10.6 on 6 Jul 2026. SQLite is opt-in and experimental through a feature plugin, "not a wholesale replacement"WordPress Hosting Handbook: Server Environment, Database
checked Nov 16, 2026
Web server and PHP extensionsRecommended: Apache HTTPD 2.4 or nginx 1.30/1.31; LiteSpeed, OpenLiteSpeed and Angie also work well. Required PHP extensions: json, hash, mysqli. Highly recommended: curl, dom, exif, fileinfo, igbinary, imagick, intl, mbstring, openssl, xml, zip, plus OPcache and one of APCu, Memcached or Redis for object cachingWordPress Hosting Handbook: Server Environment
checked Nov 16, 2026
Official Docker imageDocker's official wordpress image ships 7.1.4 with PHP 8.2, 8.3, 8.4 or 8.5, as Apache, FPM or FPM-Alpine variants; latest is PHP 8.3 with Apache. Compressed sizes for amd64: 275.4 MB (latest) and 115.6 MB (php8.4-fpm-alpine). It adds no PHP extensions beyond what WordPress needs and "cannot send e-mails" on its own. Images for amd64, arm64, armv5/6/7, i386, ppc64le, riscv64 and s390xDocker Hub: wordpress (official image); tag sizes from the Docker Hub API (our check)
checked Nov 16, 2026
Updates in Docker"The initial install comes from the image, but after that it becomes self-managing within the /var/www/html/ data volume", with WordPress's own automatic updates on. Pulling a newer image tag doesn't upgrade an existing site unless you build a static image and run it read-onlyDocker Hub: wordpress, Static image / updates-via-redeploy
checked Nov 16, 2026
WP-Cron"WordPress will continue to run WP-Cron on each page load." After scheduling wp-cron.php from the system's task scheduler, set DISABLE_WP_CRON to true, which the docs say avoids extra resource useWordPress Plugin Handbook: Hooking WP-Cron Into the System Task Scheduler
checked Nov 16, 2026
WooCommerceWooCommerce 10.8 and later: WordPress 6.9+, PHP 8.3+ (tested up to 8.4), MySQL 8.0+ or MariaDB 10.6+, HTTPS, and a "WordPress memory limit of 256 MB or greater"WooCommerce docs: Server Recommendations
checked Nov 16, 2026
Current versionWordPress 7.1.4, released 28 Oct 2026 (7.1.3 on 6 Oct, 7.1.2 on 22 Sep). WordPress 7.2 is in beta. The 7.1.4 tar.gz is 35.4 MB and unpacks to 3,782 files, 106 MB (our check)WordPress.org: Releases
checked Nov 16, 2026

What people report in practice

Individual reports, not controlled tests. Versions, hardware and settings differ, so treat these as data points, not guarantees.

  • WordPress 7.1.4 (official php8.3-apache image) with MariaDB 11.4 idled at 98.4 MiB for WordPress and 89.7 MiB for the database, 188.1 MiB together (docker stats, median of 20 samples), after the install, the home page and one published post. "A 2 GB plan holds this stack with room for traffic spikes"

    Lab test by NodeRings (a server marketplace); before Ubuntu and a reverse proxy

    Blog NodeRings blog: WordPress on Ubuntu with Docker Compose, end to end · checked Nov 16, 2026

  • A live low-traffic site on Amazon Lightsail (2 GB, 2 vCPU): Caddy 45.0 MiB, WordPress php-fpm 97.3 MiB, MariaDB 119.6 MiB, 261.9 MiB for the stack in docker stats, while free -m reported 753 MiB used on the whole machine (kernel, Ubuntu services, Docker daemons). In ps the three php-fpm workers showed about 57–59 MB each, because ps counts shared memory once per process

    StackValue Lab, one reading on 30 Aug 2026 (updated 8 Sep), wordpress:6-php8.3-fpm-alpine, mariadb:11, eleven articles, near-zero traffic. No affiliate links on the page

    Blog StackValue Lab: How much RAM WordPress needs: 262 MiB. The machine needs 753 MiB · checked Nov 16, 2026

  • WordPress 7.1 on PHP 8.3 + Apache: 90 MB idle, 276 MB peak serving the home page to 20 connections, 167 MB after. MySQL 8.4 at defaults: 434 MB with no tables, 492 MB behind WordPress. With --performance-schema=OFF --innodb-buffer-pool-size=64M MySQL idled at 195 MB. Their totals: about 834 MB peak with defaults ("fits in 2 GB") and about 537 MB tuned ("fits in 1 GB")

    tport.cloud (a VPS host that sells plans), 31 Oct 2026; Docker Desktop on a 6-core machine, not a VPS; docker stats memory

    Blog tport.cloud: How much RAM does a small web app really need on a VPS? We measured 10 stacks · checked Nov 16, 2026

  • Every site on a 5.8 GB server returned errors when the OOM killer killed mysqld. Cause: Apache prefork with MaxRequestWorkers 150 and workers averaging 146 MB (max 182 MB), so the possible total was nearly 22 GB, triggered by about 9,500 POST requests to xmlrpc.php in one day. Fix: 20 workers, recycle children after 1,000 requests, block xmlrpc.php, protect MySQL with OOMScoreAdjust

    Post-mortem by the server's operator, 3 Sep 2026, Apache with mod_php in prefork mode

    Blog GRISCHKE SOLUTIONS: mysqld wasn't the culprit, a WordPress out-of-memory post-mortem · checked Nov 16, 2026

  • "Realistic is 60-120MB per worker depending on plugins. [...] With pm.max_children=10 (sane for a small business site) youre looking at 600MB-1.2GB of PHP alone. Plus mariadb at ~256MB." The same user: 1 GB works if you cache hard, but logged-in users, carts and members hit PHP every time. Another reply: 256M memory_limit for general use, 512M–1 GB with page builders or e-commerce, and 4 GB+ for a store's VPS

    r/webhosting thread "How much RAM does a WordPress site actually need?", June 2026

    Reddit Reddit r/webhosting: How much RAM does a WordPress site actually need? · checked Nov 16, 2026

  • A user who had already upgraded a VPS from 1 GB to 2 GB because MySQL kept crashing saw OOM kills again; lowering Apache's MaxClients from 150 to 75 stopped the crashes but made pages take about 25 seconds. The actual cause was "a massive amount of POST request through xmlrpc"; blocking xmlrpc.php fixed it

    Ask Ubuntu, 2016; old software, same failure pattern as the 2026 post-mortem above

    Forum Ask Ubuntu: MySQL out of memory · checked Nov 16, 2026

  • "I'm currently hosting 12-15 WordPress sites with 30+ static websites on this $5 droplet. Almost all the websites are low traffic. [...] It runs on Nginx + PHP-FPM & MariaDB. Memory usage is not above 200-300MB." Disk space, not RAM, was their limit

    r/webhosting, Dec 2018, a 1 GB DigitalOcean droplet; older WordPress and PHP

    Reddit Reddit r/webhosting: Can I host multiple WordPress sites on 1GB RAM 25GB VPS server · checked Nov 16, 2026

Our measurements: coming soon

We haven't measured WordPress yet, so there are no VPSfit lab numbers on this page. When we do, they'll show the app version, the plan it ran on, the date, and the raw data. Here's what we'll record:

  • Idle and 24-hour RAM of WordPress 7.1 with MariaDB 11.8 and with MySQL 8.4 (defaults and tuned), PHP-FPM ondemand, on a 1 GB plan
  • Memory per PHP-FPM worker for a plain install, with WooCommerce, and with a page builder
  • Uncached and page-cached requests per second on 1 and 2 vCPU
  • Whether a core and plugin update completes on 1 GB with and without swap

How we measure →

What drives WordPress's RAM use

PHP workers × memory per worker

Every uncached request occupies one PHP process (a PHP-FPM worker or an Apache mod_php child) for its whole duration. Peak PHP memory is the number of workers allowed to run at once times what each one uses: one post-mortem measured 146 MB per Apache child with a limit of 150 children (post-mortem), and Reddit users report 60–120 MB per FPM worker (thread). memory_limit is a per-request ceiling, not the typical size. Measure your workers on a warm site, then set pm.max_children (or Apache's MaxRequestWorkers) so the product fits next to the database.

The database: MySQL 8.4 defaults vs MariaDB

WordPress works with MySQL 8.4 or MariaDB 10.11+ (requirements). In published tests MariaDB 11.4 idled at about 90 MiB next to WordPress (NodeRings) while MySQL 8.4 at defaults held 434 MB with no tables, mostly the 128 MB InnoDB buffer pool and the Performance Schema; turning the Performance Schema off and using a 64 MB pool brought it to 195 MB (tport.cloud). On 1 GB, use MariaDB or tune MySQL. Grow the buffer pool once the database itself is hundreds of megabytes.

Page cache, logged-in users and CPU

A full-page cache (a caching plugin, Nginx FastCGI cache or a CDN) serves most anonymous visits without starting PHP at all, which is why one cached blog runs on 1 vCPU. Uncached, one test got 23 home-page requests a second from a fresh WordPress 7.1 on PHP 8.3 + Apache (tport.cloud). Logged-in editors, carts, checkout and member areas skip the cache, so stores and membership sites need more workers, more RAM and a second core. Object caching (Redis, Memcached or APCu) saves database work but adds its own memory (hosting handbook).

Bots, xmlrpc.php and WP-Cron

Each request to xmlrpc.php or wp-login.php starts a full PHP process. Both OOM reports above came from xmlrpc.php floods, not from readers. WordPress's own security docs call xmlrpc.php "a frequent brute-force target" and say to disable it if you don't use it, or restrict and rate-limit it (brute-force docs). WP-Cron runs on page loads by default; a system cron job with DISABLE_WP_CRON makes the load predictable (cron docs).

Disk: uploads, thumbnails and backups

Core is small: 106 MB unpacked for 7.1.4, and 115–275 MB compressed for the official Docker images (Docker Hub). Disk grows with uploads, because WordPress also stores several resized copies of every image, with plugin and theme files, the database and any backups you keep on the server. We found no reliable published average per site and haven't measured one, so check du -sh wp-content/uploads after the first months and keep backups off the VPS.

Gotchas on a VPS

  • Cap PHP workers to the RAM you have. Apache prefork's MaxRequestWorkers was 150 in both the post-mortem and the tport.cloud test above (the usual packaged setting), far more than a small VPS can hold at 50–150 MB a process. A burst then starts more workers than fit and the kernel kills the biggest process, usually MySQL (post-mortem). Set the worker count from measured RSS, recycle workers (pm.max_requests or MaxConnectionsPerChild), add swap, and consider OOMScoreAdjust so a PHP worker dies before the database does.
  • Block or rate-limit xmlrpc.php and wp-login.php. If you don't use Jetpack or the mobile apps, deny xmlrpc.php at the web server or CDN; otherwise rate-limit it, and rate-limit logins at the edge rather than with a PHP plugin, which still costs a PHP process per attempt (WordPress brute-force docs).
  • Don't copy the Docker Hub example as-is. The example compose.yaml on Docker Hub uses mysql:8.0, which reached end of life on 30 Apr 2026, and publishes port 8080 on every interface (Docker Hub, hosting handbook). Use MySQL 8.4 or a MariaDB LTS such as 11.8, bind the port to 127.0.0.1 behind your reverse proxy (Docker's published ports bypass UFW, see the Docker docs), and never publish the FPM variant's port at all: Docker Hub calls FastCGI "extremely insecure" outside a private network.
  • The Docker image can't send email. The official image has no mail transport, so password resets, notifications and WooCommerce order emails silently go nowhere (Docker Hub). Configure an SMTP plugin with a transactional mail service before you rely on the site.
  • PHP 8.4.27 and 8.5.12 can crash. The 21 Oct 2026 PHP security releases have a garbage-collector regression with SimpleXML that crashes PHP-FPM children (exited on signal 6). The handbook says not to downgrade: the fix is in 8.4.28 and 8.5.13, and PHP 8.3.36 has the security fixes without the regression (hosting handbook, known issue).
  • A new image tag doesn't update the site. In the official image, WordPress copies itself into the /var/www/html volume on first start and then updates itself there (Docker Hub). Keep automatic updates on, or build a static image and run it read-only if you want updates to come from redeploys.
  • Back up the database and the files. "There are two parts to backing up your WordPress site: Database and Files. You need both" (WordPress backup docs). Dump the database with mysqldump or mariadb-dump, archive wp-content and wp-config.php, and copy both off the server. We haven't tested a restore ourselves yet.

Cheapest plans that fit

WordPress, one cached site, MariaDB or tuned MySQL: 1 GB RAM and 1+ vCPU

Threshold: Published tests: 188–262 MiB idle with MariaDB, about 537 MB peak with MySQL tuned. Add swap. Not yet measured by us (source). Only plans with at least 1 vCPU are listed.

Provider & planRAMvCPUDisk Price / monthTermsSource
Contabo Cloud VPS 4 8 GB 4 shared 100 GB SSD €4.40
excl. VAT · ≈ $4.93
24-month term (effective monthly rate) contabo.com
checked Nov 12, 2026
Vultr Cloud Compute Regular 1 GB 1 GB 1 shared, previous-gen Intel 25 GB SSD $5.00
before tax
Monthly price, hourly billing vultr.com
checked Nov 12, 2026
DigitalOcean Basic 1 GiB 1 GB 1 shared 25 GB SSD $6.00
before tax
Monthly cap, per-second billing digitalocean.com
checked Nov 12, 2026
Hetzner CPX02 (Regular Performance) 1 GB 1 shared, AMD 20 GB NVMe €5.49
excl. VAT · ≈ $6.16
Monthly cap, hourly billing hetzner.com
checked Nov 12, 2026

WordPress Docker stack with MySQL 8.4 defaults, or a few small sites: 2 GB RAM and 1+ vCPU

Threshold: One test peaked at about 834 MB for WordPress plus MySQL 8.4 at defaults and rated it a 2 GB fit (source). Only plans with at least 1 vCPU are listed.

Provider & planRAMvCPUDisk Price / monthTermsSource
Contabo Cloud VPS 4 8 GB 4 shared 100 GB SSD €4.40
excl. VAT · ≈ $4.93
24-month term (effective monthly rate) contabo.com
checked Nov 12, 2026
Contabo Cloud VPS 6 12 GB 6 shared 200 GB SSD (or 100 GB NVMe) €6.00
excl. VAT · ≈ $6.73
24-month term (effective monthly rate) contabo.com
checked Nov 12, 2026
Vultr Cloud Compute Regular 2 GB 2 GB 1 shared, previous-gen Intel 55 GB SSD $10.00
before tax
Monthly price, hourly billing vultr.com
checked Nov 12, 2026
Hostinger KVM 1 4 GB 1 AMD EPYC 50 GB NVMe $11.99
intro $6.49
before tax
Prepaid intro rate; renews at $11.99/mo hostinger.com
checked Nov 12, 2026

WooCommerce or a membership site: 4 GB RAM and 2+ vCPU

Threshold: Our estimate, not a measurement: WooCommerce's 256 MB memory limit and the handbook's 512M+ tier for stores, with uncached checkout traffic (source). Only plans with at least 2 vCPUs are listed.

Provider & planRAMvCPUDisk Price / monthTermsSource
Contabo Cloud VPS 4 8 GB 4 shared 100 GB SSD €4.40
excl. VAT · ≈ $4.93
24-month term (effective monthly rate) contabo.com
checked Nov 12, 2026
Contabo Cloud VPS 6 12 GB 6 shared 200 GB SSD (or 100 GB NVMe) €6.00
excl. VAT · ≈ $6.73
24-month term (effective monthly rate) contabo.com
checked Nov 12, 2026
Contabo Cloud VPS 8 24 GB 8 shared 300 GB SSD (or 150 GB NVMe) €11.20
excl. VAT · ≈ $12.56
24-month term (effective monthly rate) contabo.com
checked Nov 12, 2026
Hostinger KVM 2 8 GB 2 AMD EPYC 100 GB NVMe $14.99
intro $8.79
before tax
Prepaid intro rate; renews at $14.99/mo hostinger.com
checked Nov 12, 2026

Prices checked Nov 12, 2026 on each provider's official pricing page. EUR prices converted at the ECB rate of Nov 11, 2026 (1 € = $1.1127) only for ranking. See every plan on the cheapest 2 GB, 4 GB and 8 GB VPS pages.