How to Install Magento?
To set up and manage our store, you must install Magento first! Note that our Magento tutorial for developers focuses on Magento Open Source (the free version), not Adobe Commerce.
Do not forget to download and install XAMPP via this link before you start reading further. Our Magento training guide involves two main stages: setting up the web server and installing Magento, detailed as follows:
Step 1.
Open the XAMPP Control Panel and ensure Apache and MySQL are running (green buttons).
Step 2.
In the Control Panel, click Config for Apache, then select php.ini. Remove the semicolons (;) before the following lines to enable these extensions:
| extension=php_curl.dllextension=php_mcrypt.dllextension=php_pdo_sqlite.dllextension=php_pdo_mysql.dllextension=php_soap.dll |
Step 3.
Open C:\Windows\System32\drivers\etc\hosts (Windows) and add this line at the end:
| 127.0.0.1 www.localhost.com |
Step 4.
Visit this link to download the full release archive. Extract the downloaded file before continuing within our Magento tutorial.
Step 5.
Copy the extracted Magento folder (e.g., “magento”) to your XAMPP document root directory (usually C:\xampp\htdocs).
Step 6.
Type in the URL: in your web browser. This step will initiate the Magento installation wizard.
Step 7.
- Agree to the terms and conditions.
- Set your Locale, Currency, and Time Zone.
- Configure Database Settings:
- Host: localhost
- Database Name: magento (or your chosen name)
- User Name: Your MySQL username
- User Password: Your MySQL password
- Set your personal info : First Name, Last Name, and Email
- Set Login Information (Username, Password, and Confirm Password) for admin access
Step 8.
Click Go to Backend, then login to the Magento Admin Panel using your Admin Username and Password.
- Next, go to System > Index Management. Tick Select All and choose Reindex Data in the Action Field, then click Submit here.
- Finally, go to System > Cache Management. Tick Select All and select Refresh in the Action Field for all caches. After that, click Submit.