Flash Sale:75% Off Hosting + Free DomainEnds in13h47m14sView Plans
Hostvento logoHostvento

Install Magento on Windows with XAMPP

Use XAMPP to run Magento on your PC for tests and development.

Online Stores2 min read7 screenshots
Note: Magento 2 needs a lot of resources and (from 2.4) a search engine such as Elasticsearch or OpenSearch. A local test setup on Windows is best done with a recent Magento version and the Composer install. These steps give you the main outline.

Step 1: Install XAMPP

Download XAMPP from the Apache Friends website and install it with Apache, MySQL, PHP and phpMyAdmin.

The XAMPP installer

Step 2: Configure XAMPP

Start the XAMPP Control Panel.

The XAMPP Control Panel

Open php.ini (the Config button next to Apache) and enable or set:

  • extension=intl
  • extension=xsl
  • extension=soap
  • max_execution_time=18000 (the maximum script run time)
  • max_input_time=1800 (the maximum time to parse input)
  • memory_limit=2G (the memory limit)

Also check that gd, curl, mbstring, bcmath, zip, sockets and openssl are enabled. Restart Apache.

Step 3: Download and extract Magento

Download Magento Open Source from the Adobe/Magento website (a free account is needed), or create the project with Composer. Extract the files to C:\xampp\htdocs\magento.

Step 4: Create the database

Start Apache and MySQL. Open phpMyAdmin (http://localhost/phpmyadmin), click New, name the database magento and click Create.

Creating the database in phpMyAdmin

Step 5: Install Magento

Open http://localhost/magento in your browser and follow the installer. Enter:

  • The database host (localhost), name (magento), user (root) and password (empty by default).
  • The store address and the admin URL.
  • The search engine host, if it asks.
  • The admin user and password.
    The Magento installer

Step 6: Finish

When it ends, the installer shows the admin URL and the success page.

The Magento installation is complete

Check the store front. Open http://localhost/magento.

The Magento storefront

Check the admin. Open the admin URL and log in.

The Magento admin panel
Warning: Do not publish this XAMPP setup to the internet. It is meant for local tests.

Quick recap

  • Install XAMPP and raise the PHP limits.
  • Create a database and extract Magento.
  • Run the installer, then check the store and the admin.