🎉 New: Top 75 PHP Interview Questions for 2026 — Free for all learners

We are currently paying for PHP Extended Support because the site is running an outdated PHP version. how to fix it

P
php Guru
· · 2 min read ·

📌 Key Takeaways

  • We are currently paying for PHP Extended Support because the site is running an outdated PHP version. how to fix it
  • Simple Summary

You’re basically paying extra because your site is running an end-of-life PHP version (like PHP 5.x, 7.0–7.3, etc.), and your hosting provider is charging for “Extended Support” to keep it secure.

The real fix = upgrade your site to a supported PHP version (usually PHP 8.1–8.3).

Here’s a clear, practical step-by-step plan 👇


Step-by-Step Fix

1. Check Current PHP Version

  • In your hosting panel (cPanel / Plesk):
    • Look for “PHP Version” or “MultiPHP Manager”
  • Or create a file: <?php phpinfo(); ?>
  • Open it in browser → shows current version

2. Take Full Backup (IMPORTANT)

Before doing anything:

  • Backup files + database
  • Use:
    • cPanel Backup
    • Plugin (if WordPress): UpdraftPlus / All-in-One WP Migration

3. Check Compatibility

Outdated PHP usually breaks because of:

  • Old themes
  • Old plugins
  • Custom PHP code

If WordPress:

  • Go to Dashboard → Updates
  • Update:
    • WordPress core
    • Themes
    • Plugins

You can also use:

  • Plugin: PHP Compatibility Checker

4. Test in Staging (Best Practice)

  • Create a staging site (many hosts provide this)
  • Change PHP version there first
  • Check:
    • Website loading
    • Forms
    • Admin panel
    • Payment gateways (if any)

5. Upgrade PHP Version

In hosting panel:

  • Switch from old version → PHP 8.1 or 8.2
  • Save changes

6. Fix Errors (if site breaks)

Common issues:

  • Deprecated functions
  • Old plugins/themes

Fix options:

  • Update plugin/theme
  • Replace outdated plugins
  • Fix custom code (example): // OLD
    mysql_query()// NEW
    mysqli_query() or PDO

7. Remove Extended Support

Once stable:

  • Contact hosting support
  • Ask them to:
    👉 Disable PHP Extended Support charges

Pro Tips

  • PHP 8.2 is currently a safe choice
  • Avoid jumping directly from very old versions (like 5.x → 8.2) without testing
  • If site is very old, consider:
    👉 rebuilding or redesigning instead of patching

Simple Summary

You’re paying because:
👉 Your PHP version is outdated

To fix:
👉 Update site → Upgrade PHP → Fix compatibility → Remove extra charges

P
php Guru
PHP Developer & Technical Writer — phponline.in A seasoned PHP developer with 8+ years of experience in Laravel, MySQL, and REST APIs. Writes practical tutorials and career guides to help developers grow their skills and income. All salary data is researched from real job postings and developer surveys.
← Previous Post
How to fix The error “Updating failed. The response is not a valid JSON response.” in WordPress
Next Post →
[your-email] ! Unsafe email config is used without sufficient protection.