PrestaShop 9 server requirements: PHP, database, extensions and settings
4 min read
What PrestaShop 9 needs from a server, from its official requirements. Supported PHP versions, MySQL and MariaDB, the PHP extensions as Ubuntu package names, the settings to raise, and what to do right after installing.
PrestaShop 9 moved to a newer Symfony and dropped old PHP versions. A server that ran PrestaShop 1.7 or 8 for years may not meet its requirements. The list below is from PrestaShop's own 9.x documentation; the package names are those of Ubuntu 26.04.
The newest release when we wrote this was PrestaShop 9.2.1, published on 9 November 2026.
In short
- PHP 8.1 or newer. PHP 8.5 is the recommended version since PrestaShop 9.1; 8.1 to 8.4 remain supported.
- MySQL 5.7 or MariaDB 10.2 at least, a recent version recommended.
memory_limitof 512M or more.- Thirteen PHP extensions, most of them already part of a normal PHP installation.
- Apache 2.4 is the officially listed web server. nginx works with the right rewrite rules.
PHP
| PrestaShop | PHP |
|---|---|
| 9.0 | 8.1, 8.2, 8.3, 8.4 |
| 9.1 and newer | 8.1 to 8.5, 8.5 recommended |
| 8.2 | 8.1 |
Two consequences:
- A shop on PrestaShop 8 runs PHP 8.1, which no longer gets fixes from the PHP project. Moving to 9 is also how you get onto a supported PHP.
- Ubuntu 26.04 ships PHP 8.5, which is exactly what PrestaShop 9.1 and newer recommend. For PrestaShop 8 on that system you need another PHP version; see Running several PHP versions side by side.
Database
MySQL 5.7 or MariaDB 10.2 is the minimum. Ubuntu 26.04 has MariaDB 11.8 and MySQL 8.4, both far above it.
PrestaShop needs MySQL or MariaDB. It does not run on PostgreSQL.
PHP extensions
PrestaShop's documentation lists these. On Ubuntu most arrive with the base packages:
| Extension | Used for | Ubuntu package |
|---|---|---|
| cURL | downloading modules and language packs | php8.5-curl |
| DOM, SimpleXML | XML handling | php8.5-xml |
| GD | image thumbnails | php8.5-gd |
| Intl | currencies and localised data | php8.5-intl |
| Mbstring | string handling | php8.5-mbstring |
| PDO MySQL | database connection | php8.5-mysql |
| Zip | unpacking modules | php8.5-zip |
| Fileinfo, Iconv, JSON, OpenSSL, PDO | file types, character sets, security | included in PHP's base packages |
sudo apt-get install php8.5-fpm php8.5-cli php8.5-curl php8.5-xml php8.5-gd \
php8.5-intl php8.5-mbstring php8.5-mysql php8.5-zip
Check afterwards:
php -m | grep -iE 'curl|dom|fileinfo|gd|iconv|intl|json|mbstring|openssl|pdo|simplexml|zip'
PHP settings
| Setting | Value | Why |
|---|---|---|
memory_limit |
512M at least | the documented minimum; the back office and imports need it |
allow_url_fopen |
On | required: payment and module downloads fetch remote files |
allow_url_include |
Off | keep it off |
upload_max_filesize, post_max_size |
20M or more | product images and module ZIP files |
max_execution_time |
300 for the back office | imports and module installs run long |
max_input_vars |
5000 or more | product pages with many combinations send large forms |
The first three are from PrestaShop's documentation. The last three are common practice; the values depend on your catalogue.
The command-line installer needs more memory than the shop itself. Run it with a higher limit:
php -d memory_limit=1G install/index_cli.php …
Web server
The documentation names Apache 2.4. PrestaShop ships an .htaccess file for it.
On nginx there is no .htaccess, so the rules must be written in the server block: friendly URLs to index.php, image addresses such as /6-large_default/name.jpg rewritten to the files in img/p/, the admin folder's own front controller, and the folders that must never be served (app/, var/, vendor/, config/, and PHP files in upload/ and img/). Take a maintained example rather than writing them from memory; a missing image rule shows as broken product pictures.
OpenLiteSpeed reads .htaccess when rewriting is enabled for the virtual host.
How much server?
A small shop runs on 2 GB of memory. PrestaShop's back office is the heavy part, and the database grows with orders and statistics. For a catalogue of some thousands of products with steady traffic, plan for 4 GB and a page cache, and give MariaDB's innodb_buffer_pool_size a real share of the memory.
Right after installing
- Delete the
installfolder. The back office refuses to open while it exists. - Rename the admin folder. PrestaShop gives it a random name on first login; keep that address private.
- Turn off debug mode and set the shop to production.
- Enable the cache in Advanced Parameters → Performance.
- Set up the cron tasks your modules need.
- Back up the files and the database before installing modules. See how to run a restore drill.
Coming from PrestaShop 8?
- Check every module and the theme for PrestaShop 9 compatibility first. This is where upgrades fail, not in the core.
- Do the upgrade on a copy of the shop.
- The copy can run on a newer PHP version while the live shop stays on 8.1. See the PHP migration checklist.
With Zefily
PrestaShop 9 is a one-click app in Zefily. It downloads the official package, checks its SHA-256, creates the MariaDB database and its owner, runs the installer, removes the installer folder and gives the admin folder a random name. The web server rules for nginx and OpenLiteSpeed, including the image addresses, are part of the app and are kept up to date on existing sites. The install menu offers PrestaShop 9 when the server has PHP 8.1 to 8.5. See PHP apps.
Frequently asked questions
Which PHP version does PrestaShop 9 need?
PHP 8.1 at least. PrestaShop 9.0 supports 8.1 to 8.4, and since 9.1 PHP 8.5 is supported and recommended.
Does PrestaShop 9 work with MariaDB?
Yes. The minimum is MariaDB 10.2 or MySQL 5.7; a recent version is recommended.
How much memory_limit does PrestaShop 9 need?
PrestaShop recommends at least 512M per script.
Does PrestaShop 9 run on nginx?
Yes, with rewrite rules in the server block for friendly URLs, images and the admin folder. Apache 2.4 is the web server named in the official requirements.
Does PrestaShop 9 run on Ubuntu 26.04?
Yes. Ubuntu 26.04 ships PHP 8.5 and MariaDB 11.8, which match the recommended PHP version and exceed the database minimum.
See Web stack for installing other PHP versions with Zefily.