Child pages
  • Setting Up Your Local Development Environment

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • System: Unix, Linux or Windows.

  • Web serve: Apache Web Server 1.3 or any later version.

  • PHP: 5.2 or later.

  • MySQL: 5.0 or later.

  • At least 32 Mb of RAM. 64 Mb is more comfy, the more the better...

Note

PrestaShop can work with PHP 5.1.3 or later, but versions inferior to 5.2 have bugs that might prevent some functionalities to work as expected (such as invalid date time zone).PrestaShop can also work with Microsoft's IIS Web server 6.0 or later, and nginx 1.0 or later.

...

You can read the Getting Started guide for more details: http://doc.prestashop.com/display/PS15PS16/Getting+Started.

Configuring PrestaShop

By default, PrestaShop is configured to provide a secure and stable environment to both the shop administrator and the customers.

...

When your development has an impact on the front-officefront office, whether you are building a theme or simply a module which displays information to the customer, you should force the template file compilation and disable the cache, so as to always see the result of your changes directly.

...

  • config.inc.php
  • defines.inc.php
  • smarty..config.inc.php

config.inc.php

...

Warning

When in production mode, $smarty->force_compile must be set to false, as it will give a 30% boost to your page load time.

On the other hand, when editing a .tpl file, you must delete the /tools/smarty/compile folder (except the index.php file) in order to see your changes applied.

Note that this setting can be made directly from the back - office, in the "Performance" page under the "Advanced parameters" menu.

Keeping things secure

Once your module is online, its files could be accessed by anyone from the Internet. Even if they cannot trigger anything but PHP errors, you might want to prevent this from happening.

You can achieve this by adding a index.php file at the root of any module folder you create. Here is a suggestion for what to put in the file.

Code Block
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Location: ../");
exit;