How to install Magento 2 on windows

Last updated on May 31 2022
Raghvendra Wanchoo

How to install Magento 2 on windows

In this blog, we are going to install Magento 2.3.2 on Windows platform. The latest version of Magento is Magento 2.3.2. Magento 2 can also be installed using composer, which have their own benefits. Here, we are installing Magento 2 without using the composer. Before starting the installation of Magento 2 on the system, we need to know the system requirement. The pre-requisites are given below:

System requirement of Magento 2

  • PHP – PHP 5.6+
  • Database – MySQL 5.6+
  • Web Server – Apache 2.2x or Nginx 1.7x
  • Operating System – Cross-platform
  • Brower – Google Chrome, Internet Explorer, or Firefox, etc.
  • Secure Socket Layer (SSL) – A valid security certificate for HTTPS
  • XAMPP – XAMPP 7.2.1+ (PHP, MySQL, Apache)

Install the XAMPP software for the complete package of PHP, MySQL, and Apache webserver. So, we do not need to install all these software separately. For XAMPP installation, see the Magento 2 XAMPP Installation tutorial.

Step 1: Download the Magento from the following site https://magento.com/tech-resources/download. Here, we are installing Magento version 2.3.2 latest version of Magento.

image1 9

Step 2: Select the zip format of Magento for windows, and click on Download button. The format type can be zip, tar.gz, or tar.bz2, you can select as per your requirement.

image2 9

Step 3: Before start downloading, it will ask to login for the existing user. If you do not have an account create a new account by clicking on create a new account.

image3 9

Step 4: Now, fill all the details correctly and create a new account.

image4 9

Step 5: After creating the new account, login to the Magento community. Downloading will automatically start after login.

image5 9

Step 6: Magento is successfully downloaded in your system. Now, create a new folder by name magento2 in htdocs inside the XAMPP, i.e., xampp -> htdocs

image6 8

Step 7: Extract the downloaded Magento 2.3.2 zip file in magento2 folder, which you have created in the previous step, i.e., xampp -> ht-docs -> magento2.

image7 8

Step 8: After completing the extraction of Magento 2.3.2, run the Apache and MySQL in XAMPP server.

image8 8
Step 9: Type localhost/magento2/ on the browser and press the Enter key.

image9 6
Step 10: Click on Agree and Setup Magento and start the installation process of Magento 2.3.2 on your system. Here you will find six steps to complete the installation.

image10 5
Step 11: The first step is the Readiness check. Click on Start Readiness check, it will give PHP extension missing error.

image11 4

Step 12: The readiness check will show that 3 PHP extensions xsl, intl, and soap are missing.

image12 4

Step 13: To remove this error, open php.ini file from the XAMPP server. Click on Config of Apache and select PHP (php.ini) to open the file.image13 4Step 14: Remove semicolon (;) before these extensions and save the file. Restart the XAMPP server again.

image14 3
Step 15: Click on try again, where you can see that all Readiness check completed without any error. Now, click on Next for step 2.

image15 2
Step 16: Here, you need to add a database for your Magento2. So, create a database by name magento2 in phpMyAdmin. The same database name will be passed in the Database Name field at the time of Magento 2 installation.

image16 2
Step 17: Provide the database name and other details as shown below and click on Next. Database name should be passed same, which you have created earlier.

image17 2
Step 18: Now, we have to do web configuration to run the Magento 2 on the web. Store address and Magento admin address comes automatically filled by default. You can also change them as per your preference as we have taken admin.

image18 2
Step 19: Next step is to customize your store. Configure the Default Time Zone, Language, and Currency and click Next. Here you do not need to change anything. Click on the Next button and move ahead.

image19 2
Step 20: Enter the proper details here to create the admin account. Enter the username, email id, password, and confirm password in the given fields.

image20 2
Step 21: Now, you are ready to install. Click on install and start the installation.

image21 2
Step 22: Magento 2.3.2 is successfully installed on your system if you get a success page similar to the below page. Magento is ready to launch, where you will get Store address and Magento admin address.

Click on Launch Magento Admin to launch the Magento.

image22 2

  • Using the store address, you will get the Luma theme – a graphical front end view of the website.
  • Magento Admin Address will provide you the dashboard, where Admin can perform operations.

Step 23: After launching the Magento Admin, if a blank screen is showing rather than the admin login panel, then go inside the xampp/htdocs/magento2/vendor/magento/framework/View/Element/Template/File/ and open Validator.php file.

Replace code

  1. foreach($directories as $directory) {
  2. if ( 0 == strops ( $realPath, $directory )) {
  3. return true;
  4. }
  5. }

Replace with

  1. foreach($directories as $directory) {
  2. $realDirectory = this -> fileDriver -> getRealPath ($directory);
  3. //here, $directory is replaced with $realDirectory
  4. if ( 0 == strops ( $realPath, $realDirectory )) {
  5. return true;
  6. }
  7. }

Step 24: Again Launch the Magento Admin, an Admin Login page will open. Now, enter the username and password in it and click on Sign in.

image23 2

Magento 2 Lume interface

If the front end interface is missing the Luma logo, and the CMS homepage is showing same as the below screenshot, then follow the steps given below:

