Skip to content

Reader-supported: we may earn a commission when you buy through our links. Learn more

PerkLantern

Guide

WordPress Hosting Requirements (2026): PHP, MySQL and What to Check Before You Buy

WordPress's official 2026 requirements — PHP 8.3+, MySQL 8.4+ or MariaDB 10.11+, HTTPS — plus the hosting handbook's PHP extensions and memory settings, which PHP versions are still supported, and a checklist for any host.

By Võ Nhật Quốc KhánhUpdated Dec 2, 2026Independent research — not hands-on tested

PerkLantern may earn a commission when you buy through links on this page, at no extra cost to you. How we make money

Short answer: WordPress.org recommends PHP 8.3 or greater, MySQL 8.4+ or MariaDB 10.11+, and HTTPS, on Apache or Nginx. The WordPress hosting handbook goes further and recommends PHP 8.4+ for production, with a PHP memory limit of 256M (512M+ for WooCommerce). Any decent host meets this — what to check is whether you can choose and update the PHP version yourself.

WordPress requirements in 2026. Recommended by WordPress.org: PHP 8.3 or greater, MySQL 8.4 or MariaDB 10.11 or greater, HTTPS, Apache or Nginx. Hosting handbook: PHP 8.4 or later for production, memory_limit 256M (128M minimum, 512M or more for WooCommerce), required extensions json, hash and mysqli, a caching extension such as opcache or redis. Legacy only: PHP 7.4 and MySQL 5.5.5, end of life

The official requirements

From WordPress.org's requirements page (last modified May 7, 2026):

  • PHP: "PHP version 8.3 or greater."
  • Database: "MariaDB version 10.11 or greater OR MySQL version 8.4 or greater."
  • HTTPS support.
  • Web server: "Apache or Nginx is recommended as the most robust and featureful server for running WordPress, but any server that supports PHP and MySQL will do."

WordPress still runs in legacy environments — "PHP 7.4+ and MySQL 5.5.5+" — but WordPress.org notes that those versions "have reached their official End Of Life and may expose your site to security vulnerabilities."

What the hosting handbook adds

WordPress's hosting handbook (updated November 24, 2026) is written for hosts, and it's stricter:

  • PHP 8.4 or later "is recommended for production environments."
  • Required PHP extensions: json, hash and mysqli.
  • Highly recommended: curl, dom, exif, fileinfo, igbinary, imagick, intl, mbstring, openssl, xml and zip.
  • Caching: one of apcu, memcached, opcache or redis.
  • Memory: memory_limit of 128M minimum, 256M recommended, and 512M or more for resource-intensive sites such as WooCommerce. WordPress's own WP_MEMORY_LIMIT defaults to 40M (64M for Multisite) and WP_MAX_MEMORY_LIMIT to 256M, but the server's php.ini value is the hard ceiling.
  • Databases: MySQL 8.4 and 9.7 LTS; MariaDB 10.11, 11.4, 11.8 and 12.3 are listed as officially recommended. MySQL 8.0 reached end of life on April 30, 2026.

Which PHP versions are still supported?

PHP support timeline from php.net, as of December 1, 2026: PHP 8.6 active until December 31, 2028 then security fixes to 2030; 8.5 active until December 31, 2027, security to 2029; 8.4 active until December 31, 2026, security to 2028; 8.3 security fixes only until December 31, 2027; 8.2 security fixes only until December 31, 2026

PHPStatus on Dec 1, 2026Security fixes until
8.6Active supportDec 31, 2030
8.5Active supportDec 31, 2029
8.4Active support (until Dec 31, 2026)Dec 31, 2028
8.3Security fixes onlyDec 31, 2027
8.2Security fixes onlyDec 31, 2026
8.1 and olderNot supported by the PHP project—

If your site is on PHP 8.2 or older, plan an upgrade now: 8.2 stops getting security fixes at the end of 2026. Test on a staging copy first, because old plugins and themes are the usual reason upgrades break. The handbook also flags a known crash in PHP 8.4.27 and 8.5.12, fixed in later point releases, and advises against downgrading to avoid it.

Checklist: what to ask any host

  1. Can I pick the PHP version myself, and are 8.3 and 8.4 available?
  2. Which database and version — MySQL 8.4+ or MariaDB 10.11+?
  3. What's the PHP memory limit, and can I raise it to 256M (512M for a store)?
  4. Is object caching available (Redis or Memcached) and is OPcache on?
  5. Free SSL that renews automatically?
  6. Staging, so I can test PHP and plugin upgrades before going live?
  7. Backups I can restore myself?

Shared hosts, managed hosts and DIY servers all meet the basics; the differences are in how much of this checklist is done for you. Our managed WordPress hosting explainer covers who does what, and how much WordPress hosting costs compares prices.

How Cloudways handles it

On Cloudways Flexible servers you choose the PHP version per server — its WooCommerce page lists "any PHP version from 7.4 through 8.4" — with MariaDB, Varnish, Redis and Memcached available, free SSL, staging and automated backups. That covers the handbook's recommendations; check the server settings screen for the exact versions on offer when you sign up.

See Cloudways plans

Our take

The numbers to remember are PHP 8.3+ (ideally 8.4), MySQL 8.4+ or MariaDB 10.11+, HTTPS and a 256M memory limit. More important than any single number: pick a host that lets you upgrade PHP on your own schedule and test it on staging first.

Research-based: requirements are from WordPress.org, its hosting handbook and php.net. PerkLantern is a Cloudways affiliate and may earn a commission if you sign up through our links, at no extra cost to you.

Sources

All accessed December 1, 2026.

  • WordPress.org: Requirements (PHP, database, HTTPS, web server, legacy versions)
  • WordPress Hosting Handbook: Server environment (PHP 8.4 recommendation, extensions, memory limits, database versions, known issues)
  • PHP: Supported versions (active and security support dates)
  • Cloudways: WooCommerce hosting (PHP 7.4–8.4, caching stack)

Frequently asked questions

What PHP version does WordPress need in 2026?

WordPress.org recommends PHP 8.3 or greater, and the WordPress hosting handbook recommends PHP 8.4 or later for production. WordPress still runs on PHP 7.4+, but WordPress.org warns that old versions have reached end of life and may expose your site to security vulnerabilities.

What database does WordPress need?

WordPress.org recommends MariaDB 10.11 or greater, or MySQL 8.4 or greater. It still works with MySQL 5.5.5+ in legacy environments, which WordPress.org also flags as end of life.

How much PHP memory does WordPress need?

The WordPress hosting handbook lists a PHP memory_limit of 128M as the minimum, 256M as the recommended default, and 512M or more for resource-intensive sites such as WooCommerce.

Which PHP versions are still supported?

As of December 1, 2026, php.net lists PHP 8.6, 8.5 and 8.4 in active support (8.4 until December 31, 2026), PHP 8.3 on security fixes only until December 31, 2027, and PHP 8.2 on security fixes only until December 31, 2026.