Knowledge base

1000 FAQs, 500 tutorials and instructional videos. Here, there are only solutions!

Fix a PHP issue (outdated version)

This guide explains why it is dangerous to use a PHP version that is no longer officially updated and how to use a more recent PHP version with a website hosted by Infomaniak.

 

Is an outdated PHP version dangerous?

When you use a (soon-to-be) vulnerable PHP version on one or more of your websites, a warning message appears in the dashboard of the affected hostings.

The PHP language evolves regularly and when you use a PHP version that is no longer updated, you expose your website to security risks. Malicious individuals could, for example, exploit known security vulnerabilities to gain access to your site and modify its content. It is therefore strongly recommended to always use a recent PHP version.

3 situations are possible:

  • The PHP version is fully supported: no action is required
  • The PHP version only receives security updates: it is recommended to use a more recent PHP version
  • The PHP version is no longer updated: it is strongly recommended to use a more recent PHP version

Learn more: https://www.php.net/supported-versions.php

 

Using a more recent version

The latest PHP versions are more performant and speed up website loading.

Before using a more recent PHP version, it is important to follow the following precautions:

  • If your site uses a CMS or a web application (WordPress, Joomla, Drupal, etc.), make sure the current version of the CMS is supported by the PHP version you want to use.
  • If your site was developed manually, consult the official PHP documentation to learn about modified functions and potential changes that may affect the operation of your code.

In case of malfunction after migration to a more recent PHP version, it is sometimes possible to revert to a previous version, provided that it is still supported!


Has this FAQ been helpful?