This article talks about the solutions for the PHP version issues you might face when installing/upgrading Magento on-premise using the Web Setup Wizard.
Affected products and versions
- Magento Commerce 2.2.x, 2.3.x
- Magento Open Source 2.2.x, 2.3.x
Unsupported PHP version
The check fails because you are using an unsupported PHP version.
PHP readiness check does not display
The PHP readiness check doesn't display the PHP version as the following figure shows.
This is a symptom of incorrect cron job setup. For more information, see Set up cron jobs.
Incorrect PHP version
The check reports the incorrect PHP version.
Typically, this happens only to advanced users who have multiple PHP versions installed. In some cases, the readiness check fails; in other cases, it might pass.
If the PHP version reported by the readiness check is incorrect, it's the result of a mismatch of PHP versions between the PHP CLI and the web server plug-in. Magento requires you to use one version of PHP for both the CLI (which runs cron) and the web server (which runs the Magento Admin, Component Manager, and System Upgrade).
We assume that if you have this issue, you're an advanced user who has likely installed multiple versions of PHP on your system.
To resolve the issue, try the following:
- Restart your web server or php-fm.
- Check the
$PATHenvironment variable for multiple paths to PHP.
- Use the
which phpcommand to locate the first PHP executable in your path; if it's not correct, remove it or create a symlink to the correct PHP version.
- Use a
phpinfo.phppage to collect more information.
Make sure you're running a supported PHP version according to our system requirements:
Set the same PHP settings for both the PHP command line and the PHP web server plug-in as discussed in PHP configuration options.