If your website runs on PHP, you need to update it this week

On 21 October 2026, a serious security problem called PHP2Shell was found in PHP. It can let hackers take control of a website. Big organisations like Wikimedia and some government websites went offline for a while to stay safe.

The good news: there is already a fix. Here is what it means for you, in simple words.

What is PHP?

PHP is the code that runs behind many websites. When someone opens your site, PHP builds the page and sends it to their screen.

You may not see it, but it is everywhere. WordPress, WooCommerce and many older custom-built business websites all run on PHP.

Is my website affected?

Probably, if your site uses PHP and hasn't been updated since 21 October 2026.

Your website is safe only if it runs one of these PHP versions or newer:

PHP versionSafe from
PHP 8.58.5.12
PHP 8.48.4.27
PHP 8.38.3.36
PHP 8.28.2.35
PHP 8.1 or older

There is no official fix. You need to move to a newer version.

What should I do?

  1. Check your PHP version

    Log in to your hosting panel and look for "PHP Version". Or simply ask your hosting company.

  2. Ask for the update

    If someone else manages your site, message them today: "Have you installed the PHP2Shell fix?"

  3. Don't rely on WordPress updates

    Updating WordPress or plugins will not fix this. PHP itself must be updated.

  4. Watch out for fake emails

    Scammers may send emails about PHP2Shell. Don't click links or share passwords.

For most websites, this update is quick and simple, a bit like updating your phone.

Other common PHP website problems

While you're checking your site, look out for these too:

  • Old PHP version: the site breaks when your host upgrades the server.
  • Blank white page: a code error is stopping the page from loading.
  • "Database connection" error: the site can't reach its data, often after a password change.
  • Slow loading: no caching and large images make pages take too long.
  • Hacked site: spam pages or strange redirects appear.
  • Contact form not working: enquiries never reach your inbox.
  • Not mobile-friendly: the site looks broken on phones and ranks poorly on Google.

If your site has two or more of these, it may be time for an upgrade or a fresh rebuild. Not sure what to rebuild it with? Read WordPress vs Shopify vs custom code, or see website pricing.

Quick questions

Is PHP still safe to use?

Yes. PHP is still a solid choice. The risk comes from not updating it.

My site is on WordPress. Am I affected?

Yes, WordPress runs on PHP. Ask your host to confirm PHP has been updated.

Can I fix it myself?

If you use shared hosting, your host usually handles it. If you're not sure, ask a developer.

Need help?

I'm Sreehari, a freelance web developer in Kerala. I can check your website, apply the PHP2Shell fix, and sort out any of the problems above.

Contact me or see my website development services. I reply within one business day.

Sources

  • BBC News, "What is PHP and why did it spark a global cyber-security scramble?", October 2026
  • Help Net Security: PHP2Shell patched, update now
  • Greenbone: PHP2Shell remote code execution
  • SOCRadar: PHP2Shell affected versions and fixes
  • TuxCare: PHP2Shell patch guide