Jump to content

BEST Server settings for Prestashop 1.7. tested in production


Recommended Posts

The settings below are tested in production for 500 to 20.000 products and 3 mio attributes. For to have a flexible and better server features management and also the best speed for to work with Prestashop take a dedicated or a VPS root server. Managed servers in most of the cases don't have the possibility to make own changes needed on the server configuration.

You need at least php 5.6*. Better performance you will get with php 7 and mySQL 5.7 or mariaDB 10 (read also detailed PS 1.7. versions further down !!). There is no need for accelerators, in contrary, best is the use of php-fpm + opcache + ngnix proxied.


  • memory_limit = 512M
  • max_execution_time = 300
  • max_input_time = 300
  • upload_max_filesize = 20M
  • post_max_size = 20M
  • max_input_vars = 10000
  • allow_url_fopen = on - with that you. can import images and other accesses externally
  • safe_mode = off
  • cURL - installed for you for example. Paypal and other web services work without problems.
  • mod_rewrite = installed and activated
  • mod_security = off
  • at least php 5.6.x* + php-fpm + opcache with its own values (see below), better performance with php 7.
  • mySQL 5.6 or higher (better performance with mySQL 5.7 or mariaDB)
  • JSON = ON
  • ctype = ON
  • mySQL = INNODB (myIsam does not work correctly)
  • php.ini from the server must include the date.timezone
  • Open SSL 1.0.2 or higher
  • (Prestashop is not recommended on Windows servers)
  • cageFS and another FIREWALL technique installed on the server configured correctly so that the back-office is not slow by blocking external services that Prestashop uses. If in doubt, or back-office slow, please ask the provider of your accommodation if there are firewalls installed !!!


PS 1.7.x in detail:

PS 1.7.0 -> 1.7.3. - here you can still use php 5.6.30 (above and inclusive) without problems. For better performance use php 7.1. and mysql 5.7 or maria DB 10
PS 1.7.4. -> 1.7.6  - requires php 7.2. and maria DB 10 or mysql 5.7.

BE AWARE that with php 7.1. hashing extension will be changed, this means mcrypt extension (rijndael encryption) is removed. Although mcrypt could be installed a part with PHP 7.2, this version and later one will use bcrypt (blowfish based). So please upgrade older Prestashopversions only by using 1-click-module and also on servers with php 7.1 + installed by default. Be careful with servers configured initially with php versions 5.6x and than other php versions are installed as extra. This could make problems on your site, like: Passwords will not work anymore, data could not be changed or saved anymore, etc.

-> PS 1.7.7. AND HIGHER  - requires php 7.3. and maria DB 10 or mysql 5.7.

Opcache optimization:

    opcache.revalidate_freq = 0
    opcache.validate_timestamps = 0 (comment this out in your dev environment)
    opcache.max_accelerated_files = 7963
    opcache.memory_consumption = 192
    opcache.interned_strings_buffer = 16
    opcache.fast_shutdown = 1

In addition, it is important to have automatic permissions to create / change / delete folders and files. Thus take care that all internal scripts and users (from inside the server) will have full access to folders and files automatically, while external accesses have read-only access, without the need to change these parameters manually.

* php 5.6, php 7.0 and php 7.1 are all end of life and not maintained anymore. This means that there will be no updates and also no security updates available. The best is to take newer php-versions in combination with newer PS-versions!!!

Releases php-versions

  • Like 10
  • Thanks 2
Link to comment
Share on other sites

This topic is now closed to further replies.
  • Create New...