image24 1

Follow the below instructions to fix it.

  1. Open di.xml file inside xampp/htdocs/magento2/app/etc/di.xml
  2. Search Symlink inside the di.xml file as given in the screenshot.
  3. Replace the word “Symlink” with “Copy” in the file and save it.
  4. Reload the home page. Now, the Luma theme (front end) will be visible properly.

image25 1

So, this brings us to the end of blog. This Tecklearn ‘How to install Magento 2 on windows’ blog helps you with commonly asked questions if you are looking out for a job in Magento Programming. If you wish to learn Java and build a career Java Programming domain, then check out our interactive, Java and JEE Training, that comes with 24*7 support to guide you throughout your learning period. Please find the link for course details:

https://www.tecklearn.com/course/java-and-jee-training/

Java and JEE Training

About the Course

Java and JEE Certification Training is designed by professionals as per the industrial requirements and demands. This training encompasses comprehensive knowledge on basic and advanced concepts of core Java & J2EE along with popular frameworks like Hibernate, Spring & SOA. In this course, you will gain expertise in concepts like Java Array, Java OOPs, Java Function, Java Loops, Java Collections, Java Thread, Java Servlet, and Web Services using industry use-cases and this will help you to become a certified Java expert.

Why Should you take Java and JEE Training?

  • Java developers are in great demand in the job market. With average pay going between $90,000/- to $120,000/- depending on your experience and the employers.
  • Used by more than 10 Million developers worldwide to develop applications for 15 Billion devices.
  • Java is one of the most popular programming languages in the software world. Rated #1 in TIOBE Popular programming languages index (15th Consecutive Year)

What you will Learn in this Course?

Introduction to Java

  • Java Fundamentals
  • Introduction to Java Basics
  • Features of Java
  • Various components of Java language
  • Benefits of Java over other programming languages
  • Key Benefits of Java

Installation and IDE’s for Java Programming Language

  • Installation of Java
  • Setting up of Eclipse IDE
  • Components of Java Program
  • Editors and IDEs used for Java Programming
  • Writing a Simple Java Program

Data Handling and Functions

  • Data types, Operations, Compilation process, Class files, Loops, Conditions
  • Using Loop Constructs
  • Arrays- Single Dimensional and Multi-Dimensional
  • Functions
  • Functions with Arguments

OOPS in Java: Concept of Object Orientation

  • Object Oriented Programming in Java
  • Implement classes and objects in Java
  • Create Class Constructors
  • Overload Constructors
  • Inheritance
  • Inherit Classes and create sub-classes
  • Implement abstract classes and methods
  • Use static keyword
  • Implement Interfaces and use it

Polymorphism, Packages and String Handling

  • Concept of Static and Run time Polymorphism
  • Function Overloading
  • String Handling –String Class
  • Java Packages

Exception Handling and Multi-Threading

  • Exception handling
  • Various Types of Exception Handling
  • Introduction to multi-threading in Java
  • Extending the thread class
  • Synchronizing the thread

File Handling in Java

  • Input Output Streams
  • Java.io Package
  • File Handling in Java

Java Collections

  • Wrapper Classes and Inner Classes: Integer, Character, Boolean, Float etc
  • Applet Programs: How to write UI programs with Applet, Java.lang, Java.io, Java.util
  • Collections: ArrayList, Vector, HashSet, TreeSet, HashMap, HashTable

Java Database Connectivity (JDBC)

  • Introduction to SQL: Connect, Insert, Update, Delete, Select
  • Introduction to JDBC and Architecture of JDBC
  • Insert/Update/Delete/Select Operations using JDBC
  • Batch Processing Transaction
  • Management: Commit and Rollback

Java Enterprise Edition – Servlets

  • Introduction to J2EE
  • Client Server architecture
  • URL, Port Number, Request, Response
  • Need for servlets
  • Servlet fundamentals
  • Setting up a web project in Eclipse
  • Configuring and running the web app with servlets
  •  GET and POST request in web application with demo
  • Servlet lifecycle
  • Servlets Continued
  • Session tracking and filter
  • Forward and include Servlet request dispatchers

Java Server Pages (JSP)

  • Fundamentals of Java Server Page
  • Writing a code using JSP
  • The architecture of JSP
  • JSP Continued
  • JSP elements: Scriptlets, expressions, declaration
  • JSP standard actions
  • JSP directives
  • Introduction to JavaBeans
  • ServletConfig and ServletContext
  • Servlet Chaining
  • Cookies Management
  • Session Management

Hibernate

  • Introduction to Hibernate
  • Introduction to ORM
  • ORM features
  • Hibernate as an ORM framework
  • Hibernate features
  • Setting up a project with Hibernate framework
  • Basic APIs needed to do CRUD operations with Hibernate
  • Hibernate Architecture

POJO (Plain Old Java Object)

  • POJO (Plain Old Java Object)
  • Persistent Objects
  • Lifecycle of Persistent Object

Spring

  • Introduction to Spring
  • Spring Fundamentals
  • Advanced Spring

Got a question for us? Please mention it in the comments section and we will get back to you.

 

0 responses on "How to install Magento 2 on windows"

Leave a Message

Your email address will not be published. Required fields are marked *