1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!
Using a recent version of PHP protects you
This guide explains why it's dangerous to use a version of PHP that is no longer officially maintained and how to use a newer version of PHP with a website hosted by Infomaniak.
Is Using an Outdated Version of PHP Dangerous?
When you use a (soon to be) vulnerable version of PHP on one or more of your sites, a warning message appears in the dashboard of the affected hostings.
The PHP language evolves regularly and when you use a version of PHP that is no longer maintained, you expose your website to security risks. Malicious individuals could, for example, exploit known security vulnerabilities to break into your site and alter its content. It is therefore strongly recommended to always use a recent version of PHP.
There are 3 possible statuses:
- 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 version of PHP
- the PHP version is no longer maintained: it is strongly recommended to use a more recent version of PHP
Learn more: http://php.net/supported-versions.php
Using a More Recent Version
The latest versions of PHP are more efficient and speed up the loading of websites.
Before using a more recent version of PHP, the following precautions should be taken:
- if your site operates with a CMS or a web application (WordPress, Joomla, Drupal, etc.), it is recommended to check that its current version is compatible with the version of PHP you plan to use
- if your site was developed by hand, it's necessary to consult the official PHP documentation in order to be aware of modified functions and possible incompatibilities
If you encounter problems after migrating a site to a newer version of PHP, it may be possible to revert to a previous version of PHP if it is still supported.