PrestaShop hosting on dedicated servers

PrestaShop runs a great many online shops, particularly in Europe. A dedicated machine keeps catalogue pages, search and checkout fast through sales peaks, with full control over PHP and the database.

What does PrestaShop need on the server?

A PHP stack with a MySQL-compatible database. Check the requirements page for your exact version, since each major release supports a specific PHP range; PrestaShop 9 is built on a newer Symfony and supports recent PHP 8 releases, while version 8 shops run happily on PHP 8.1. The usual extensions are needed: intl, zip, gd, curl, mbstring, xml, pdo_mysql and bcmath. MySQL 8 or a current MariaDB serves the database.

How do I set up nginx for PrestaShop?

With PHP-FPM behind nginx and the shop's rewrite rules, because PrestaShop's friendly URLs and image paths rely on them. The project documents a full nginx server block; the parts that matter most are the image rewrites, the front controller and blocking direct access to sensitive folders.

upstream ps_storefront { server unix:/run/php/ps-storefront.sock; }
location ~ ^/(app|bin|cache|classes|config|src|translations|var|vendor)/ { deny all; }
location ~ /\.(?!well-known) { deny all; }
location / { try_files $uri $uri/ /index.php$is_args$args; }
location ~ \.php$ {
    fastcgi_split_path_info ^(.+\.php)(/.*)$;
    include fastcgi_params;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    fastcgi_pass ps_storefront;
    fastcgi_read_timeout 120s;
}

Which performance settings matter?

Several are in the back office under Advanced Parameters, Performance:

On the PHP side, OPcache with enough memory for every class file and a realpath_cache_size of a few megabytes make a noticeable difference. Give PHP a memory_limit of 512 MB for imports and module updates.

How should the database be tuned?

Give InnoDB most of the database memory and keep the tables healthy. A shop with 50,000 products and a few years of orders fits comfortably in a buffer pool of 8 to 16 GB. Statistics, connection and cart tables grow quickly; clean old guest carts and connection logs on a schedule or with a cleaning module, and keep the slow query log on to catch heavy modules.

[mysqld]
innodb_buffer_pool_size = 12G  # shop catalogue and orders
innodb_redo_log_capacity = 2G
slow_query_log = 1
long_query_time = 0.5

Which tasks need cron?

Many modules publish a cron URL or command for feeds, currency rates, search indexing, abandoned cart emails and stock synchronisation. Call them from the system scheduler as the shop's user rather than relying on visitors, and log their output so a failed feed is noticed the same day.

*/15 * * * * shopuser curl -fsS "https://shop.example.com/modules/feedexport/cron.php?token=YOUR_TOKEN" >> /var/log/shop-cron.log 2>&1

How do I secure the shop?

Delete the install folder after setup, keep the randomly named admin folder private, and restrict the back office to known addresses or a VPN where staff locations allow. Keep PrestaShop and its modules updated, since most compromises come through outdated modules. Run the shop as its own Linux user with its own PHP-FPM pool, and take nightly database dumps plus copies of the img and upload folders to another machine. Hardening a new dedicated server covers the system side.

Which machine fits a shop?

ShopMachineNotes
Up to 10,000 products, steady trafficESSENTIAL-232 GB DDR4, NVMe
Large catalogue, frequent promotionsESSENTIAL-SZen 5 cores, 64 GB DDR5
Several shops or a multistoreBUSINESS-2 2024DDR5, 3 Gbps guaranteed port

ESSENTIAL-S at $46.20 a month handles a busy single shop with room for the database on the same machine. Choose a data centre near your customers, such as Roubaix for France and the Benelux or Frankfurt for Germany. Our E-commerce shops page covers shop planning more broadly.

Machines for PrestaShop stores

Lowest monthly price of each model across its data centres; the model page shows the price in every location.

ModelProcessorCoresMemoryDrivesPortPer month
ESSENTIAL-2Intel Xeon-E 2388G832 GB2x 512 GB SSD NVMe1 Gbps unmetered$43.20
ESSENTIAL-SAMD Ryzen 7 9700X864 GB2x 512 GB SSD NVMe1 Gbps unmetered$46.20
ESSENTIAL-MAMD Ryzen 9 9900X1264 GB2x 512 GB SSD NVMe1 Gbps unmetered$70.80
ESSENTIAL-4AMD EPYC 73131664 GB2x 960 GB SSD NVMe1 Gbps unmetered$106.20
BUSINESS-1 2024AMD EPYC 4244P632 GB2x 960 GB SSD NVMe3 Gbps unmetered$81.60
BUSINESS-2 2024AMD EPYC 4344P864 GB2x 960 GB SSD NVMe3 Gbps unmetered$109.80

Start with an Essential model and move up when the catalogue or traffic grows.

See all servers and prices

Related pages

E-commerce shops

Single machines and two node setups for WooCommerce, Magento, PrestaShop and headless shops that must stay fast at checkout.

Read more

WordPress hosting on bare metal

Run WordPress sites on your own dedicated server: nginx and PHP-FPM pools, MariaDB, object and page caching, WP-CLI, cron and many sites per machine.

Read more

Magento hosting

Host Magento Open Source on a dedicated server: the full stack of PHP, MySQL, OpenSearch, Valkey or Redis, Varnish and RabbitMQ, production mode and cron.

Read more

Hardening a new dedicated server

The first hour on a fresh machine: SSH keys, a firewall, automatic updates, brute force blocking and a habit of checking what listens.

Read more

Questions and answers

Which database does PrestaShop use?

A MySQL-compatible database: MySQL 8 or a current MariaDB release, checked against your PrestaShop version's requirements.

Does PrestaShop work with nginx?

Yes, with PHP-FPM and the rewrite rules from the PrestaShop documentation for friendly URLs and image paths.

How do I make PrestaShop faster?

Turn on the template cache and CCC, add a Memcached or Redis cache module, size OPcache properly and give InnoDB enough buffer pool memory.

How should PrestaShop module cron jobs run?

From the system scheduler as the shop's user, calling each module's cron URL or command and logging the output.

What should I do after installing PrestaShop?

Delete the install folder, keep the renamed admin folder private, update modules, and set up nightly backups to another machine.