requires at least PHP WordPress Origin: Application & API OSI layer 7 · Application Last updated 12 Oct 2026

WordPress: Your server is running PHP version 7.2 but WordPress 6.x requires at least 7.4 / This plugin requires a newer version of PHP

WordPress core, a plugin or a theme needs a newer PHP than the server runs.

Exact message you may see requires at least PHPYour server is running PHP versionThis plugin requires a newer version of PHPrequires PHP version
Seen on: WordPress

Meaning

Hosts often default to old PHP. Switching PHP versions in the hosting panel (or installing a newer php-fpm) fixes it — test plugins for compatibility first.

Common causes

  • Old PHP version on the hosting account
  • CLI PHP newer than web PHP (or vice versa)
  • Plugin raised its minimum PHP

⚡ Quick fix

  1. Switch PHP version in the hosting panel (MultiPHP / PHP Selector)
  2. Update PHP-FPM and point the vhost to it
  3. Check compatibility with a staging site

Detailed fix by platform

Ubuntu

  1. php
    sudo apt install php8.3-fpm php8.3-{mysql,curl,gd,mbstring,xml,zip,intl}
    sudo a2enconf php8.3-fpm && sudo systemctl reload apache2

How to diagnose

  1. Version — Site Health → Info → Server
  2. Requirement — Plugin readme “Requires PHP”

🔧 Still not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

Where this error sits

Origin: Application & API. Errors that are often confused with or caused by this one (click to open):

Apache shows PHP source or downloads .php files — Browser shows <?php code or downloads index.php — mod_php / PHP-FPM handler not configured in Apache (Nginx / Apache)Apache shows PHP sour…Call to undefined function create_function() — WordPress on PHP 8: Fatal error: Uncaught Error: Call to undefined function create_function() / each() (WordPress)Call to undefined fun…cookies() should be awaited — Next.js 15: Route "/x" used `cookies().get('token')`. `cookies()` should be awaited before using its value (Next.js)cookies() should be a…incompatible version of Kotlin — Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 2.0.0, expected version is 1.8.0 (Android)incompatible version …Minimum supported Gradle version — Minimum supported Gradle version is 8.7. Current version is 8.2 (Android)Minimum supported Gra…missing the MySQL extension — WordPress: Your PHP installation appears to be missing the MySQL extension which is required by WordPress (WordPress)missing the MySQL ext…Namespace not specified — Namespace not specified. Specify a namespace in the module's build file (AGP 8) (Android)Namespace not specifi…no matches for kind — no matches for kind "Ingress" in version "extensions/v1beta1" (resource mapping not found) (Kubernetes)no matches for kindrequires …

Explore the map of this error Full error map →

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.

💬 What worked for others

No tips yet — did something else fix this for you?

Share what worked for you

Tips are checked by an editor before they appear. Links are removed.