From the blog

PrestaShop hosting: what a store needs, in words you can check

The hosting requirements of a PrestaShop store in plain words: PHP version, database, server limits, scheduled tasks, email, backups and staging, plus the questions to send a host before you sign.

PrestaShop hosting: what a store needs, in words you can check

PrestaShop hosting has to run a PHP version that your PrestaShop version supports. It also has to give the store a MySQL or MariaDB database, allow enough memory and time for heavy jobs like imports and updates, run scheduled tasks, send email reliably and keep backups you can actually restore. You can check every one of those against an offer without being a developer. If an offer can't say yes to them, the store may not install, may break at the next update, or may lose orders you can't get back. Price and speed come after that.

The PHP version comes first

PrestaShop is written in PHP, the programming language the server uses to build every page of your store as a customer asks for it. Each PrestaShop version works only with a certain range of PHP versions, and the host decides which PHP versions are available. We check this first because a mismatch doesn't always show up on day one. It tends to appear later, when the host changes PHP or you try to update the store.

php.net Supported Versions page with active support and security support dates for PHP 8.2
The supported versions page on php.net. Every PHP branch gets two years of full support and two of security fixes only; check where your store's version sits before you pick a host.

PrestaShop publishes the ranges in its developer documentation, on the system requirements page for PrestaShop 8 and the one for PrestaShop 9. The range is not the same for every release within a major version, so look up the exact release your store runs (for example 8.0 or 8.2, not just "8"). In recent versions it's shown next to the PrestaShop logo at the top of the back office, and in every version on the Information page under Advanced Parameters. PHP has its own schedule too. The supported versions page on php.net shows which PHP versions still get security fixes and when each one stops. Compare the PHP version your store runs today with that page. If it's past the end of security support and your PrestaShop release can't go any higher, that's a reason to plan a PrestaShop upgrade. A store still on 1.6 is in this position for certain, and we covered what the move involves in upgrading PrestaShop 1.6 to 8.x.

What you want from the host is the ability to choose the PHP version for each site yourself, in the control panel, and clear notice before an old version is removed. A host may move every customer to a newer PHP version on a set date. For a store whose modules have not been tested on that version, this can mean a blank page or a broken checkout the next morning. Ask how much notice they give and whether you can switch back if something fails.

Database, server settings and extensions

PrestaShop keeps products, customers and orders in a database, either MySQL or MariaDB (two closely related database systems; a host will offer one or the other). The requirements page lists the minimum version. Check which version the plan runs, whether the database is included in the backups, and how many databases you get. You will want at least two: one for the live store and one for a test copy.

PrestaShop 9 system requirements table listing web server, PHP, SQL and memory limit
The requirements table for PrestaShop 9 in the official developer documentation: MySQL 5.7 or MariaDB 10.2 at least, and a memory_limit of 512M or more per script. Send this table to a host and ask for a yes on each line.

Then there are PHP settings, which a plan may cap at lower values than PrestaShop wants. The ones that matter are the memory limit (how much memory one request may use), the maximum execution time (how long a request may run before the server stops it), the maximum upload size and the number of form fields a request may send. These are the limits that make a product import stop halfway, a module refuse to install or an upgrade fail in the middle. The PrestaShop requirements page gives recommended values. Send them to the host and ask whether your plan meets them and whether you can raise them yourself.

PHP extensions are add-ons the server switches on, for things like resizing product images, opening zip files, handling text in different languages and making secure connections. PrestaShop needs a specific set, which is listed on the same requirements page. The PrestaShop installer checks them before it starts. If you already have hosting and want to test it, PrestaShop publishes a small checking script called php-ps-info that shows what the server has and what's missing. Ask about OPcache too. It keeps PHP code ready in memory so it doesn't have to be read and prepared again on every page view, and a store without it is slower than it needs to be.

Scheduled tasks, email and the security certificate

A store does a lot of work when nobody is looking. Currency rates update, product feeds for Google Shopping are regenerated, stock syncs with a warehouse, reminder emails go out for abandoned carts. All of this runs through scheduled tasks, which hosts call cron jobs. Some plans limit how often cron jobs can run, and some don't allow them at all, so ask about both. We wrote about the kind of work that runs this way in what happens overnight in an online store.

