1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!
Solve a PHP problem (outdated version)
This guide explains why it is dangerous to use a version of PHP that is no longer officially maintained and how to use a more recent version of PHP with a website hosted by Infomaniak.
Is 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 hosting.
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 gain access to your site and modify its content. It is therefore strongly recommended to always use a recent version of PHP.
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 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, it is necessary to take the following precautions:
- if your site works 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 manually, it is necessary to consult the official PHP documentation to learn about modified functions and potential incompatibilities
If you encounter problems after migrating a site to a more recent version of PHP, it may be possible to revert to a previous version of PHP if it is still supported.