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.
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
- Switch PHP version in the hosting panel (MultiPHP / PHP Selector)
- Update PHP-FPM and point the vhost to it
- Check compatibility with a staging site
Detailed fix by platform
Ubuntu
- 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
- Version — Site Health → Info → Server
- 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:
Similar errors
- Call to undefined function create_function() WordPress on PHP 8: Fatal error: Uncaught Error: Call to undefined function create_function() / each()
- cookies() should be awaited Next.js 15: Route "/x" used `cookies().get('token')`. `cookies()` should be awaited before using its value
- 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
Most viewed in WordPress
Other ways to find it
🧠 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.
Was this page helpful?
Report a correction or suggest an improvement
Last updated 7 Oct 2026