Email is the part owners notice only when it goes wrong. Order confirmations, shipping notices and password resets have to arrive in the inbox, not in spam. PrestaShop can send mail through the server's own mail function or through a proper outgoing mail server (SMTP). Ask the host whether you get an SMTP account, whether there's a daily sending limit, and whether they help you set up the domain records that prove your emails are genuine (SPF and DKIM). If the plan has a low sending limit, a newsletter or a busy sale day can use it up and stop order confirmations for the rest of the day.

The SSL certificate is what puts the padlock in the browser and encrypts the connection, and a store taking payments needs one. A free certificate from Let's Encrypt does the job for a store. What to ask is whether the host installs and renews it automatically, so it doesn't quietly expire one weekend.

Backups and a staging copy

A host saying "daily backups" tells you very little. You need to know whether the backup includes both the files and the database, how many days back it goes, whether it's stored on a different server from the store, and who restores it. Also ask whether a restore costs extra and whether you can restore just the database without overwriting the files. A backup kept on the same server disappears with that server. A backup kept for only a few days won't help if a bad module update damaged the data a week ago and nobody noticed.

Ask the host to do a test restore once, before you need one, for example onto the staging copy described below.

A staging copy is a second copy of the store on a separate address, where updates, new modules and PHP version changes can be tried without customers seeing them. Some hosts create one in a few clicks. Others just give you the space and a second database, and someone has to copy the store over. Either works. We think no store should be updated without one. Updating a live store directly can break the checkout, and uninstalling a module can delete the data it stored. So before any update or module removal, back up the live store (files and database), and do the first run on the staging copy. Only when it works there do you repeat it on the live store.

How much server a store needs

The right amount of power depends on the number of products and combinations, how many modules are installed, the traffic and how heavily the back office is used. The admin side is usually heavier than the shop itself, because it works with the whole catalogue and all the orders at once. That's why a store can feel fast to customers and slow to the people running it (see why the back office is slow when the shop loads fine). The hosting is only one of several causes of a slow store, and why your PrestaShop store is slow goes through the others.

Free and shared hosting

Shared hosting puts many sites on one server, and they share its processor and memory. For a small catalogue with modest traffic it can be fine, as long as the plan meets the requirements above. The limits usually show up as slow imports, a sluggish back office and slowdowns when another site on the server is busy. Ask what processor and memory limits your account has, not only the disk space. With a free plan, check the same list even more carefully: the limits, whether there are backups at all, and whether anyone answers when something breaks. We would not run a store that takes payments on free hosting.

VPS

A VPS (virtual private server) gives you a fixed slice of a server that's yours alone, so other sites can't slow you down, and you can set PHP, the database and the limits however the store needs. The catch is that someone has to install and look after the operating system, security updates, PHP versions, the firewall and the backups. If that someone is you, it's an ongoing job. If you have a developer or a technical person who already does this, a VPS is a good fit for a growing store.

Managed hosting

"Managed" means someone else looks after the server, but providers use the word for very different things. For some it means only the server. For others it also includes PrestaShop updates, modules and fixing problems in the store itself. Ask for the exact list in writing, and ask who you call when the checkout stops working on a Saturday. If you are weighing hosting as part of the whole cost of running a store, what a PrestaShop store actually costs puts it next to the other parts.

Wherever the store is hosted, a European store should know which country its server and backups are in. Under the GDPR, the host processes your customers' personal data on your behalf, so you also need a data processing agreement with them. Ask for it before you sign.

Questions to send a host before you sign

You can copy these into an email to any host. They should be able to answer them clearly.

  1. Which PHP versions can I choose for my site, and how much notice do you give before removing one?
  2. Which MySQL or MariaDB version do you run, and how many databases does the plan include?
  3. Does the plan meet the memory, execution time and upload limits on the PrestaShop requirements page for my exact version, and can I raise them myself?
  4. Are all the PHP extensions on that page installed, and is OPcache on?
  5. Can I set up cron jobs, and how often can they run?
  6. Do I get an SMTP account, what's the daily sending limit, and will you help with SPF and DKIM?
  7. Is the SSL certificate installed and renewed automatically?
  8. Do backups include files and the database, how many days are kept, where are they stored, and who restores them and at what cost?
  9. Can I have a staging copy of the store?
  10. What processor and memory limits does my account have?
  11. In which country are the servers and backups, and do you provide a data processing agreement?
  12. What exactly does your support cover: the server only, or PrestaShop too, and at what hours?

Want a website you never have to think about? See the plans.

← All posts