Categories
Magento

How to install a Magento ecommerce site on your computer

Introduction

This guide explain how to install a Magento Open Source ecommerce site on your computer, allowing you to test the site without making it publicly available. This is particularly useful if you want to test a significant update to an existing site.

Requirements

  1. MySQL 5.6 or 5.7 on your computer
  2. PHP 7.2 or 7.3 on your computer
  3. Apache 2.4 (or nginx 1) running on your computer
  4. A Magento account

If you don’t already have MySQL, PHP and Apache running on your computer, it’s worth installing MAMP See How to install MAMP on your computer and set the PHP version. The instructions below assume you have MAMP installed and running PHP 7.3.

Skill Level

Intermediate knowledge of software installations.

Instructions

Time needed: 30 minutes.

  1. Log into your Magento account.

    Go to https://account.magento.com/customer/account/login/.
    Enter your Email and Password, and click Login.
    Magento Email and Password fields and Login button - screenshot

  2. Go to the Magento Download page.

    Go to https://magento.com/tech-resources/download

  3. Select the format you want to use to download the Magento installation.

    In the Full Release (ZIP with no Sample Data) section, in the sub-section for the latest version of Magento, select Magento Open Source…zip… in the Select your format drop down.
    Select your format drop down on Magento download page - screenshot

  4. Download the Magento installation.

    Next to the Select your format drop down, click Download.
    Download button on the Magento download page - screenshot

  5. Enter your company information.

    If prompted, enter your company information and click Save.
    Complete customer account fields in Magento download popup - screenshot

  6. Unzip the Magento installation.

    After the file has downloaded, unzip it to create the magento-ce-… folder.

  7. Rename the Magento installation folder.

    Change the name of the Magento folder that you’ve just unzipped from magento-ce-… to just magento. This isn’t essential, but makes it easier to access the site later.

  8. Move the Magento installation folder into MAMP.

    Click and drag the magento folder into the MAMP htdocs folder. On a Mac, it’s usually in Macintosh HD > Applications > MAMP.

  9. Open and run MAMP.

    On a Mac, MAMP is usually in Macintosh HD > Applications > MAMP.
    If the MAMP servers aren’t already running, click Start Servers.
    It’s important that MAMP is using PHP 7.3 before you do this. If you’re not sure, see How to install MAMP on your computer and set the PHP version.Start Servers on MAMP - screenshot

  10. Go to the WebStart page in MAMP.

    Click Open WebStart page.
    On a Mac, this is usually http://localhost:8888/MAMP/WebStart page button in MAMP - screenshot

  11. Go to the phpMyAdmin page in MAMP.

    In the MySQL section click phpMyAdmin.
    On a Mac, this is usually http://localhost:8888/phpMyAdmin/MAMP phpMyAdmin link - screenshot

  12. Go to the Databases page.

    Click the Databases tab.phpMyAdmin Databases tab - screenshot

  13. Create a new database.

    In the Database name field, enter a name for your database and click Create. In this example, the database is named magento.phpMyAdmin Database name field and Create button - screenshot

  14. Start the Magento setup.

    Go to the Setup page on Magento. On a Mac, this is usually http://localhost:8888/magento/setup/ .
    Click Agree and Setup Magento.Agree and setup Magento button - screenshot

  15. Start the Readiness Check step.

    Click Start Readiness Check.Start Readiness Check button in Magento setup - screenshot

  16. Complete the Readiness Check step.

    Click Next.Next button on Readiness Check page in Magento setup - screenshot

  17. Complete the Add a Database step.

    In the Database Server Host field enter localhost.
    In the Database Server Username field enter root.
    In the Database Server Password field enter root.
    In the Database Name field enter the name of the database you created in Mamp (e.g. magento).
    Click Next.Database Server Host, Username, Password and Name fields and Next button in Magento setup - screenshot

  18. Complete the Web Configuration step.

    Click Next.Next button on Web Configuration page in Magento setup - screenshot

  19. Complete the Customise Your Store step.

    Select the relevant options for the Store Default Time Zone, Store Default Currency and Store Default Language fields and click Next.Store Default Time Zone, Store Default Currency and Store Default Language fields on Customise Your Store page - screenshot

  20. Complete the Create Admin Account step.

    Enter the relevant text in the New Username, New Email, New Password and Confirm Password fields, make a note of them, and click Next.New Username, New Email, New Password and Confirm Password fields on the Create Admin Account page - screenshot

  21. Complete the Install step.

    Click Install Now.
    The installation could take several minutes. Make sure not to close your browser, close MAMP, or lock your computer during this time.Install Now button in Magento setup - screenshot

  22. Make a note of the access details.

    Make a note of the Your Store Address, Magento Admin Address and Encryption Key and click Launch Magento Admin.Your Store Address, Magento Admin Address and Encryption Key on the Success page - screenshot

  23. Start using Magento.

    For more info, see https://docs.magento.com/m2/ce/user_guide/getting-started.html