php version

WordPress has detected that your site is running on an insecure version of PHP

You may have an error saying : WordPress has detected that your site is running on an insecure version of PHP.

First, you should check your PHP version into your WordPress dashboard. Go into : Tools > Site Health > Info > Server

If you see that your PHP version is :

  • PHP version 5.2
  • PHP version 5.3
  • PHP version 5.4
  • PHP version 5.5
  • PHP version 5.6

To make WordPress works, your webserver needs at least PHP 5.2.4. But the recommendation is to have at least PHP 7.

The goal is to make a php update. You have to switch to PHP 7 (7.3 or 7.4 is recommended).

A LIRE AUSSI  Can’t save pages & posts after website's URL migrated

Here are steps to change your php version :

  • Create a Backup
  • Put the site into maintenance
  • Upgrade your PHP version to 7 (7.3 or 7.4) into your hosting. If you can’t do it, ask your host to upgrade the version of php
  • Try to navigate on the site, if there are errors, read bellow.
  • Remove the maintenance.

If something seems broken, remember to make an upgrade of your plugins & themes. If one plugin or theme doesn’t work with your PHP version upgrade, then you should consider contacting the developer or switch the theme/plugin.

Leave a Comment

Your email address will not be published.

You may also like
gdpr
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.