Skip to main content
wp-config.org

Server configuration

PHP extensions for WordPress and WooCommerce

Build a plan of PHP extensions and runtime settings for WordPress on Ubuntu that you can edit, including the time zone, PHP-FPM, OPcache and installation commands.

  • PHP 8.1 to 8.5
  • PHP-FPM and OPcache
  • Ubuntu packages

Free, no sign-up. It runs in your browser, so nothing you type is sent to this site.

Nothing you enter leaves your browser.

This tool runs in your browser and needs JavaScript. Turn JavaScript on and reload the page.

PHP extensions

What you can do

  • PHP 8.1, 8.2, 8.3, 8.4 and 8.5

  • Extension planning for WordPress and WooCommerce

  • PHP time zone and runtime settings

  • PHP-FPM workers and OPcache settings

  • Ubuntu package commands and a command-line checker

How to set up PHP extensions for WordPress

  1. Choose PHP and Ubuntu

    Choose the Ubuntu release, a PHP version and a package source that offers that version for your release.

  2. Review the plan

    Check the extension list, choose the time zone and size the PHP-FPM workers and OPcache within the shared server memory.

  3. Install and check

    Run the installation plan and the command-line checker on the server, then confirm the PHP-FPM service your site uses has the right modules and settings.

Plan PHP packages and runtime settings together

This free tool prepares the PHP extensions and runtime settings for WordPress and WooCommerce on Ubuntu 24.04 LTS and 26.04 LTS. It covers PHP 8.1 to 8.5, with required, recommended and optional extensions, the time zone setting and the commands for the package source you choose.

Know the limits

A PHP version being listed does not mean it is still supported or works with every plugin. Check PHP support dates, your WordPress and WooCommerce versions and what any paid extensions need before you choose a version. Packages depend on the repository you pick, and the PHP command line and PHP-FPM can load different settings. Nothing is installed by using this page.

Plan the rest of the server with the Nginx config generator, the MariaDB config generator and the Redis object cache config, and set WordPress memory limits in your wp-config.php.

Frequently asked questions

Which PHP extensions does WordPress need?

The planner marks json, hash and mysqli as required. It recommends curl, dom, exif, fileinfo, imagick, intl, mbstring, openssl, xml, zip and OPcache, and explains the others so you can add them when a plugin needs them.

How many PHP-FPM workers (pm.max_children) should I set?

Divide the memory you can give PHP by the average memory one PHP process uses. Too many workers can run the server out of memory.

How do I see which extensions are installed?

Run php -m on the command line. The command-line PHP and PHP-FPM can use different ini files, so check Site Health in WordPress as well.

Which PHP version should WordPress use?

Use a version that WordPress, your plugins and your theme support and that still gets security fixes. Check the requirements page on WordPress.org.

Related tools

  • Nginx

    Generate an Nginx config for WordPress with TLS, caching, HTTP/2 and HTTP/3.

  • MariaDB

    Plan MariaDB memory, connections and durability for WordPress.

  • Redis

    Generate Redis settings for a WordPress object cache, with matching wp-config.php options.

  • wp-config.php

    Generate a wp-config.php with database settings, new salt keys and explained options.

Host WordPress on StackMattic

StackMattic sponsors these free tools. If you would rather not set up and look after the server yourself, StackMattic runs managed WordPress and server hosting.