As you may know, Magento 2.0 Alpha version has been released in December 2015 and certainly, many Magento developers want to catch up with this latest Magento version. We will release series of articles related to Magento 2, starting with today’s tutorial: How to Properly install Magento 2 on localhost. With a proper installation of Magento 2, we will avoid encountering unexpected errors while working with Magento 2.0. Now, let’s start.
Step 1. Install xampp server
You can go to this url to download and install Xampp: https://www.apachefriends.org/index.html
After installing Xampp, edit: php.ini to enable the following extensions:
;extension=php_openssl.dll ⇒ extension=php_openssl.dll
;extension=php_intl.dll ⇒ extension=php_intl.dll
Step 2. Install composer:
First, we will download and install Composer: https://getcomposer.org/Composer-Setup.exe
Run the setup file and follow these steps:
⇒ Click on Next
⇒ Next to proceed to the next step
Define the path of php.exe, with xampp php.exe is located in C:\xampp\php\php.exe and click on Next
⇒ Now we will start the Installation
Wait for a while.
If the following error occurs, dont worry, just open Task Manager to kill process Window Explorer. After you shutdown the process, click on Retry to continue.
This notification will be shown once the installation succeeds:
Now, we will reopen Window Explorer:
Step 3. Install Magento 2.0
Now we will begin to Install Magento 2.0. You can get Magento 2.0 from this official source: https://github.com/magento/magento2
Now, copy files to htdocs folder of localhost. Then, right click and select Composer Installation for the file \setup\composer.json
Now you will see command screen as below:
When it’s done, log in to mysql to create a database for your site
Next, open your browser and run the URL: localhost/magento20/ to begin installing Magento 2.0
Now, just complete step by step to install Magento 2.0:
Step 1: Check server (php version, extensions, file permissions and compatibility)
When it’s done, clink on Next
Step 2: Database and server information. Enter your server and database information (in step 3). Click Next proceed:
Step 3: Enter your store address
Step 4: Customize your store.
Now you can customize your store as you want. In this step you can edit default time zone, type of currency and language.
Step 5: Create your Admin Account to manage the store.
Step 6: Last step, click on install now and just wait for the installation to be done
It will take a few minutes for the installation. When everything is done you will see this notification page
Now go ahead and check your store
If you are looking for a good Magento hosting to put your store online, take a look at this Magento hosting review
Have any questions? feel free to drop a line here