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
- MySQL 5.6 or 5.7 on your computer
- PHP 7.2 or 7.3 on your computer
- Apache 2.4 (or nginx 1) running on your computer
- 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.
- Log into your Magento account.
Go to https://account.magento.com/customer/account/login/.
Enter your Email and Password, and click Login. - Go to the Magento Download page.
- 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.
- Download the Magento installation.
Next to the Select your format drop down, click Download.
- Enter your company information.
If prompted, enter your company information and click Save.
- Unzip the Magento installation.
After the file has downloaded, unzip it to create the magento-ce-… folder.
- 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.
- 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.
- 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. - Go to the WebStart page in MAMP.
Click Open WebStart page.
On a Mac, this is usually http://localhost:8888/MAMP/ - Go to the phpMyAdmin page in MAMP.
In the MySQL section click phpMyAdmin.
On a Mac, this is usually http://localhost:8888/phpMyAdmin/ - Go to the Databases page.
Click the Databases tab.
- 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.
- 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. - Start the Readiness Check step.
Click Start Readiness Check.
- Complete the Readiness Check step.
Click Next.
- 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. - Complete the Web Configuration step.
Click Next.
- 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.
- 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.
- 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. - 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.
- Start using Magento.
For more info, see https://docs.magento.com/m2/ce/user_guide/getting-started.html
More Info
Magento installation guide: https://devdocs.magento.com/guides/v2.3/install-gde/prereq/zip_install.html