Title: Server Environment
Author: Javier Casares
Published: 2018-05-18
Last modified: 2026-11-04

---

# Server Environment

## In this article

 * [WordPress Environment recommendations](https://make.wordpress.org/hosting/handbook/server-environment/?output_format=md#wordpress-environment-recommendations)
 * [Web Server](https://make.wordpress.org/hosting/handbook/server-environment/?output_format=md#web-server)
 * [PHP](https://make.wordpress.org/hosting/handbook/server-environment/?output_format=md#php)
    - [WordPress versions](https://make.wordpress.org/hosting/handbook/server-environment/?output_format=md#wordpress-versions)
    - [Notes for Hosts and Developers](https://make.wordpress.org/hosting/handbook/server-environment/?output_format=md#notes-for-hosts-and-developers)
    - [About PHP](https://make.wordpress.org/hosting/handbook/server-environment/?output_format=md#about-php)
    - [PHP Extensions](https://make.wordpress.org/hosting/handbook/server-environment/?output_format=md#php-extensions)
    - [System Packages](https://make.wordpress.org/hosting/handbook/server-environment/?output_format=md#system-packages)
    - [PHP Memory Limit](https://make.wordpress.org/hosting/handbook/server-environment/?output_format=md#php-memory-limit)
 * [Database](https://make.wordpress.org/hosting/handbook/server-environment/?output_format=md#database)
    - [Officially recommended versions](https://make.wordpress.org/hosting/handbook/server-environment/?output_format=md#officially-recommended-versions)
    - [End-of-life MySQL versions](https://make.wordpress.org/hosting/handbook/server-environment/?output_format=md#end-of-life-mysql-versions)
    - [End-of-life MariaDB versions](https://make.wordpress.org/hosting/handbook/server-environment/?output_format=md#end-of-life-mariadb-versions)
    - [Innovation Releases](https://make.wordpress.org/hosting/handbook/server-environment/?output_format=md#innovation-releases)
    - [Other MySQL servers](https://make.wordpress.org/hosting/handbook/server-environment/?output_format=md#other-mysql-servers)
 * [How do I know which version I have?](https://make.wordpress.org/hosting/handbook/server-environment/?output_format=md#how-do-i-know-which-version-i-have)

Although WordPress can work in almost any environment, some environments are more
optimal for functionality and performance while others are less so. Below are a 
few minimum recommendations for serverServer A server is a piece of computer hardware
or software that provides functionality for other programs or devices. Typical servers
are database servers, file servers, mail servers, print servers, web servers, game
servers, and application servers. environment configurations within which WordPress
operates most efficiently, with consideration for WordPress websites that use third-
party plugins and themes which commonly introduce additional server-level requirements.

## 󠀁[WordPress Environment recommendations](https://make.wordpress.org/hosting/handbook/server-environment/?output_format=md#wordpress-environment-recommendations)󠁿

Quick recommendations:

 * [WordPress 7.1 Server Compatibility](https://make.wordpress.org/hosting/handbook/compatibility/version/7-1/)
 * [WordPress 7.0 Server Compatibility](https://make.wordpress.org/hosting/handbook/compatibility/version/7-0/)
 * [WordPress 6.9 Server Compatibility](https://make.wordpress.org/hosting/2026/05/27/wordpress-6-9-server-compatibility/)
 * [WordPress 6.8 Server Compatibility](https://make.wordpress.org/hosting/2025/04/16/wordpress-6-8-server-compatibility/)
 * [WordPress 6.7 Server Compatibility](https://make.wordpress.org/hosting/2024/11/05/wordpress-6-7-server-compatibility/)
 * [WordPress 6.6 Server Compatibility](https://make.wordpress.org/hosting/2024/07/10/wordpress-6-6-server-compatibility/)
 * [WordPress 6.5 PHP Compatibility](https://make.wordpress.org/hosting/2024/04/05/wordpress-6-5-php-compatibility/)
 * [WordPress 6.4 PHP Compatibility](https://make.wordpress.org/hosting/2023/11/16/wordpress-6-4-php-compatibility/)
 * [WordPress 6.3 PHP Compatibility](https://make.wordpress.org/hosting/2023/10/11/wordpress-6-3-php-compatibility/)

All published posts on compatibility are available at:

 * [Release Compatibility](https://make.wordpress.org/hosting/category/release-compatibility/)

## 󠀁[Web Server](https://make.wordpress.org/hosting/handbook/server-environment/?output_format=md#web-server)󠁿

A web serverServer A server is a piece of computer hardware or software that provides
functionality for other programs or devices. Typical servers are database servers,
file servers, mail servers, print servers, web servers, game servers, and application
servers. is a piece of software that receives and accepts web requests from website
visitor computers, then returns the appropriate web data back to the user. There
are many different types of pieces of web server software that run on different 
operating systems. Generally, if your web server supports and executes PHPPHP PHP(
PHP: Hypertext Preprocessor) is a general-purpose scripting language especially 
suited to web development. PHP code is usually processed on a web server by a PHP
interpreter. On a web server, the result of the interpreted and executed PHP code
would form the whole or part of an HTTP response. files, it should be able to work
with WordPress.

The two most common pieces of web server software, and the ones recommended for 
WordPress, are:

 * [Apache HTTPD](https://httpd.apache.org/) 2.4
 * [nginx](https://nginx.org/) 1.30 (stable) / 1.31 (mainline)

Additional software used by web hostingHosting A web hosting service is a type of
Internet hosting service that allows individuals and organizations to make their
website accessible via the World Wide Web. companies and developers that are known
to work well with WordPress are:

 * [Angie](https://en.angie.software/) 1.12
 * [LiteSpeed Web Server](https://www.litespeedtech.com/products/litespeed-web-server)
   6.3
 * [OpenLiteSpeed](https://openlitespeed.org/) 1.8 (stable) / 1.9 (latest)

_Every version listed above still receives fixes, and anything below them does not.
nginxNGINX nginx is a web server that can also be used as a reverse proxy, load 
balancer, mail proxy and HTTP cache. Nginx is free and open-source software, released
under the terms of the 2-clause BSD license. and OpenLiteSpeedOpenLiteSpeed OpenLiteSpeed,
is a open-source web server software. The software uses the same configuration format
as Apache HTTP Server and is compatible with most Apache features. each maintain
a supported branch that is not their newest release, so 1.30 and 1.8 are the options
for hosts who would rather not track the latest version. Apache HTTPDApache HTTPD
The Apache HTTP Server, colloquially called Apache, is a free and open-source cross-
platform web server software. The vast majority of Apache HTTP Server instances 
run on a Linux distribution, but current versions also run on Microsoft Windows,
OpenVMS, and a wide variety of Unix-like systems., Angie and LiteSpeed Web ServerLiteSpeed
Web Server LiteSpeed Web Server (LSWS), is a proprietary web server software. The
software uses the same configuration format as Apache HTTP Server and is compatible
with most Apache features. patch only their current version, so on those there is
no supported alternative to staying current. Checked at the WordPress 7.1 release.
Always keep your web server up-to-date to ensure best performance!_

## 󠀁[PHP](https://make.wordpress.org/hosting/handbook/server-environment/?output_format=md#php)󠁿

PHP is a programming language on which WordPress code is based. This language runs
on the server and it is important to keep it up to date, both for security and functionality.

WordPress supports many versions of PHP, some even obsolete ([See PHP Compatibility and WordPress Versions](https://make.wordpress.org/core/handbook/references/php-compatibility-and-wordpress-versions/)).
For hostingHosting A web hosting service is a type of Internet hosting service that
allows individuals and organizations to make their website accessible via the World
Wide Web. companies, the following is recommended:

### 󠀁[WordPress versions](https://make.wordpress.org/hosting/handbook/server-environment/?output_format=md#wordpress-versions)󠁿

Below are details on specific WordPress versions, PHP compatibility for that version
and development tickets related to PHP compatibility at the time of release. Tickets
related to PHP compatibility can be found at any time by [Searching WordPress Trac](https://core.trac.wordpress.org/query?status=accepted&status=assigned&status=closed&status=new&status=reopened&status=reviewing&keywords=~php&keywords=~php80&keywords=~php81&keywords=~php82&keywords=~php83&keywords=~php84&keywords=~php85&milestone=6.9&milestone=7.0&milestone=7.1&milestone=Future+Release&group=resolution&col=id&col=summary&col=owner&col=type&col=priority&col=component&col=version&order=priority).

The CoreCore Core is the set of software required to run WordPress. The Core Team
builds WordPress. team retired the [“compatible with exceptions” label in April 2025](https://make.wordpress.org/core/2025/04/09/php-8-support-clarification/)
and the [“beta support” label in May 2026](https://make.wordpress.org/core/2026/05/22/php-support-clarification-2026/).
Both labels were removed retroactively from all WordPress versions.

### 󠀁[Notes for Hosts and Developers](https://make.wordpress.org/hosting/handbook/server-environment/?output_format=md#notes-for-hosts-and-developers)󠁿

 * PHP 8.4 or later is recommended for production environments.
 * PHP 8.4 is in active support and is fully supported by WordPress 6.7 and later.
 * PHP 8.5 is in active support and is fully supported by WordPress 6.9 and later.
 * PHP 8.3 moved to security-only support on 31 December 2025, and PHP 8.2 reaches
   end of life on 31 December 2026. Plan migrations for sites still on those versions.
 * Hosts should test their full stack before making a new PHP version the default
   for production environments.

#### 󠀁[WordPress 7.1](https://make.wordpress.org/hosting/handbook/server-environment/?output_format=md#wordpress-7-1)󠁿

 * [PHP 8.2](https://www.php.net/ChangeLog-8.php#PHP_8_2) (Security Support)
 * [PHP 8.3](https://www.php.net/ChangeLog-8.php#PHP_8_3) (Security Support)
 * [PHP 8.4](https://www.php.net/ChangeLog-8.php#PHP_8_4) (Active Support)
 * [PHP 8.5](https://www.php.net/ChangeLog-8.php#PHP_8_5) (Active Support)

_IMPORTANT: WordPress 7.1 requires PHP 7.4 or later, unchanged from WordPress 7.0._

_IMPORTANT: WordPress 7.1 is **fully compatible** with PHP 7.4 (1), 8.0 (1), 8.1(
1), 8.2, 8.3, 8.4 and 8.5._

_(1) These PHP versions are end-of-life and are supported by WordPress for backward
compatibility only. Use of supported PHP versions is strongly recommended._

 * Other PHP Related Tickets
    - [#65342](https://core.trac.wordpress.org/ticket/65342): Charset: Polyfill `
      mb_ord()` and `mb_chr()`. _NOTE: Closed / Fixed._
    - [#65143](https://core.trac.wordpress.org/ticket/65143): Code Modernization:
      Add a polyfill for `clamp()`. _NOTE: Closed / Fixed._
    - [#65408](https://core.trac.wordpress.org/ticket/65408): Code Modernization:
      Replace `strpos()` with `str_contains()`. _NOTE: Closed / Fixed._
    - [#65403](https://core.trac.wordpress.org/ticket/65403): Code Modernization:
      Simplify node retrieval using the null coalescing operator. _NOTE: Closed /
      Fixed._
    - [#65637](https://core.trac.wordpress.org/ticket/65637): Code Modernization:
      Avoid returning values in constructors. _NOTE: Closed / Fixed._
    - [#65519](https://core.trac.wordpress.org/ticket/65519): Adoption of `array_any()`
      and `array_all()` across core.
    - [#65598](https://core.trac.wordpress.org/ticket/65598): Adoption of `array_first()`
      and `array_last()`.
    - [#64897](https://core.trac.wordpress.org/ticket/64897): Coding standards work
      for the 7.1 cycle, covering the null coalescing and `str_contains()` conversions.

#### 󠀁[WordPress 7.0](https://make.wordpress.org/hosting/handbook/server-environment/?output_format=md#wordpress-7-0)󠁿

 * [PHP 8.2](https://www.php.net/ChangeLog-8.php#PHP_8_2) (Security Support)
 * [PHP 8.3](https://www.php.net/ChangeLog-8.php#PHP_8_3) (Security Support)
 * [PHP 8.4](https://www.php.net/ChangeLog-8.php#PHP_8_4) (Active Support)
 * [PHP 8.5](https://www.php.net/ChangeLog-8.php#PHP_8_5) (Active Support)

_IMPORTANT: WordPress 7.0 raised the minimum required PHP version from 7.2.24 to
7.4. Support for PHP 7.2 and 7.3 was dropped in this release._

_IMPORTANT: WordPress 7.0 is **fully compatible** with PHP 7.4 (1), 8.0 (1), 8.1(
1), 8.2, 8.3, 8.4 and 8.5._

_(1) These PHP versions are end-of-life and are supported by WordPress for backward
compatibility only. Use of supported PHP versions is strongly recommended._

 * PHP 7.4
    - Minimum supported version as of WordPress 7.0
    - [#62622](https://core.trac.wordpress.org/ticket/62622): Increase the minimum
      supported version of PHP to 7.4. _NOTE: Closed / Fixed._
 * PHP 8.5
    - Fully compatible as of May 2026
    - [#64322](https://core.trac.wordpress.org/ticket/64322): Media: Adjustments
      for official HEIF/HEIC support added in PHP 8.5. _NOTE: Closed / Fixed._
 * Other PHP Related Tickets
    - [#58874](https://core.trac.wordpress.org/ticket/58874): Code Modernization:
      Consider using the null coalescing operator. _NOTE: Closed / Fixed. Deferred
      since WordPress 6.8, and completed in 7.0 because the 7.4 minimum made the
      operator available everywhere._
    - [#63430](https://core.trac.wordpress.org/ticket/63430): Code Modernization:
      Replace `isset()` ternary checks with the null coalescing operator. _NOTE:
      Closed / Fixed._
    - [#64488](https://core.trac.wordpress.org/ticket/64488): Code Modernization:
      Replace `if` statements with the null coalescing operator. _NOTE: Closed /
      Fixed._
    - [#64497](https://core.trac.wordpress.org/ticket/64497): Code Modernization:
      Utilize the spaceship operator in sort comparison logic. _NOTE: Closed / Fixed._
    - [#64773](https://core.trac.wordpress.org/ticket/64773): Code Modernization:
      Use `str_starts_with()` in `WP_Duotone` class methods. _NOTE: Closed / Fixed._
    - [#64928](https://core.trac.wordpress.org/ticket/64928): Code Modernization:
      Replace the deprecated `auto_detect_line_endings` setting. _NOTE: Closed /
      Fixed._
    - [#64864](https://core.trac.wordpress.org/ticket/64864): Code Modernization:
      Fix “passing null to non-nullable” deprecation from `previous_posts()`. _NOTE:
      Closed / Fixed._
    - [#64728](https://core.trac.wordpress.org/ticket/64728): Toolbar: Prevent PHP
      deprecation warning in admin bar when a node is added with a `null` parent.
      _NOTE: Closed / Fixed._
    - [#64332](https://core.trac.wordpress.org/ticket/64332): DatabaseDatabase A
      database is an organized collection of data. Access to this data is usually
      provided by a “database management system” (DBMS) consisting of an integrated
      set of computer software that allows users to interact with one or more databases
      and provides access to all of the data contained in the database. Because 
      of the close relationship between them, the term “database” is often used 
      casually to refer to both a database and the DBMS used to manipulate it.: 
      Further correct the MariaDBMariaDB MariaDB is a fork of the MySQL relational
      database management system (RDBMS), intended to remain free and open-source
      software under the GNU General Public License. MariaDB intended to maintain
      high compatibility with MySQL, ensuring a drop-in replacement capability with
      library binary parity and exact matching with MySQL APIs and commands. version
      check in `wpdb::has_cap()`. _NOTE: Closed / Fixed._
    - [#63697](https://core.trac.wordpress.org/ticket/63697): Site HealthSite Health
      This WordPress functionality will perform a number of checks on your installation
      to detect common configuration errors and known issues, and also allows plugins
      and themes to add their own checks.: Add test and debug data for opcode cacheCache
      A cache is a component that stores data so that future requests for that data
      can be served faster; the data stored in a cache might be the result of an
      earlier computation or a copy of data stored elsewhere.. _NOTE: Closed / Fixed._

#### 󠀁[WordPress 6.9](https://make.wordpress.org/hosting/handbook/server-environment/?output_format=md#wordpress-6-9)󠁿

 * [PHP 8.1](https://www.php.net/ChangeLog-8.php#PHP_8_1) (Security Support)
 * [PHP 8.2](https://www.php.net/ChangeLog-8.php#PHP_8_2) (Security Support)
 * [PHP 8.3](https://www.php.net/ChangeLog-8.php#PHP_8_3) (Active Support)
 * [PHP 8.4](https://www.php.net/ChangeLog-8.php#PHP_8_4) (Active Support)
 * [PHP 8.5](https://www.php.net/ChangeLog-8.php#PHP_8_5) (Active Support)

_IMPORTANT: WordPress 6.9 is **fully compatible** with PHP 7.4 (1), 8.0 (1), 8.1(
1), 8.2, 8.3, 8.4 and 8.5._

_(1) These PHP versions are end-of-life and are supported by WordPress for backward
compatibility only. Use of supported PHP versions is strongly recommended._

 * PHP 8.4
    - Fully compatible as of May 2026
    - [#62061](https://core.trac.wordpress.org/ticket/62061): Prepare for PHP 8.4.
      _NOTE: Closed / Fixed_
 * PHP 8.5
    - Fully compatible as of May 2026
    - [#63061](https://core.trac.wordpress.org/ticket/63061): Prepare for PHP 8.5
 * Other PHP Related Tickets
    - [#51525](https://core.trac.wordpress.org/ticket/51525): Add new functions 
      apply_filters_single_type() and apply_filters_ref_array_single_type(). _Note:
      Moved to Future Release._
    - [#54183](https://core.trac.wordpress.org/ticket/54183): Tests: decide on how
      to handle deprecations in PHPUnit. _Note: Moved to Future Release._
    - [#54537](https://core.trac.wordpress.org/ticket/54537): Tests: Enable PHP 
      version check once PHP 8.0 compatibility is achieved. _Note: Moved to Future
      Release._
    - [#58874](https://core.trac.wordpress.org/ticket/58874): Code Modernization:
      Consider using the null coalescing operator. _Note: Moved to Future Release._
    - [#59234](https://core.trac.wordpress.org/ticket/59234): Introduce a `wp_json_decode()`
      function, including validation when available. _Note: Closed and will not 
      be moving forward._

#### 󠀁[WordPress 6.8](https://make.wordpress.org/hosting/handbook/server-environment/?output_format=md#wordpress-6-8)󠁿

 * [PHP 8.1](https://www.php.net/ChangeLog-8.php#PHP_8_1) (Security Support)
 * [PHP 8.2](https://www.php.net/ChangeLog-8.php#PHP_8_2) (Security Support)
 * [PHP 8.3](https://www.php.net/ChangeLog-8.php#PHP_8_3) (Active Support)
 * [PHP 8.4](https://www.php.net/ChangeLog-8.php#PHP_8_4) (Active Support)

_IMPORTANT: WordPress 6.8 is **fully compatible** with PHP 7.2 (1), 7.3 (1), 7.4(
1), 8.0 (1), 8.1, 8.2, 8.3, and PHP 8.4._

 * PHP 8.3
    - Fully compatible as of July 2025
    - [#59231](https://core.trac.wordpress.org/ticket/59231): Prepare for PHP 8.3.
      _NOTE: Closed/Fixed_
    - [#59232](https://core.trac.wordpress.org/ticket/59232): Introduce `#[Override]`
      attribute to mark overloaded methods. This attribute helps prevent coding 
      errors by making it clear when a method is overloaded. It also assists with
      refactoring, debugging, and catching potential breaking changes in the parent
      class. _NOTE: Has a patch, but moved to Future Release._
    - [#59233](https://core.trac.wordpress.org/ticket/59233): Improve error handling
      for unserialize(). maybe_unserialize() function could still be confronted 
      by data with trailing bytes. _NOTE: Moved to Future Release._
 * PHP 8.4
    - Fully compatible as of May 2026
    - [#62061](https://core.trac.wordpress.org/ticket/62061): Prepare for PHP 8.4.
      _NOTE: Closed/Fixed_
 * Other PHP Related Tickets
    - [#51525](https://core.trac.wordpress.org/ticket/51525): Add new functions 
      apply_filters_single_type() and apply_filters_ref_array_single_type(). _Note:
      Moved to Future Release._
    - [#54183](https://core.trac.wordpress.org/ticket/54183): Tests: decide on how
      to handle deprecations in PHPUnit. _Note: Moved to Future Release._
    - [#54537](https://core.trac.wordpress.org/ticket/54537): Tests: Enable PHP 
      version check once PHP 8.0 compatibility is achieved. _Note: Moved to Future
      Release._
    - [#58874](https://core.trac.wordpress.org/ticket/58874): Code Modernization:
      Consider using the null coalescing operator. _Note: Moved to Future Release._
    - [#59234](https://core.trac.wordpress.org/ticket/59234): Introduce a wp_json_decode()
      function, including validation when available. _Note: This ticket has been
      closed and won’t be moving forward._

#### 󠀁[WordPress 6.7](https://make.wordpress.org/hosting/handbook/server-environment/?output_format=md#wordpress-6-7)󠁿

 * [PHP 8.1](https://www.php.net/ChangeLog-8.php#PHP_8_1)
 * [PHP 8.2](https://www.php.net/ChangeLog-8.php#PHP_8_2)
 * [PHP 8.3](https://www.php.net/ChangeLog-8.php#PHP_8_3)
 * [PHP 8.4](https://www.php.net/ChangeLog-8.php#PHP_8_4)

_IMPORTANT: WordPress 6.7 is **fully compatible** with PHP 8.0, PHP 8.1, PHP 8.2,
PHP 8.3, and PHP 8.4._

_Related PHP compatibility tickets_

 * PHP 8.0
    - [#48689](https://core.trac.wordpress.org/ticket/48689): Filesystem WP_Filesystem_FTPext
      and WP_Filesystem_SSH2 when connect fails. An investigation is underway as
      to why on some occasions the access to the files returns some type of error.
      _NOTE: Has a patch._
    - [#49728](https://core.trac.wordpress.org/ticket/49728): Prepare for the internal
      functions throwing TypeError or ValueError exceptions on unexpected types/
      values. Internal functions will throw an exception if the function call arguments
      are of a type that is not expected. _NOTE: Has a patch._
    - [#51019](https://core.trac.wordpress.org/ticket/51019): convert_smilies() 
      fails on large tags. The function fails when dealing with large HTMLHTML Hypertext
      Markup Language (HTML) is the standard markup language for documents designed
      to be displayed in a web browser. HTML describes the structure of a web page
      semantically and originally included cues for the appearance of the document.
      tags, particularly when an image with a large data URLURL A specific web address
      of a website or web page on the Internet, such as a website’s URL www.wordpress.
      org is included in the post content. _NOTE: Has a patch, but moved to WordPress
      6.8._
    - [#55121](https://core.trac.wordpress.org/ticket/55121): classic widgets with
      no settings won’t show up in 5.9. Classic widgets with no settings do not 
      appear correctly in WordPress 5.9 and above. This is due to changes in how
      widgets are handled in the blockBlock Block is the abstract term used to describe
      units of markup that, composed together, form the content or layout of a webpage
      using the WordPress editor. The idea combines concepts of what in the past
      may have achieved with shortcodes, custom HTML, and embed discovery into a
      single consistent API and user experience. editor, causing compatibility problems
      with older widgetWidget A WordPress Widget is a small block that performs 
      a specific function. You can add these widgets in sidebars also known as widget-
      ready areas on your web page. WordPress widgets were originally created to
      provide a simple and easy-to-use way of giving design and structure control
      of the WordPress theme to the user. setups. _NOTE: Has a patch, but moved 
      to WordPress 6.3._
    - [#55257](https://core.trac.wordpress.org/ticket/55257): map_deep() function
      incompatibility with incomplete objects in PHP 8.0+. The function becomes 
      incompatible with incomplete objects when running on PHP 8.0 or higher. _NOTE:
      Has a patch, but moved to Future Release._
    - [#59649](https://core.trac.wordpress.org/ticket/59649): Named parameters. 
      WordPress does not support named parameters. PHP 8.0 supports optionally calling
      functions and class methods by specifying the parameter name, instead of calling
      them on the order of parameters that they are declared. PHP, and many other
      programming languages, support positional parameters: The caller passes the
      parameters in the same order the function/method declares its parameters. 
      _NOTE: Moved to WordPress 6.8._
    - [#60745](https://core.trac.wordpress.org/ticket/60745): WP_Query::parse_query()
      does not handle invalid query arg values. The function does not properly handle
      invalid query argument values. This results in PHP fatal errors when unintended
      data types, like arrays, are passed where scalars are expected. _NOTE: Has
      a patch, but moved to WordPress 6.8._
 * PHP 8.1
    - Not all “passing null to non-nullable” issues have been found. In PHP, you
      can tell a function exactly what type of information it should accept. If 
      you tell a function to expect a certain type of information, and you give 
      it nothing at all (null is like saying “nothing”), then PHP gets confused 
      and gives an error. This problem happens when someone accidentally gives a
      function “nothing” when the function wasn’t designed to handle “nothing”.
    - [#53465](https://core.trac.wordpress.org/ticket/53465): htmlentities() needs
      the default value of the flags parameter explicitly set. According to [htmlentities()](https://www.php.net/manual/en/function.htmlentities.php),
      the default for flags for PHP 8.1 was “changed from `ENT_COMPAT` to `ENT_QUOTES
      | ENT_SUBSTITUTE | ENT_HTML401`“. All use cases for this functionality in 
      Core are being investigated. _NOTE: Has a patch._
    - [#57579](https://core.trac.wordpress.org/ticket/57579): Replace most strip_tags()
      with wp_strip_tags(). Proposes optimizing how block templates are handled 
      by minimizing unnecessary filesystem calls during their loading process. _NOTE:
      Has a patch, but moved to Future Release._
    - [#57580](https://core.trac.wordpress.org/ticket/57580): Avoid errors from 
      null parameters in add_submenu_page(). A deprecated error caused by the `wp_normalize_path()`
      function when null is passed as an argument. This issue occurs primarily due
      to plugins incorrectly passing null in the `add_submenu_page()` function. 
      _NOTE: Has a patch, but moved to Future Release._
    - [#61179](https://core.trac.wordpress.org/ticket/61179): Deprecated messages
      about passing null in widgets.php. Addresses a deprecated message issue in`
      widgets.php`. _NOTE: Has a patch, but moved to WordPress 6.7._
 * PHP 8.2
    - [#55603](https://core.trac.wordpress.org/ticket/55603): utf8_{encode|decode}
      deprecation with pending decision on requiring a PHP extension. _NOTE: Has
      a patch, but moved to WordPress 6.8._
    - [#56034](https://core.trac.wordpress.org/ticket/56034): Unknown dynamic properties’
      deprecation. _NOTE: Moved to Future Release._
    - [#57304](https://core.trac.wordpress.org/ticket/57304): Add SensitiveParameter
      attribute to DB connection and login variables. This enhancement aims to protect
      sensitive data in case of errors, making it less likely to be exposed in logs
      or bug reports. _NOTE: Moved to WordPress 6.7._
    - [#60875](https://core.trac.wordpress.org/ticket/60875): Handler proposal for
      known dynamic properties that are initialized and set late only when getting
      its value. Handling dynamic properties that are initialized only when accessed.
      Since PHP 8.2 deprecates dynamic (non-declared) properties, the proposal aims
      to pre-declare these properties while retaining the current design where they
      are lazily initialized. _NOTE: Moved to WordPress 6.8._
    - [#61154](https://core.trac.wordpress.org/ticket/61154): Fix the ‘attributes’
      dynamic property in WP_Block. Fixing the ‘attributes’ dynamic property in 
      the `WP_Block` class. _NOTE: Has a patch, but moved to WordPress 6.8._
    - [#61890](https://core.trac.wordpress.org/ticket/61890): Handle WP_Term dynamic
      properties for PHP 8.2. Handling of dynamic properties in the `WP_Term` class
      to ensure compatibility. _NOTE: Has a patch, but moved to WordPress 6.8._
 * PHP 8.3
    - Fully compatible as of May 2026
    - [#59231](https://core.trac.wordpress.org/ticket/59231): Prepare for PHP 8.3.
      _NOTE: Has a patch, but moved to WordPress 6.7._
    - [#59232](https://core.trac.wordpress.org/ticket/59232): Introduce `#[Override]`
      attribute to mark overloaded methods. This attribute helps prevent coding 
      errors by making it clear when a method is overloaded. It also assists with
      refactoring, debugging, and catching potential breaking changes in the parent
      class. _NOTE: Has a patch, but moved to Future Release._
    - [#59233](https://core.trac.wordpress.org/ticket/59233): Improve error handling
      for unserialize(). `maybe_unserialize()` function could still be confronted
      by data with trailing bytes. _NOTE: Moved to Future Release._
    - [#59654](https://core.trac.wordpress.org/ticket/59654): PHP 8.x: various compatibility
      fixes for WordPress 6.7. This ticket acts as a central hub for smaller patches
      that fix specific PHP 8.x failures. It continues the work from previous releases,
      ensuring that WordPress maintains compatibility with newer PHP versions like
      PHP 8.0, 8.1, 8.2, and upcoming versions like PHP 8.3. _NOTE: Moved to WordPress
      6.7._
 * PHP 8.4
    - Fully compatible as of May 2026
    - [#62061](https://core.trac.wordpress.org/ticket/62061): Prepare for PHP 8.4.
      _NOTE: Has a patch._

_Other related tickets_

 * PHP
    - [#51525](https://core.trac.wordpress.org/ticket/51525): Add new functions 
      apply_filters_single_type() and apply_filters_ref_array_single_type().
    - [#54183](https://core.trac.wordpress.org/ticket/54183): Tests: decide on how
      to handle deprecations in PHPUnit.
    - [#54537](https://core.trac.wordpress.org/ticket/54537): Tests: Enable PHP 
      version check once PHP 8.0 compatibility is achieved.
    - [#58874](https://core.trac.wordpress.org/ticket/58874): Code Modernization:
      Consider using the null coalescing operator.
    - [#59234](https://core.trac.wordpress.org/ticket/59234): Introduce a `wp_json_decode()`
      function, including validation when available.

#### 󠀁[WordPress 6.6](https://make.wordpress.org/hosting/handbook/server-environment/?output_format=md#wordpress-6-6)󠁿

 * [PHP 8.1](https://www.php.net/ChangeLog-8.php#PHP_8_1)
 * [PHP 8.2](https://www.php.net/ChangeLog-8.php#PHP_8_2)
 * [PHP 8.3](https://www.php.net/ChangeLog-8.php#PHP_8_3)

_IMPORTANT: WordPress 6.6 is **fully compatible** with PHP 8.1, PHP 8.2, and PHP
8.3._

_Related PHP compatibility tickets_

 * PHP 8.1
    - _Not all “passing null to non-nullable” issues have been found._ In PHP, you
      can tell a function exactly what type of information it should accept. If 
      you tell a function to expect a certain type of information, and you give 
      it nothing at all (null is like saying “nothing”), then PHP gets confused 
      and gives an error. This problem happens when someone accidentally gives a
      function “nothing” when the function wasn’t designed to handle “nothing”.
    - [_`htmlentities()` needs the default value of the flags parameter explicitly set_](https://core.trac.wordpress.org/ticket/53465).
      According to [htmlentities()](https://www.php.net/manual/en/function.htmlentities.php),
      the default for flags for PHP 8.1 was “changed from ENT_COMPAT to ENT_QUOTES
      | ENT_SUBSTITUTE | ENT_HTML401”. All use cases for this functionality in WordPress
      Core are being investigated. NOTE: Has a patch, but moved to WordPress 6.7.
    - [_Replace most `strip\_tags()` with `wp\_strip\_all\_tags()`_](https://core.trac.wordpress.org/ticket/57579).
      
      There are rare occasions when the `strip_tags()` function is passed a null
      value, which generates a warning that the string is deprecated. NOTE: Has 
      a patch.
    - [_Update `is\_serialized` function to accept `Enums`_](https://core.trac.wordpress.org/ticket/53299).`
      Enums` are not backwards compatible with older PHP versions. Fixed in [changeset 53886](https://core.trac.wordpress.org/changeset/53886)
      and released in WordPress 6.1.
 * PHP 8.2
    - [_`utf8\_{encode|decode}` deprecation_](https://core.trac.wordpress.org/ticket/55603)
      with pending decision on requiring a PHP extension. NOTE: Has a patch, but
      moved to WordPress 6.7.
    - [_Unknown dynamic properties_](https://core.trac.wordpress.org/ticket/56034)
      deprecation. NOTE: Moved to WordPress 6.7.
 * PHP 8.3
    - Fully compatible as of May 2026
    - [_Improve error handling for `unserialize()`_](https://core.trac.wordpress.org/ticket/59233).`
      maybe_unserialize()` function could still be confronted by data with trailing
      bytes. NOTE: Moved to WordPress 6.7.

#### 󠀁[WordPress 6.5](https://make.wordpress.org/hosting/handbook/server-environment/?output_format=md#wordpress-6-5)󠁿

 * [PHP 8.1](https://www.php.net/ChangeLog-8.php#PHP_8_1)
 * [PHP 8.2](https://www.php.net/ChangeLog-8.php#PHP_8_2)
 * [PHP 8.3](https://www.php.net/ChangeLog-8.php#PHP_8_3)

_IMPORTANT: WordPress 6.5 is **fully compatible** with PHP 8.0, PHP 8.1, PHP 8.2,
and PHP 8.3._

_Related PHP compatibility tickets_

 * PHP 8.0
    - [Named parameters](https://core.trac.wordpress.org/ticket/59649). WordPress
      does not support named parameters.
    - [Filesystem WP_Filesystem_FTPext and WP_Filesystem_SSH2 when connect fails](https://core.trac.wordpress.org/ticket/48689).
 * PHP 8.1
    - Not all “passing null to non-nullable” issues have been found.
    - [htmlentities() et al needs the default value of the flags parameter explicitly set](https://core.trac.wordpress.org/ticket/53465).
    - [Replace most strip_tags() with wp_strip_tags()](https://core.trac.wordpress.org/ticket/57579).
 * PHP 8.2
    - [utf8_{encode|decode} deprecation](https://core.trac.wordpress.org/ticket/55603)
      with pending decision on requiring a PHP extension.
    - [Unknown dynamic properties](https://core.trac.wordpress.org/ticket/56034)
      deprecations.
 * PHP 8.3
    - Fully compatible as of May 2026.

#### 󠀁[WordPress 6.4](https://make.wordpress.org/hosting/handbook/server-environment/?output_format=md#wordpress-6-4)󠁿

 * [PHP 8.1](https://www.php.net/ChangeLog-8.php#PHP_8_1)
 * [PHP 8.2](https://www.php.net/ChangeLog-8.php#PHP_8_2)
 * [PHP 8.3](https://www.php.net/ChangeLog-8.php#PHP_8_3)

_IMPORTANT: WordPress 6.4 is **fully compatible** with PHP 8.0, PHP 8.1, PHP 8.2,
and PHP 8.3._

_Related PHP compatibility tickets_

 * PHP 8.0
    - [Named parameters](https://core.trac.wordpress.org/ticket/59649). WordPress
      does not support named parameters.
    - [Filesystem WP_Filesystem_FTPext and WP_Filesystem_SSH2 when connect fails](https://core.trac.wordpress.org/ticket/48689).
 * PHP 8.1
    - Not all “passing null to non-nullable” issues have been found.
    - [htmlentities() et al needs the default value of the flags parameter explicitly set](https://core.trac.wordpress.org/ticket/53465).
    - [Replace most strip_tags() with wp_strip_tags()](https://core.trac.wordpress.org/ticket/57579).
 * PHP 8.2
    - [utf8_{encode|decode} deprecation](https://core.trac.wordpress.org/ticket/55603)
      with pending decision on requiring a PHP extension.
    - [Unknown dynamic properties](https://core.trac.wordpress.org/ticket/56034)
      deprecations.
 * PHP 8.3
    - Fully compatible as of May 2026.

#### 󠀁[WordPress 6.3](https://make.wordpress.org/hosting/handbook/server-environment/?output_format=md#wordpress-6-3)󠁿

 * [PHP 8.1](https://www.php.net/ChangeLog-8.php#PHP_8_1)
 * [PHP 8.2](https://www.php.net/ChangeLog-8.php#PHP_8_2)

_IMPORTANT: WordPress 6.3 is **fully compatible** with PHP 8.0, PHP 8.1, and PHP
8.2._

_Related PHP compatibility tickets_

 * PHP 8.0
    - Named parameters. WordPress does not support named parameters.
    - [Filesystem WP_Filesystem_FTPext and WP_Filesystem_SSH2 when connect fails](https://core.trac.wordpress.org/ticket/48689).
 * PHP 8.1
    - [htmlentities() et al needs the default value of the flags parameter explicitly set](https://core.trac.wordpress.org/ticket/53465).
    - [Replace most strip_tags() with wp_strip_tags()](https://core.trac.wordpress.org/ticket/57579).
    - [unregister_setting() for unknown setting](https://core.trac.wordpress.org/ticket/57674).
 * PHP 8.2
    - Fully compatible as of May 2026.

### 󠀁[About PHP](https://make.wordpress.org/hosting/handbook/server-environment/?output_format=md#about-php)󠁿

PHP 8.2 and PHP 8.3 are maintained by the PHP Community as _Security fix only_, 
starting 2024-12-31 and 2025-12-31 respectively. Keeping your PHP to the latest 
stable version is important for WordPress speed and security.

Versions prior to PHP 8.2 are not maintained by the PHP Community, although they
may receive security updates from operating systems distributions.

_Known issue (October 2026): PHP 8.4.27 and 8.5.12, the [21 October 2026 security releases](https://www.php.net/archive/2026.php#2026-10-21-5),
have a regression that can crash PHP when the garbage collector frees a SimpleXML
objectObject In computer science, an object can be a variable, a data structure,
a function, or a method, and as such, is a value in memory referenced by an identifier.
whose properties were read as a whole, for example with `get\_object\_vars()`, an`(
array)` cast or `json\_encode()` ([php/php-src#24488](https://github.com/php/php-src/issues/24488)).
PHP-FPM logs that a child exited on a signal, such as `exited on signal 6 (SIGABRT)`;
the `zend\_mm\_heap corrupted` message is logged only when the pool sets `catch\
_workers\_output = yes`. The fix is committed upstream and will be in PHP 8.4.28
and 8.5.13. Do not downgrade to avoid the crash: 8.4.26, 8.5.11 and earlier are 
affected by the vulnerabilities those releases fix. If an affected site’s code runs
on PHP 8.3, PHP 8.3.36 includes the fixes for those vulnerabilities and does not
have the regression. This note will be removed once the fixed releases are available._

End-of-life PHP versions:

 * PHP 8.5: 2029-12-31
 * PHP 8.4: 2028-12-31
 * PHP 8.3: 2027-12-31
 * PHP 8.2: 2026-12-31
 * PHP 8.1: 2025-12-31 _last release: 8.1.34_
 * PHP 8.0: 2023-11-26 _last release: 8.0.30_
 * PHP 7.4: 2022-11-28 _last release: 7.4.33_
 * PHP 7.3: 2021-12-06 _last release: 7.3.33_
 * PHP 7.2: 2020-11-30 _last release: 7.2.34_
 * PHP 7.1: 2019-12-01 _last release: 7.1.33_
 * PHP 7.0: 2019-01-10 _last release: 7.0.33_
 * PHP 5.6: 2018-12-31 _last release: 5.6.40_
 * PHP 5.5: 2016-07-21 _last release: 5.5.38_
 * PHP 5.4: 2015-09-03 _last release: 5.4.45_
 * PHP 5.3: 2014-08-14 _last release: 5.3.29_
 * PHP 5.2: 2011-01-06 _last release: 5.2.17_
 * PHP 5.1: 2006-08-24 _last release: 5.1.6_
 * PHP 5.0: 2005-09-05 _last release: 5.0.5_
 * PHP 4.4: 2008-08-07 _last release: 4.4.9_
 * PHP 4.3: 2005-03-31 _last release: 4.3.11_
 * PHP 4.2: 2002-09-06 _last release: 4.2.3_
 * PHP 4.1: 2002-03-12 _last release: 4.1.2_
 * PHP 4.0: 2001-06-23 _last release: 4.0.6_

### 󠀁[PHP Extensions](https://make.wordpress.org/hosting/handbook/server-environment/?output_format=md#php-extensions)󠁿

WordPress core makes use of various PHP extensions when they’re available. If the
preferred extension is missing, WordPress will either have to do more work to do
the task the module helps with, or in the worst case, will remove functionality.

Notes:

 * Some extensions are built into PHP (or enabled by default) and require no special
   action in a typical hosting environment.
 * Other extensions are optional and may need to be installed/enabled depending 
   on how PHP is packaged.

The lists below assume PHP >= 7.2 (the minimum supported PHP version for WordPress
at the time of writing).

#### 󠀁[Built-in extensions (no hosting action required)](https://make.wordpress.org/hosting/handbook/server-environment/?output_format=md#built-in-extensions-no-hosting-action-required)󠁿

The following extensions are part of PHP itself and are always enabled in supported
PHP versions (>= 7.2). No hosting configuration is needed:

 * [pcre](https://www.php.net/manual/en/book.pcre.php) – Regular expression engine
   used throughout PHP and WordPress.

#### 󠀁[Required extensions](https://make.wordpress.org/hosting/handbook/server-environment/?output_format=md#required-extensions)󠁿

The PHP extensions listed below are _required_ for a WordPress site to work.

 * [json](https://www.php.net/manual/en/book.json.php) – Used for communications
   with other servers and processing data in JSONJSON JavaScript Object Notation(
   JSON) is an open standard file format, and data interchange format, that uses
   human-readable text to store and transmit data objects consisting of attribute–
   value pairs and array data types. It is a very common data format, with a diverse
   range of applications, such as serving as a replacement for XML in AJAX systems.
   format. (Always enabled in PHP >= 8.0; enabled by default in PHP 7.x but can 
   be disabled in custom builds.)
 * [hash](https://www.php.net/manual/en/book.hash.php) – Provides access to cryptographically
   secure algorithms for hashing functions.
 * [mysqli](https://www.php.net/manual/en/book.mysqli.php) – Connects to MySQLMySQL
   MySQL is an open-source relational database management system (RDBMS). MySQL 
   is free and open-source software under the terms of the GNU General Public License./
   MariaDB for database interactions. Many PHP builds use [mysqlnd](https://www.php.net/manual/en/book.mysqlnd.php)
   as the underlying driver, but `mysqlnd` is not a standalone replacement for `
   mysqli`.

The PHP extensions listed below are _highly recommended_ in order to allow WordPress
to operate optimally and to maximise compatibility with many popular plugins and
themes.

 * [curl](https://www.php.net/manual/en/book.curl.php) (PHP >= 7.3 requires libcurl
   >= 7.15.5; PHP >= 8.0 requires libcurl >= 7.29.0 ; PHP >= 8.4 requires libcurl
   >= 7.61.0) – Performs remote request operations.
 * [dom](https://www.php.net/manual/en/book.dom.php) (requires libxml; PHP >= 8.4
   requires libxml2 >= 2.9.4) – Used to validate Text Widget content and to automatically
   configure IIS7+.
 * [exif](https://www.php.net/manual/en/book.exif.php) – Works with metadata stored
   in images.
 * [fileinfo](https://www.php.net/manual/en/book.fileinfo.php) – Used to detect 
   MIME types of file uploads.
 * [hash](https://www.php.net/manual/en/book.hash.php) – Used for hashing, including
   passwords and update packages. (Always enabled in PHP >= 7.4; on PHP 7.2-7.3 
   it is commonly enabled but not guaranteed.)
 * [igbinary](https://www.php.net/manual/en/book.igbinary.php) – Increases performance
   as a drop-in replacement for the standard PHP serializer.
 * [imagick](https://www.php.net/manual/en/book.imagick.php) (requires ImageMagick
   >= 6.2.4) – Provides better image quality for media uploads. See [WP_Image_Editor](https://developer.wordpress.org/reference/classes/wp_image_editor/)
   for details. Smarter image resizing (for smaller images), and PDF thumbnail support
   when Ghost Script is available.
 * [intl](https://www.php.net/manual/en/book.intl.php) (PHP >= 7.4.0 requires ICU
   >= 50.1; PHP >= 8.5 requires ICU >= 57.1) – Enable to perform locale-aware operations
   including but not limited to formatting, transliteration, encoding conversion,
   calendar operations, conformant collation, locating text boundaries and working
   with locale identifiers, timezones and graphemes.
 * [mbstring](https://www.php.net/manual/en/book.mbstring.php) – Used to properly
   handle UTF8 text.
 * [openssl](https://www.php.net/manual/en/book.openssl.php) (PHP 7.1-8.0 requires
   OpenSSL >= 1.0.1 / < 3.0; PHP >= 8.1 requires OpenSSL >= 1.0.2 / < 4.0; PHP >
   = 8.4 requires OpenSSL >= 1.1.1 / < 4.0) – SSLSSL Secure Sockets Layer (SSL) 
   was a cryptographic protocol designed to provide communications security over
   a computer network. This protocol became obsolete due to a multitude of security
   problems and was replaced by TLS.-based connections to other hosts.
 * [xml](https://www.php.net/manual/en/book.xml.php) (requires libxml; PHP >= 8.4
   requires libxml2 >= 2.9.4) – Used for XML parsing, such as from a third-party
   site.
 * [zip](https://www.php.net/manual/en/book.zip.php) (requires libzip >= 0.11; recommended
   libzip >= 1.6) – Used for decompressing Plugins, Themes, and WordPress update
   packages.

The PHP extensions listed below are _recommended_ to allow some WordPress cache (
if necessary). APCu, MemcachedMemcached Memcached is a general-purpose distributed
memory-caching system. It is often used to speed up dynamic database-driven websites
by caching data and objects in RAM to reduce the number of times an external data
source must be read. Memcached is free and open-source software., and RedisRedis
Redis (Remote Dictionary Server) is an in-memory data structure store, in-memory
key–value database. It is open-source software.. are alternatives of which only 
one needs to be used.

 * [apcu](https://www.php.net/manual/en/book.apcu.php) – In-memory key-value store
   for PHP (former APC stripped of opcode cachingCache A cache is a component that
   stores data so that future requests for that data can be served faster; the data
   stored in a cache might be the result of an earlier computation or a copy of 
   data stored elsewhere.).
 * [memcached](https://www.php.net/manual/en/book.memcached.php) (requires libmemcached
   >= 1.0.0) – memcached is a high-performance, distributed memory object caching
   system, generic in nature, but intended for use in speeding up dynamic web applications
   by alleviating database load.
 * [opcache](https://www.php.net/manual/en/book.opcache.php) – Stores precompiled
   PHP bytecode to reduce repeated script parsing and compilation. See [Opcode Cache](https://make.wordpress.org/hosting/handbook/server-environment/performance.md?output_format=md#opcode-cache)
   for performance guidance.
 * [redis](https://pecl.php.net/package/redis) – PHP extension for interfacing with
   Redis.

The PHP extensions listed below are _optional_ to improve some WordPress functionality.

 * [timezonedb](https://pecl.php.net/package/timezonedb) – Timezone Database to 
   be used with PHP’s date and time functions

For the sake of completeness, below is a list of the remaining PHP modules WordPress
_may_ use in certain situations or if other modules are unavailable. These are fallbacks
or optional and not necessarily needed in an optimal environment, but installing
them won’t hurt.

 * [bc](https://www.php.net/manual/en/book.bc.php) – For arbitrary precision mathematics,
   which supports numbers of any size and precision up to 2147483647 decimal digits.
 * [filter](https://www.php.net/manual/en/book.filter.php) – Used for securely filtering
   user input.
 * [image](https://www.php.net/manual/en/book.image.php) (requires libgd >= 2.1.0;
   requires zlib >= 1.2.0.4; optional freetype2) – If Imagick isn’t installed, the
   GD Graphics Library is used as a functionally limited fallback for image manipulation.
 * [iconv](https://www.php.net/manual/en/book.iconv.php) (requires libiconv/POSIX)–
   Used to convert between character sets.
 * [shmop](https://www.php.net/manual/en/book.shmop.php) – Shmop is an easy to use
   set of functions that allows PHP to read, write, create and delete Unix shared
   memory segments.
 * [simplexml](https://www.php.net/manual/en/book.simplexml.php) (requires libxml;
   PHP >= 8.4 requires libxml2 >= 2.9.4) – Used for XML parsing.
 * [sodium](https://www.php.net/manual/en/book.sodium.php) (bundled with PHP as 
   of 7.2.0; requires libsodium >= 1.0.8) – Validates signatures and provides securely
   random bytes.
 * [xmlreader](https://www.php.net/manual/en/book.xmlreader.php) (requires libxml;
   PHP >= 8.4 requires libxml2 >= 2.9.4) – Used for XML parsing.
 * [zlib](https://www.php.net/manual/en/book.zlib.php) (PHP >= 8.4 requires zlib
   >= 1.2.11; earlier versions require zlib >= 1.2.0.4) – Gzip compression and decompression.

These extensions are used for file changes, such as updates and pluginPlugin A plugin
is a piece of software containing a group of functions that can be added to a WordPress
website. They can extend functionality or add new features to your WordPress websites.
WordPress plugins are written in the PHP programming language and integrate seamlessly
with WordPress. These can be free in the WordPress.org Plugin Directory or can be
cost-based plugin from a third-party./themeTheme A theme dictates the style and 
function of your WordPress website. Child Themes derive from the main parent theme.
installation, when files aren’t writeable on the server.

 * [ssh2](https://www.php.net/manual/en/book.ssh2.php) (requires OpenSSL and libssh2
   >= 1.2; recommended libssh2 >= 1.2.9) – Provide access to resources (shell, remote
   exec, tunneling, file transfer) on a remote machine using a secure cryptographic
   transport.
 * [ftp](https://www.php.net/manual/en/book.ftp.php) – Implement client access to
   files servers speaking the File Transfer Protocol (FTPFTP FTP is an acronym for
   File Transfer Protocol which is a way of moving computer files from one computer
   to another via the Internet. You can use software, known as a FTP client, to 
   upload files to a server for a WordPress website.).
 * [sockets](https://www.php.net/manual/en/book.sockets.php) – Implements a low-
   level interface to the socket communication functions based on the popular BSD
   sockets.

The priority of the transports are Direct file IO, SSH2, FTP PHP Extension, FTP 
implemented with Sockets, and FTP implemented through PHP alone.

### 󠀁[System Packages](https://make.wordpress.org/hosting/handbook/server-environment/?output_format=md#system-packages)󠁿

 * [curl](https://curl.se/) (recommended >= 8.4)
 * [Ghost Script](https://www.ghostscript.com/) (recommended Ghost Script >= 10.0)–
   Enables Imagick/ImageMagick to generate PDF thumbnails for the media library.
   See [Enhanced PDF Support in WordPress 4.7](https://make.wordpress.org/core/2016/11/15/enhanced-pdf-support-4-7/)
   for details.
 * [ImageMagick](https://imagemagick.org/) (recommended ImageMagick >= 7.1) – Required
   by Imagick extension.
 * [OpenSSL](https://www.openssl.org/) (recommended OpenSSL 3.5 LTS) – OpenSSL 3.0
   reached the end of its upstream support on 2026-09-07 ([release strategy](https://openssl-library.org/policies/releasestrat/)).
   Some distributions still ship 3.0 with their own security fixes, for example 
   Ubuntu 22.04 and 24.04. If you use such a package, check that the distribution
   still supports it.
 * [WebP](https://developers.google.com/speed/webp/)
 * [AVIF](https://aomediacodec.github.io/av1-avif/)
 * [tzdata-legacy](https://packages.ubuntu.com/noble/tzdata-legacy) (Ubuntu 24.04
   and newer, Debian 13) – Contains the deprecated time zone names, such as `Europe/
   Kiev` and `US/Eastern`. PHP from the distribution or from the ondrej PPA uses
   the system time zone database (`php -i` shows `"Olson" Timezone Database Version
   => 0.system`). Without this package, a site whose time zone setting is one of
   these names stops with a fatal error: an uncaught `DateInvalidTimeZoneException`
   on PHP 8.3 and later, a plain `Exception` before that. To check, run `php -r '
   new DateTimeZone("Europe/Kiev");'`: it prints nothing when the name is valid.

### 󠀁[PHP Memory Limit](https://make.wordpress.org/hosting/handbook/server-environment/?output_format=md#php-memory-limit)󠁿

WordPress does not define the default PHP `memory_limit`, but it may attempt to 
increase it. When WordPress wants more memory than PHP currently allows, it asks
for it at runtime with `ini_set()`: once on load to reach `WP_MEMORY_LIMIT`, and
again through `wp_raise_memory_limit()` for admin, cronCron Is a time-based job 
scheduler in Unix. Users that set up and maintain software environments use cron
to schedule jobs to run periodically at fixed times, dates, or intervals., and image-
processing work. Whether that request succeeds is up to the server. If the server
configuration prevents changing `memory_limit`, the request is either skipped or
fails quietly, and the configured limit stands.

 * [`WP_MEMORY_LIMIT`](https://developer.wordpress.org/advanced-administration/performance/php/#memory-limits)
   sets the memory available to front-end requests. Default: 40M (64M for MultisiteMultisite
   Multisite is a WordPress feature which allows users to create a network of sites
   on a single WordPress installation. Available since WordPress version 3.0, Multisite
   is a continuation of WPMU or WordPress Multiuser project. WordPress MultiUser
   project was discontinued and its features were included into WordPress core. 
   [Advanced Administration Handbook -> Create A Network.](https://developer.wordpress.org/advanced-administration/multisite/create-network/)),
   or the server’s current `memory_limit` where PHP will not accept a runtime change.
 * [`WP_MAX_MEMORY_LIMIT`](https://developer.wordpress.org/advanced-administration/performance/php/#memory-limits)
   sets a higher limit used for admin/back-end requests (block editor, plugin/theme
   updates, imports, etc.). Default: 256M, or the server’s current `memory_limit`
   where that is already higher, is unlimited, or cannot be changed at runtime. 
   If `WP_MEMORY_LIMIT` is greater than 256M, `WP_MAX_MEMORY_LIMIT` is set to that
   value instead.

Both constants depend on PHP accepting a runtime change. Where the host blocks that,
neither raises the memory PHP will allow, and the `php.ini` value is the limit. 
See [Memory Limits](https://developer.wordpress.org/advanced-administration/performance/php/#memory-limits)
for full details on how the constants and `php.ini` interact.

Recommendations for hosts, in the absence of a documented minimum from WordPress
core:

  |  Tier |  PHP `memory_limit` |  Notes |  
   |  Minimum |  128M |  Sufficient for a vanilla WordPress installation with no additional plugins or themes. Below this, routine admin operations (core/plugin updates, media uploads) become prone to memory-exhaustion fatals. |  
 |  Recommended default |  256M |  Matches the `WP_MAX_MEMORY_LIMIT` default and gives comfortable headroom for a typical production siteProduction Site A production site is a live site online meant to be viewed by your visitors, as opposed to a site that is staged for development or testing. running a handful of plugins and a modern theme. |  
 |  Higher / resource-intensive sites |  512M or more |  For sites running WooCommerce or other e-commerce, page builders, multilingual plugins, import/export tools, or other memory-heavy workloads. |

These are starting points, not guarantees — actual memory needs scale with the specific
plugins and themes installed. Hosts should set `memory_limit` in `php.ini` (or the
equivalent per-site override) at or above the recommended tier for their customer
base, and monitor logs for memory-exhaustion errors to catch sites that need a higher
limit.

## 󠀁[Database](https://make.wordpress.org/hosting/handbook/server-environment/?output_format=md#database)󠁿

For data storage, WordPress uses systems compatible with MySQL.

### 󠀁[Officially recommended versions](https://make.wordpress.org/hosting/handbook/server-environment/?output_format=md#officially-recommended-versions)󠁿

Below are the officially recommended Long-Term Support versions of [MySQL](https://dev.mysql.com/downloads/mysql/)
and [MariaDB](https://mariadb.org/).

  |  Software |  Version |  EOL Date |  
   |  MySQL |  9.7 LTS |  April 2034 |  
 |  MySQL |  8.4 LTS |  April 2032 |  
 |  MariaDB |  12.3 LTS |  June 12, 2029 |  
 |  MariaDB |  11.8 LTS |  June 4, 2028 |  
 |  MariaDB |  11.4 LTS |  May 29, 2029 |  
 |  MariaDB |  10.11 LTS |  February 16, 2028 |

### 󠀁[End-of-life MySQL versions](https://make.wordpress.org/hosting/handbook/server-environment/?output_format=md#end-of-life-mysql-versions)󠁿

The following versions of MySQL have reached their end of life (EOL) and are no 
longer supported by the MySQL community. **It is highly recommended to upgrade to
a supported version for security and performance reasons.**

  |  Version |  Initial GA Release |  Final Release |  EOL Date |  
   |  26.7 |  July 28, 2026 |  26.7.1 (August 18, 2026) |  October 20, 2026 |  
 |  9.6 |  January 20, 2026 |  9.6.0 (January 20, 2026) |  April 21, 2026 |  
 |  9.5 |  October 21, 2025 |  9.5.0 (October 21, 2025) |  January 20, 2026 |  
 |  9.4 |  July 22, 2025 |  9.4.0 (July 22, 2025) |  October 21, 2025 |  
 |  9.3 |  April 15, 2025 |  9.3.0 (April 15, 2025) |  July 22, 2025 |  
 |  9.2 |  January 21, 2025 |  9.2.0 (January 21, 2025) |  April 15, 2025 |  
 |  9.1 |  October 15, 2024 |  9.1.0 (October 15, 2024) |  January 21, 2025 |  
 |  9.0 |  July 1, 2024 |  9.0.1 (July 23, 2024) |  October 15, 2024 |  
 |  8.3 |  January 16, 2024 |  8.3.0 (January 16, 2024) |  July 1, 2024 |  
 |  8.2 |  October 25, 2023 |  8.2.0 (October 25, 2023) |  January 16, 2024 |  
 |  8.1 |  July 18, 2023 |  8.1.0 (July 18, 2023) |  October 25, 2023 |  
 |  8.0 |  April 19, 2018 |  8.0.46 (April 21, 2026) |  April 30, 2026 |  
 |  5.7 |  October 21, 2015 |  5.7.44 (October 25, 2023) |  October 21, 2023 |  
 |  5.6 |  February 5, 2013 |  5.6.51 (January 20, 2021) |  February 5, 2021 |  
 |  5.5 |  December 3, 2010 |  5.5.62 (October 22, 2018) |  December 3, 2018 |  
 |  5.1 |  November 14, 2008 |  5.1.73 (December 3, 2013) |  December 31, 2013 |  
 |  5.0 |  October 19, 2005 |  5.0.96 (March 21, 2012) |  March 21, 2012 |

### 󠀁[End-of-life MariaDB versions](https://make.wordpress.org/hosting/handbook/server-environment/?output_format=md#end-of-life-mariadb-versions)󠁿

The following versions of MariaDB have reached their end of life (EOL) and are no
longer supported by the MariaDB community. **It is highly recommended to upgrade
to a supported version for security and performance reasons.**

  |  Version |  Initial GA Release |  Final Release |  EOL Date |  
   |  12.2 |  February 12, 2026 |  12.2.2 (February 12, 2026) |  May 28, 2026 |  
 |  12.1 |  November 19, 2025 |  12.1.2 (November 19, 2025) |  February 13, 2026 |  
 |  12.0 |  August 7, 2025 |  12.0.2 (August 7, 2025) |  November 18, 2025 |  
 |  11.7 |  February 13, 2025 |  11.7.2 (February 13, 2025) |  May 12, 2025 |  
 |  11.6 |  November 22, 2024 |  11.6.2 (November 22, 2024) |  February 13, 2025 |  
 |  11.5 |  August 15, 2024 |  11.5.2 (August 15, 2024) |  November 21, 2024 |  
 |  11.3 |  February 19, 2024 |  11.3.2 (February 19, 2024) |  May 16, 2024 |  
 |  11.2 |  November 21, 2023 |  11.2.6 (November 4, 2024) |  November 21, 2024 |  
 |  11.1 |  August 21, 2023 |  11.1.6 (August 14, 2024) |  August 21, 2024 |  
 |  11.0 |  June 7, 2023 |  11.0.6 (May 17, 2024) |  June 6, 2024 |  
 |  10.10 |  November 17, 2022 |  10.10.7 (November 14, 2023) |  November 17, 2023 |  
 |  10.9 |  August 22, 2022 |  10.9.8 (August 14, 2023) |  August 22, 2023 |  
 |  10.8 |  May 21, 2022 |  10.8.8 (May 10, 2023) |  May 20, 2023 |  
 |  10.7 |  February 14, 2022 |  10.7.8 (February 6, 2023) |  February 9, 2023 |  
 |  10.6 |  July 6, 2021 |  10.6.28 (August 13, 2026) |  July 6, 2026 |  
 |  10.5 |  June 24, 2020 |  10.5.29 (May 8, 2025) |  June 24, 2025 |  
 |  10.4 |  June 16, 2019 |  10.4.34 (May 17, 2024) |  June 18, 2024 |  
 |  10.3 |  May 25, 2018 |  10.3.39 (May 10, 2023) |  May 25, 2023 |  
 |  10.2 |  May 23, 2017 |  10.2.44 (May 21, 2022) |  May 23, 2022 |  
 |  10.1 |  October 17, 2015 |  10.1.48 (November 4, 2020) |  October 17, 2020 |  
 |  10.0 |  March 31, 2014 |  10.0.38 (January 31, 2019) |  March 31, 2019 |  
 |  5.5 |  April 11, 2012 |  5.5.68 (May 12, 2020) |  April 11, 2020 |  
 |  5.3 |  February 29, 2012 |  5.3.12 (January 30, 2013) |  March 1, 2017 |  
 |  5.2 |  November 10, 2010 |  5.2.14 (January 30, 2013) |  November 10, 2015 |  
 |  5.1 |  February 1, 2010 |  5.1.67 (January 30, 2013) |  February 1, 2015 |

### 󠀁[Innovation Releases](https://make.wordpress.org/hosting/handbook/server-environment/?output_format=md#innovation-releases)󠁿

In addition to Long Term Support versions, both MariaDB and MySQL have “innovation
releases”. These releases have much shorter support periods (typically 2-6 months
at most) and are intended for users who need access to the latest features.

Innovation releases are generally production-ready from a quality and stability 
perspective and safe to use. However, using these releases in production is **not
recommended** because:

 * any new features included in innovation releases are subject to change in the
   future.
 * support (including security fixes) is limited to a short period of time measured
   in months, not years.

As a way to catch problems with new features that will land in upcoming LTS versions,
WordPress Core tests against actively supported innovation releases. However, the
project does not recommend these versions for general use.

#### 󠀁[MySQL Innovation Releases](https://make.wordpress.org/hosting/handbook/server-environment/?output_format=md#mysql-innovation-releases)󠁿

  |  Version |  Initial GA Release |  Final Release |  EOL Date |  
   |  26.10* |  October 20, 2026 |   |   |  
 |  26.7 |  July 28, 2026 |  26.7.1 (August 18, 2026) |  October 20, 2026 |  
 |  9.6 |  January 20, 2026 |  9.6.0 (January 20, 2026) |  April 21, 2026 |  
 |  9.5 |  October 21, 2025 |  9.5.0 (October 21, 2025) |  January 20, 2026 |  
 |  9.4 |  July 22, 2025 |  9.4.0 (July 22, 2025) |  October 21, 2025 |  
 |  9.3 |  April 15, 2025 |  9.3.0 (April 15, 2025) |  July 22, 2025 |  
 |  9.2 |  January 21, 2025 |  9.2.0 (January 21, 2025) |  April 15, 2025 |  
 |  9.1 |  October 15, 2024 |  9.1.0 (October 15, 2024) |  January 21, 2025 |  
 |  9.0 |  July 1, 2024 |  9.0.1 (July 23, 2024) |  October 15, 2024 |  
 |  8.3 |  January 16, 2024 |  8.3.0 (January 16, 2024) |  July 1, 2024 |  
 |  8.2 |  October 25, 2023 |  8.2.0 (October 25, 2023) |  January 16, 2024 |  
 |  8.1 |  July 18, 2023 |  8.1.0 (July 18, 2023) |  October 25, 2023 |

`*` Indicates the current innovation release.

#### 󠀁[MariaDB Innovation/Short-Term Releases](https://make.wordpress.org/hosting/handbook/server-environment/?output_format=md#mariadb-innovation-short-term-releases)󠁿

The MariaDB project has decided to retire the concept of innovation releases, replacing
them with the concept of “rolling GA releases”. This started with the 11.3 release
in February 2024.

Previously MariaDB referred to these releases as “short-term releases”.

  |  Version |  Release Type |  Initial GA Release |  Final Release |  EOL Date |  
   |  13.0* |  Rolling |  September 15, 2026 |   |  Q4 2026 |  
 |  12.2 |  Rolling |  February 12, 2026 |  12.2.2 (February 12, 2026) |  May 28, 2026 |  
 |  12.1 |  Rolling |  November 19, 2025 |  12.1.2 (November 19, 2025) |  February 13, 2026 |  
 |  12.0 |  Rolling |  August 7, 2025 |  12.0.2 (August 7, 2025) |  November 18, 2025 |  
 |  11.7 |  Rolling |  February 13, 2025 |  11.7.2 (February 13, 2025) |  May 12, 2025 |  
 |  11.6 |  Rolling |  November 22, 2024 |  11.6.2 (November 22, 2024) |  February 13, 2025 |  
 |  11.5 |  Rolling |  August 15, 2024 |  11.5.2 (August 15, 2024) |  November 21, 2024 |  
 |  11.3 |  Rolling |  February 19, 2024 |  11.3.2 (February 19, 2024) |  May 16, 2024 |  
 |  11.2 |  Short-term |  November 21, 2023 |  11.2.6 (November 4, 2024) |  November 21, 2024 |  
 |  11.1 |  Short-term |  August 21, 2023 |  11.1.6 (August 14, 2024) |  August 21, 2024 |  
 |  11.0 |  Short-term |  June 7, 2023 |  11.0.6 (May 17, 2024) |  June 6, 2024 |  
 |  10.10 |  Short-term |  November 17, 2022 |  10.10.7 (November 14, 2023) |  November 17, 2023 |  
 |  10.9 |  Short-term |  August 22, 2022 |  10.9.8 (August 14, 2023) |  August 22, 2023 |  
 |  10.8 |  Short-term |  May 21, 2022 |  10.8.8 (May 10, 2023) |  May 20, 2023 |  
 |  10.7 |  Short-term |  February 14, 2022 |  10.7.8 (February 6, 2023) |  February 9, 2023 |

`*` Indicates the current rolling release.

### 󠀁[Other MySQL servers](https://make.wordpress.org/hosting/handbook/server-environment/?output_format=md#other-mysql-servers)󠁿

While WordPress does not regularly test against these MySQL servers, they are known
to perform well.

 * [Percona MySQL Server](https://www.percona.com/mysql/)
 * [Amazon Aurora](https://aws.amazon.com/rds/aurora/)
 * [Amazon RDS for MariaDB](https://aws.amazon.com/rds/mariadb/)
 * [Amazon RDS for MySQL](https://aws.amazon.com/rds/mysql/)
 * [Azure Database for MySQL](https://azure.microsoft.com/en-us/products/mysql/)
 * [Google Cloud MySQL](https://cloud.google.com/sql/mysql)
 * [DigitalOcean MySQL](https://www.digitalocean.com/products/managed-databases-mysql)
 * [IBM Cloud Databases for MySQL](https://www.ibm.com/products/databases-for-mysql)
 * [MySQL HeatWave](https://www.oracle.com/mysql/)

Although WordPress may run on older versions, it is recommended to use these or 
newer ones for security and performance reasons.

#### 󠀁[Experimental: SQLite (feature plugin)](https://make.wordpress.org/hosting/handbook/server-environment/?output_format=md#experimental-sqlite-feature-plugin)󠁿

**Note:** WordPress Core officially supports **MySQL/MariaDB** for production. SQLite
is **opt-in and experimental** via the community [SQLite Database Integration](https://make.wordpress.org/playground/2025/06/13/introducing-a-new-sqlite-driver-for-wordpress/)
feature pluginFeature Plugin A plugin that was created with the intention of eventually
being proposed for inclusion in WordPress Core. See [Features as Plugins](https://make.wordpress.org/core/handbook/about/release-cycle/features-as-plugins/).
Treat this as a testing/evaluation path for hosts—not a wholesale replacement.

**Host feedback wanted**
 If you trial this with cohorts, please share: traffic 
profile, caching, write rates, DB file sizes, error logs, and any plugin/theme incompatibilities.
Feedback is most useful if a future Core merge is proposed.

## 󠀁[How do I know which version I have?](https://make.wordpress.org/hosting/handbook/server-environment/?output_format=md#how-do-i-know-which-version-i-have)󠁿

If you have WordPress 5.2+, the WordPress Admin already has tools with that information
in the `Site Health` section (at `Tools` in the menu).

If you have an older version, you can activate the `Site Health` section installing
the WordPress Community Plugin called [Health Check & Troubleshooting](https://wordpress.org/plugins/health-check/)(
more [help for this plugin](https://make.wordpress.org/support/handbook/appendix/troubleshooting-using-the-health-check/)).

If you’re interested in improving this handbook, check the [GitHub Handbook repo](https://github.com/WordPress/hosting-handbook/),
or leave a message in the [#hosting channel](https://wordpress.slack.com/archives/hosting/)
of the official [WordPress Slack](https://make.wordpress.org/chat/).

First published

2018-05-18

Last updated

2026-11-04

Edit article

[ Improve it on GitHub: Server Environment ](https://github.com/wordpress/hosting-handbook/edit/main/server-environment.md)

Changelog

[ See list of changes: Server Environment ](https://github.com/wordpress/hosting-handbook/commits/main/server-environment.md)

[  Previous: AI Policy](https://make.wordpress.org/hosting/handbook/get-involved/ai-policy/)

[  Next: WordPress Compatibility](https://make.wordpress.org/hosting/handbook/compatibility/)