Development

PrestaShop hosting: what to check before you choose a plan

PHP, memory and database requirements for PrestaShop 1.7, 8 and 9, and what to ask before choosing PrestaShop hosting: PHP switching, cron, SSH, backups.

By VibeModules · Published

In short

  • PrestaShop 9.0 needs PHP 8.1 to 8.4 and 9.1 PHP 8.1 to 8.5, with a memory_limit of at least 512M. PrestaShop 8.0–8.2 runs on PHP 7.2 to 8.1 with at least 256M.
  • The database must be at least MySQL 5.7 or MariaDB 10.2, the web server Apache 2.4 or Nginx, with the PHP extensions PrestaShop lists and allow_url_fopen turned on.
  • Good PrestaShop hosting lets you switch the PHP version yourself, because without it you cannot move a shop from 1.7 to 8 and then to 9.
  • Before you sign, also ask about cron jobs, SSH access, backups you can restore yourself and a way to create a test copy of the shop.

Choose PrestaShop hosting by the requirements of your shop’s version first and by the price second. A plan without the right PHP version will block an upgrade, and a plan without backups or a test copy turns every change into a risk. This article sums up PrestaShop’s official requirements for 1.7, 8 and 9, then lists the questions to ask a host before you commit.

What PrestaShop needs from the server

The figures come from the requirement pages for PrestaShop 1.7, 8 and 9:

Version Supported PHP Recommended memory_limit
1.7.8 7.1–7.4 (7.4 recommended) at least 256M
8.0–8.2 7.2–8.1 (8.1 recommended) at least 256M
9.0 8.1–8.4 (8.4 recommended) at least 512M
9.1 8.1–8.5 (8.5 recommended) at least 512M

For versions 8 and 9 the database must be at least MySQL 5.7 or MariaDB 10.2 (the 1.7 page lists MySQL 5.7), and PrestaShop recommends a recent version. The web server should be Apache 2.4 or Nginx; PrestaShop notes that it works best on Unix-based systems such as Linux and that Windows is not actively supported.

You also need these PHP extensions: CURL, DOM, Fileinfo, GD, Iconv, Intl, JSON, Mbstring, OpenSSL, PDO, PDO MySQL, SimpleXML and Zip, plus allow_url_fopen turned on. To check a server in one go, the same pages point to the phppsinfo tool, which compares its configuration with the requirements.

Why the PHP version matters so much

The table shows that PrestaShop 1.7.8 and PrestaShop 9 share no PHP version. To move a shop on the same server, you go through version 8, switch PHP along the way and only then upgrade to 9. The exact order is in our PrestaShop 9 upgrade guide.

In practice your host has to let you choose the PHP version yourself, ideally per site, and offer both an older and a recent one. Without that, you cannot keep up with PrestaShop releases without changing hosts.

Questions to ask a host

Before you pick a plan, ask the sales team these questions or look the answers up in the host’s documentation:

  1. Which PHP versions do you offer, and can I switch them myself? You need at least the one for your PrestaShop version and the one for the next.
  2. What memory_limit can I set? For PrestaShop 9 the documentation recommends at least 512M.
  3. Which MySQL or MariaDB version? At least MySQL 5.7 or MariaDB 10.2.
  4. Can I set up cron jobs? Many modules need them: abandoned cart reminders, feeds for price comparison sites, stock synchronisation.
  5. Do I get SSH access? Among other things it runs the command-line mode of Update Assistant, PrestaShop 9’s upgrade tool.
  6. How do backups work? Ask how often they run, how long they are kept and whether you can restore them yourself.
  7. Can I create a test copy of the shop? A subdomain is enough to try an upgrade or a new module before the live shop.
  8. How is email sent? Order confirmations have to arrive, and sending through authenticated SMTP is usually more reliable than the server’s mail function.

Shared, VPS or managed hosting

Shared hosting is often enough for a small shop, provided it ticks the boxes above. Its resources are shared with other sites, which you may notice at peak times or during a sale.

A VPS or a dedicated server gives you reserved resources and full control over the configuration, but someone has to run it: system updates, security and backups.

Managed hosting for e-commerce sits in between, with dedicated resources and the host taking care of administration. It costs more and takes work off your hands.

The right choice depends less on the size of the catalogue than on who on your side can look after the server.

After the move

Once the shop runs on the new server, open Advanced Parameters > Performance in the back office. The PrestaShop documentation describes the cache, template compilation and combining CSS and JavaScript files there; keep debug mode off on a live shop.

Then place a full test order with every carrier and every payment method.

Questions and answers

What hosting does PrestaShop 9 need?

A server with PHP 8.1 or later (8.1 to 8.4 for 9.0, 8.1 to 8.5 for 9.1), a memory_limit of at least 512M, MySQL 5.7 or MariaDB 10.2 or later, and Apache 2.4 or Nginx. These are the official requirements PrestaShop publishes.

Is shared hosting enough for PrestaShop?

For a small shop it often is, as long as it meets the requirements of your version and lets you choose PHP. As the catalogue, the traffic or the number of modules grows, a server with dedicated resources becomes more comfortable.

How do I check whether my server suits PrestaShop?

PrestaShop provides the phppsinfo tool, which compares your server’s configuration with the requirements. Run it before installing or before an upgrade.

Why does SSH access matter?

It lets you run commands on the server, for example the command-line mode of Update Assistant, PrestaShop 9’s upgrade tool. Without SSH you depend on the back office and on your host’s support.

All Journal articles