How to install Magento 2.4 on localhost (Xampp, Windows OS) How to create admin user in Magento 2 via Command Line; Fixed Installation issue for Magento 2.3.5 p1 and Magento 2.3.5 p2 on Windows, Xampp; How to setup a Cron Job for Magento 2 in cPanel; Fix issues when install Magento 2.3.0 on Xampp; How to install a Magento 2 extension without SSH. Also you have downloaded Magento 2 then installing? Or installed via composer? If issue solved,Click Kudos & Accept as Solution. 10:40 PM 10:40 PM. Re: Instalation at 51% Magento 2 localhost Hi, @Manthan Dave I download 7.2.30 / PHP 7.2.30 from XAMPP site and ver 2.3.5-p1 fro Magento site. How To Install Magento 2.3.1 on Localhost using XAMPP - Magento 2. Note: Composer is required for developers who wish to contribute to the Magento 2 codebase or anyone who wishes to develop Magento extensions and extend Magento project.
Here are the steps that you will follow to install Magento 2 with PHP7 on localhost by 8 Steps:
- Step 1: Download Magento 2 zip file from download page.
- Step 2: Start your EasyPHP DevServer
- Step 3: Click start button Choose Apache as Server…
- Step 4: Click start button below DATABASE Server…
- Step 5: Click on Portable Directory Link to explore the directory…
- Step 6: Create a new folder magento2 in ROOT…
- Step 7: Open EasyPHP DevServer Dashboard…
- Step 8: Install Magento 2 on local server
In this tutorial, we are going to use EasyPHP DevServer v16.1 which includes Apache 2.4.17, PhpMyAdmin v4.5.2, PHP v7.0.1, MySQL v5.7.9. You might download and install it and make sure to set the path of PHP.INI and PHP.EXE in the Environment Variable. You might download and install Composer.
Magento is using Composer for dependency management. Composer enables Magento 2 to manage its dependencies and components. You might select EasyPHP DevServer on the basis of official system requirements of Magento 2. To install Magento 2 with PHP7 on localhost, here are the official Magento 2 system requirements:
MySQL 5.7.x or MySQL 5.6.x
Apache 2.4 or 2.2 or nginx 1.8
7.0.x or 5.6.x
In addition, if you want to install Magento 2 with PHP7 on localhost, it requires some extensions support for PHP7. You must make sure you have the following PHP7 extensions installed and enabled on your EasyPHP DevServer:imagick or ImageMagick 6.3.7 or later pdo_mysql,SimpleXML, mcrypt,openssl, mhash, curl, gd, soap, xsl, intl, bcmath, mbstring.
- 1 Install Magento 2 on localhost
- 2 Start the Magento 2 Browser Installer
Install Magento 2 on localhost
To install Magento 2 with PHP7 on localhost, first step, you must download Magento 2 zip file from download page.
After download Magento 2, you might start your EasyPHP DevServer. You might click on EasyPHP DevServer icon in Taskbar, then click Open Dashboard.
Below HTTP Server, You might click start button Choose Apache as Server, Select PHP v7.0.1, Port 8888 , then press start button on Dashboard.
You might return to Dashboard, then you can click start button below DATABASE Server, then choose MySQL as Server and press start button.
Now you return to your Dashboard, you might click on Portable Directory Link to explore the directory, here you have to extract/unzip Magento 2 files and folders from the downloaded zip file. This is also known as ROOT Directory of your local server, and in the rest of this article, i will refer to this directory as “ROOT”.
You can create a new folder magento2 in ROOT, then extract all the files together with folders from the zip file to this directory using 7-Zip file archiver.
You might open your EasyPHP DevServer Dashboard, click PhpMyAdmin, then create a new database, magento2.
It is time to install Magento 2 on your local server. You can enter your Magento 2 URL http://127.0.0.1:8888/magento2/ in your favorite web browser, then hit enter to access Magento setup/installation. You will be automatically landed on the start page of Magento Setup, and click Agree and Setup Magento.
Start the Magento 2 Browser Installer
Magento will perform Readiness Check on your environment which includes , File Permission Check, PHP Version Check, PHP Extension Check and PHP Settings Check in this step. You have to resolve them in order to continue the setup if you get any errors.
Magento will ask you for some database details in this step. You might enter database server host 127.0.0.1, username root, then an already created database name magento2.
Step 3 will ask for web configurations where you must enter your Admin URL and Store Address. You can change your Store Address to http://127.0.0.1:8888/magento2/, admin URL depends on what you wish.
In this Customize Your Store section, Select your currency, language and timezone of the future test Magento 2 ecommerce store.
To setup your Admin Panel’s credentials, you might enter Email Address, Username, Passwords.
If you are ready to install Magento 2 on your local server, you can click Install Now, then wait for a few mins.
NB: You should not close your browser until the setup is done and a success page appears!
A Success message will appear which will indicate the successful installation of Magento 2 on your local server, but it’s not over yet. You should not open your admin panel URL or store address. There are some things to do:
By using Magento 2 CLI Commands, you must verify composer installation, deploy static content, flush/clear Magento cache and reindex the Magento 2 blocks. You can press WINDOWS KEY + R to open RUN dialog, then type cmd to open Command Prompt to perform all the actions mentioned above.
To enter the Magento 2 ROOT directory, you might type cd PATH_TO_YOUR_MAGENTO2_FILES.
You might type “composer install to verify Composer installation in the directory mentioned above.
NB: Please double check your Composer installation if you get any error in this step.
You are setting up static content to deploy on our Magento ecommerce store in this step. You might type php bin/magento setup:static-content:deploy to perform this.
NB: You might check your PHP.EXE and PHP.INI Environment Variable If you get any error.
In the CMD, You might Flush/Clear Magento 2 cache by typing php bin/magento cache:flush.
You might type php bin/magento indexer:reindex to Reindex Magento Static Blocks.
Now you should visit your E-commerce store address http://127.0.0.1:8888/magento2/ to access Frontend and your admin panel URL to access Admin Panel of your Magento 2 store. You can see that install Magento 2 with PHP7 on localhost is not very hard.
We are done with Magento 2 setup and install Magento 2 with PHP7 on your localhost. You might feel free to share it and comment below if you faced any problem. Now it is time to enjoy using Magento 2 with PHP7 configuration and discover the exclusive features of Magento 2.
To install Magento 2 with PHP7 on your localhost is not very hard, right?
Now check out for Magento 2 extensions, it is free and awesome!
Some extensions on Marketplace: Magento 2 customer credit, Magento reward points system, Magento 2 Banner Slider extension/ Magento Affiliate Software / Magento Affiliate Plugin /Magento Plugin Development
Install Localhost Windows 10
After these 10 steps, I guarantee you will create a Magento 2 site on localhost with XAMPP.
In case you need, we also publish a guide of Magento Installation for Magento version 1.x.
*Important Note: Before installing any version of Magento 2, you could easily find your favorite Magento 2 version in this article: UP-TO-DATE Magento Download(all Magento 2 versions).
You can watch this video in case you don’t like reading too much of Magento 2 installation. 😀
Step 1 First, you need to know the requirements for Magento 2 installation. When you download one version of Magento 2, there will be a line below to tell you which Web server, database and php configuration you need for this version. You could download Magento 2 from this trustful and up-to-date source: UP-TO-DATEMagento Download(all Magento 2 versions).
In this guide, we use Magento Community Edition 2.0.10, which requires at least php 5.5.22. For more information of prerequisites of Magento 2, read in http://devdocs.magento.com/guides/v2.0/install-gde/system-requirements-2.0-tech.html.
If you choose version 2.1, you can read in http://devdocs.magento.com/guides/v2.1/install-gde/system-requirements-2.1-tech.html.
*Note: Now (December 1st, 2018), Magento has released a new version of Magento 2.3. More information of prerequisites of Magento 2.3 can be read in: https://devdocs.magento.com/guides/v2.3/install-gde/system-requirements-tech.html
Step 2 Supposed that you don’t have XAMPP, you can download XAMPP from here: https://www.apachefriends.org/download.html.
In this guide, we use Magento Community Edition 2.0.10 with XAMPP version 5.6.24, but you can try other versions of XAMPP which meets the requirements of your version of Magento 2.
After finishing the set up of XAMPP, open it and start both Apache and MySQL web server.
When both modules have a green background, you know they have been already ready.
How To Install Magento 2 On Localhost
Actually, the most often hindrance to start Apache is when a program also takes port 443 or 444 like this
You should turn off the program using same port with Apache in order to continue.
Install Magento 2.0 Localhost
Step 3 Now, go to the default folder of XAMPP: C:xampphtdocs. Create a new folder, for example named “magento2″. Move and extract the downloaded file of Magento 2 in this new folder.
Step 4 Open your web browser, type in search bar: localhost/name-of-new-folder/. In this example, it is localhost/magento2/. Welcome you to the Magento 2 installation on localhost with XAMPP.
Time to hit Agree and Setup Magento button.
Step 5 Now you need to go through 6-step-installation of Magento 2. So watch it closely.
Click Readiness Check button. If you pass all the checks, you can continue. Have you not, you must fix the error to continue. The 2 most often errors are php Settings Check and php Extensions Check.
PHP Settings Check: always_populate_raw_post_data error. To resolve this error, you need to access php.ini file. Using XAMPP, open this file like that:
Search this line: always_populate_raw_post_data = -1
Make sure the number is -1, then remove the semicolon “;” at the beginning of the lines.
PHP Extensions Check: The usual missing extensions are xsl and intl. To resolve this, search extension=php_intl.dll as well as extension=php_xsl.dll, then both remove the beginning semicolon “;”.
Now you need to stop both Apache and MySQL in XAMPP, then restart them again for new effects to be activated and resolved. Click Try Again in localhost for new result, after checking, hit Next.
Step 6 Add necessary database, like Database Server Host, Database Server Username and Database Name.
Switch to localhost/phpmyadmin in web browser, create a new database name exactly the same with your previous Database Name when adding necessary database.
Step 7 Web Configuration. Insert your Store Address here, also remember the Admin Address.
Find your IP in localhost/phpmyadmin like that:
Step 8 Customize your Store. Change Default Time Zone, Currency as well as Language here.
Step 9 Create Admin Account. This is your Admin Panel account.
Step 10 Install. Hit the Install Now button and wait for 2-3 minutes. It’s really simple.
Setup Magento 2 On Localhost
Thanks for reading our Magento 2 installation guide!