You must install Elasticsearch before installing Magento Commerce or Magento Open Source 2.4.0. See Elasticsearch for details.

Installation flow diagram

The following diagram provides a high-level overview of installing the Magento software:

How Magento installation works

The diagram shows the following:

  1. Set up your server environment.

    Install the prerequisite software, including PHP, Apache, MySQL, and Elasticsearch. Consult the system requirements for specific information.

  2. Get the Magento software.

    • For simplicity, get a compressed Magento Open Source or Magento Commerce archive, extract it on your Magento server, and start your installation.

    • If you are more technical and you are familiar with Composer, get a Magento Open Source or Magento Commerce metapackage.

    • If you want to contribute to the Magento Open Source codebase or customize the Magento application, clone the Magento 2 GitHub repository. (This method requires familiarity with both GitHub and Composer.)

  3. Install the Magento software using the command line.

    If the step fails because prerequisite software isn’t set up correctly, review our Prerequisites.

  4. Verify the installation by viewing your storefront and the Magento Admin.