Installing PrestaShop on localhost

Local installation of the open-source e-commerce CMS PrestaShop, set up and test your online store at http://localhost/prestashop.


PrestaShop is a popular open-source e-commerce system built on a PHP + MySQL architecture. It is lighter than Magento, making it suitable for local development and theme customization for small to medium-sized online stores.

Prerequisites

Installation Steps

  1. Download the installation package from prestashop.com
  2. Extract to htdocs/prestashop/
  3. Create a database prestashop_local in phpMyAdmin, collation utf8mb4_unicode_ci
  4. Access http://localhost/prestashop in your browser
  5. Fill in the installation wizard:
    • Store information and admin email
    • Database: localhost, database name, user, password
    • Delete or rename the install/ directory (the installer will prompt you)

Common Paths

PathDescription
/prestashopFrontend of the store
/prestashop/admin-dev or /prestashop/adminXXXBackend (random suffix during installation)
/prestashop/themesFrontend themes
/prestashop/modulesModules

Local Development

  • Enable debugging: set _PS_MODE_DEV_ in config/defines.inc.php
  • Theme development: copy the Classic theme to themes/your_theme_name
  • Clear cache: Backend → Advanced Parameters → Performance → Clear Cache

Frequently Asked Questions

Installation Directory Permissions
var/, cache/, img/, upload/, etc., must be writable by the web user.

Friendly URL 404
Enable URL rewriting; ensure that .htaccess is effective.

Memory or Timeout Issues
Increase max_execution_time and memory_limit when importing demo data.

Conclusion

Access PrestaShop locally at http://localhost/prestashop. It runs on PHP + MySQL and is more suitable for quickly setting up e-commerce prototypes than Magento.

访客计数:------ Best viewed in Netscape Navigator · 800×600 © LocalHost Run