Hosting and domains

PHP 5.6 security support has ended: how to move your site to PHP 7

At the end of 2018 PHP 5.6 stopped getting official security updates. If your site is still on an old version: the way to move and what to check.

PHP 5.6 security support has ended: how to move your site to PHP 7

On 31 December 2018 official security support for PHP 5.6 ended (for PHP 7.0 it ended in early December). That means newly found vulnerabilities in this version are no longer fixed. If your site still runs on PHP 5.6 or older, every new vulnerability stays open for it.

Why move to PHP 7?

  • Security: a supported version gets updates.
  • Speed: in many cases PHP 7 runs about twice as fast as 5.6 and uses less memory.
  • Compatibility: new plugins and CMS releases no longer support old PHP.

Steps to move

  1. Find your version. Look at the PHP section of the hosting panel.
  2. Take a backup.
  3. Update the CMS, theme and plugins. Plugins not updated for years may throw errors after the switch.
  4. Test: if possible, choose PHP 7.2 or 7.3 on a copy of the site and open the main pages.
  5. If there are no errors, change the version on the live site and check forms, payment and the admin panel.

FAQ

What if the site breaks during the switch? The panel lets you go back to the old version, and the backup is extra insurance.

Old custom-written code? This is the most unpredictable place; check it with a developer before switching.

Hosting plans with modern PHP: choose hosting.

Found it useful? Share it:

Get new articles by email

One or two emails a month: practical tips on websites, hosting and security. Unsubscribe any time with one click.