A Complete Guide install Magento 2 on Windows on XAMPP server with GIT

With the latest Git Hub push, Magento 2 can now be downloaded and installed completely using Composer! Composer is used to manage the dependency. We will update alternate step by step guide to install Magento 2 on Windows on XAMPP server with GIT with problems if you face and solutions for those problems.

Review the system configuration.

Mod rewrite must be enabled and Apache version 2.2 or 2.4 for the server to be able to rewrite URLs.

PHP: version 5.4.x with x=11 or later 5.5.x and

The following PHP extensions should be enabled: PDO/MySQL, mbstring, mcrypt, mhash, simplexml, curl, gd2, or both soap. You might need to download some PHP DLLs like php imagick.dll, php mcrypt.dll, and php mhash.dll because XAMPP doesn’t have them all loaded.

Versions of MySQL 5.6 and later

  1. Get the Git GUI application.
  2. Install normally on your Windows OS.
  3. Once installed, the screen below will appear.
  4. To clone an existing repository, click.
    Git magento 2
  5. Put Source Location here
  6. Your XAMPP htdocs will be the Target Directory; it will look like this.
    Git magento 2
  7. Let the process run its course.
  8. When you’re done, the Target Directory will contain the Magento 2 clone files. Files are similar to
  9. Install Composer for Windows.
  10. Copy Composer-Setup.exe after downloading it, then paste it in the root of the Magento2 files. See the screenshot up top.
  11. At php.ini, add xdebug.max nesting level=50000.
    Git magento 2
  12. Open the Command Prompt as an administrator.
  13. Navigate to the Magento 2 directory using XAMPP’s htdocs.
  14. Execute this command.
  15. The process will begin.
    Git magento 2
  16. After finishing, you ought to see this display.
    Git magento 2
  17. If you want to set up Magento using test data. There are three ways to do it.
    a. Method 1

    Activate the test data. In the root of the Magento2 files, locate the composer.json file. Launch it, then add.

  18. Run the following command now.
  19. Start composer by saying need magento/sample-data:1.0.0-beta
    Git Magento 2
  20. Await the procedure’ conclusion.
  21. Installing the sample data itself would be the last step. Run the Magento 2 executable located in the bin folder by following these instructions:
    b. Method 2

    1. Locate composer.json in Magento’s root directory.

    2. If the file has a “repositories” section, look for it and add the following block. Whenever possible, add the entire block.Git Magento 23. Composer.json file should be saved.

    4. Access the Magento installation directory in Command Prompt.
    Run an order

    5. Complete the installation procedures.

    C. Method 3

    1. To incorporate the new Sample Data repository, locate the composer.json file. if you don’t want to alter this file directly. You carry out the subsequent command to finish this task:

    2. Add the sample data and sample data media packages by running the command below.

    3.Use the following command to install the sample data.

    Here, the username is admin; replace it with your own.
    Be patient; the process can take some time. Interrupting might corrupt or crash Magento.

  22. Go to the following address right now in your browser: http://localhost/magento2.Hopefully, you can view this screen.

    Git Magento 2

  23. Select Agree and install Magento, then select Next.
  24. It will begin the Readiness Check, which includes checking the PHP version, PHP settings, PHP extensions, and File Permissions.
  25. If all works well, you should see the screen below. Choose Next.
  26. The database settings are configured on the following screen.
  27. Web page setup.
  28. If you already downloaded sample data, the choice will be visible on this screen. Select the default time zone, then select Next.
  29. Set up the administrator account.
  30. Once you click Next, the Ready Install button will appear; click it to continue with the procedure.
  31. Visit the frontend and backend after installation to check out the brand-new Magento 2.0.

Problems I faced

First time error

Problem: Your system does not include the necessary PHP extension, ext-intl *.

Solution: Enable uncomment in php.ini.

Git Magento 2

If you cannot use the token and encounter an error like

Could not get https://api.github.com/repos/module. Please generate a Github QAuth token to request more data than is permitted by the API rate limit.

Solution:

Visit the link in your browser that is listed after “Head to” and log in to Github using your password. Then choose Generate Token. Get the token, copy it, and then paste it into the appropriate SSH field (hidden). The process will continue.

Magento 2 was successfully installed, but CSS and JS were missing.

Getting “NetworkError 404 Not Found – path of Css or JS” errors.

Solution 1:

You get 404 responses probably because you don’t have mod_rewrite enabled.

Solution 2:

Perhaps the pub/static subdirectory is to blame. For these static materials, there is a “cache” mechanism. Every time Magento requests a resource from pub/static, the request is changed to../static.php?resource=resource name here if the file does not exist.

Activate this command,

Each module’s static resources will be copied by the command to the pub/static subdirectory. Be patient since this procedure will take some time. Therefore, don’t forget to use the above command every time you make a modification to a module’s static content to see the results.

Conclusion

All the above information is the data about A Complete Guide install Magento 2 on Windows on XAMPP server with GIT, hope you will have a useful experience with the information we have provided. If you are having difficulty in this experience, you can connect with Onextdigital, which will help you to troubleshoot any difficulties and questions.

Additionally, Onextdigital is the company to turn to if you require website advancement and employment growth for your e-commerce venture. We also offer economical Shopify Development, Bigcommerce Development, and Magento Development services along with a team of knowledgeable specialists and developers who cooperate closely with designers.

>Read Also

Easiest Way To Change Logo In Magento 2 – Update 2023