What PHP Version Does PrestaShop Need?
PrestaShop only supports a specific range of PHP versions for each of its own releases, and running a version outside that range is one of the most common causes of installation failures or a blank admin screen. As a general guide, PrestaShop 8.x supports PHP 7.2.5 through 8.1, PrestaShop 1.7.x supports roughly PHP 5.6 through 7.1 depending on the exact sub-version, and PrestaShop 1.6 needs an older PHP 5.x release; always confirm the exact range in the release notes for your specific version before installing or upgrading.
Why the PHP version matters so much
PrestaShop's core code and the libraries it depends on are written against a specific range of PHP language features and behavior. A PHP version that is too old may be missing a function or syntax PrestaShop needs, causing a fatal error. A PHP version that is too new sometimes removes or changes behavior that older PrestaShop code still relies on, which is why upgrading PHP on a server without checking PrestaShop's supported range first can suddenly break a store that was previously working fine.
General PHP compatibility by PrestaShop release
| PrestaShop version | Typical supported PHP range |
|---|---|
| 1.6.x | PHP 5.4 - 5.6 (varies by sub-version) |
| 1.7.0 - 1.7.5 | PHP 5.6 - 7.1 |
| 1.7.6 - 1.7.8 | PHP 7.1 - 7.3 |
| 8.0.x - 8.1.x | PHP 7.2.5 - 8.1 |
These ranges are general reference points; PrestaShop updates its supported PHP range with new releases, so always check the release notes or system requirements page for the exact version you are installing or upgrading to.
Checking and changing the PHP version
Most hosting control panels let you select a PHP version per site without touching server configuration files. From the command line, you can confirm the active version with:
php -v
On a VPS or dedicated server running multiple PHP versions side by side, a specific version can often be targeted directly, for example:
php8.1 -v
Symptoms of a PHP version mismatch
- A blank white screen on the storefront or back office, with no visible error.
- A 500 Internal Server Error during installation or right after an update.
- Fatal errors mentioning a function or syntax that "does not exist" or is deprecated.
- Modules or payment plugins that fail to load or throw warnings in the PrestaShop logs.
- The installer itself refusing to proceed and showing a PHP version warning on the requirements check page.
Before upgrading PHP on a live store
Take a full backup of files and the database before changing the PHP version on a production store, and test the change on a staging copy first if one is available. Confirm that all installed modules and the current PrestaShop version officially support the target PHP version, since third-party modules sometimes lag behind PrestaShop core in adding support for a new PHP release.
Frequently asked questions
What PHP version does PrestaShop 8 need?
PrestaShop 8.x generally supports PHP 7.2.5 through 8.1, though the exact supported range can shift slightly between minor releases, so it is worth checking the release notes for the specific 8.x version you are running.
Can I run PrestaShop 1.6 on a modern PHP version?
Not reliably. PrestaShop 1.6 was built for older PHP 5.x releases and is not officially supported on PHP 7.4 or newer; running it on modern PHP typically causes fatal errors, since many PHP 5-era functions were removed in later PHP versions.
What happens if PrestaShop runs on an unsupported PHP version?
The store may show a blank page, a 500 error, or specific fatal errors referencing missing or changed PHP functions. The installer itself will usually block installation and display a PHP version warning if the detected version falls outside the supported range.
How do I check which PHP version my PrestaShop store is using?
Run php -v from the server's command line, or check the PHP version shown in your hosting control panel. PrestaShop also displays the active PHP version in its back office under Advanced Parameters > Configuration Information.
Does upgrading PHP speed up PrestaShop?
Often yes, within the supported range, since newer PHP versions generally run code faster than older ones. The gain only applies as long as the specific PrestaShop version and installed modules officially support that newer PHP version.
Should I upgrade PrestaShop or downgrade PHP if they do not match?
Upgrading PrestaShop to a version that supports your current PHP is usually the better long-term path, since downgrading PHP can expose the server to older, unpatched PHP releases. If an immediate fix is needed, a hosting control panel that allows per-site PHP version switching can bridge the gap temporarily.
Related topics
- PrestaShop Hosting Requirements PrestaShop & eCommerce
- Why Is My PrestaShop Site Showing a 500 Error? PrestaShop & eCommerce
- PrestaShop vs. WooCommerce PrestaShop & eCommerce
- What Is a VPS (Virtual Private Server)? VPS & Cloud
- What Is a Dedicated Server? Dedicated Servers