Burnt & Toast

Free check

Is your PHP patched for PHP2Shell?

Two critical PHP flaws were fixed on 21 October 2026. Download a small check, run it on a server that’s yours, and get one of three answers: Patched, Needs updating, or Can’t tell, ask your host. Nothing is sent anywhere.

What this is for: PHP behind a website (WordPress, Drupal, shops, booking tools and the rest). Updating themes or plugins does not fix this. The PHP on the server has to be updated. Only run the check on a server or site you control.

If you can log in to the server (SSH)

Better route. Download the script, copy it to the server, and run it as your normal user:

Download php2shell-check.sh shell script, 13 KB

sh php2shell-check.sh

It finds the PHP programs on the machine, reports each version and result, and notes whether Apache’s mod_php is installed. Plain, readable shell, so you can read every line before running it.

If you can only upload files

Download php2shell-check.php PHP file, 9 KB

One file. It shows the PHP version your website actually runs, then deletes itself.

  1. Rename it to something hard to guess, such as check-7f3k2q.php.
  2. Upload it to your site’s main folder (often public_html).
  3. Open it once in your browser and note the result.
  4. Refresh. You should see “not found”. If it could not delete itself, delete the file yourself straight away.

Before you upload: don’t leave the file on the site, and don’t upload it if your host’s terms don’t allow your own scripts. Prefer the SSH check when you can.

Check the download

Compare the SHA-256 fingerprint (shasum -a 256 <file> on Mac or Linux; certutil -hashfile <file> SHA256 on Windows):

Same values in SHA256SUMS.

How to find your PHP version in cPanel, Plesk or WordPress, plus a ready-made email for your host: PHP2Shell: how to check your website is patched.

All free tools