Magento 2.0 – Installation guide

NOTE: UB Trex -- our free Magento 2 theme is available for download.

To help Magento developers get to know the latest Magento 2 alpha 106, today, we would like to walk you through the steps needed when installing the latest version of this leading eCommerce platform.



Magento 2.0 - Installtion guide

Magento 2.0 -- Installation guide

View higher resolutions

Feel free to embed and share this infographic on your site, copy and paste the code below:

<img src="" width="540"><p>How to install Magento 2.0 (alpha version)<a href=""></a>

I. System requirements

Before you install Magento 2, make sure your system meets or exceeds the following requirements:

  • Operating systems : Linux distributions such as RedHat Enterprise Linux (RHEL), CentOS, Ubuntu, Debian, and so on
  • Composer (latest stable version)
  • Apache 2.2 or later
  •  PHP 5.4.11 or later or PHP 5.5.x.
    Note: Magento 2 does not support PHP 5.6.
  • Required PHP extensions:
    • PDO/MySQL
    • mbstring
    • mcrypt
    • mhash
    • simplexml
    • curl
    • gd2, ImageMagick 6.3.7 (or later) or both
    • soap
  • MySQL 5.6.x
  • Mail Transfer Agent (MTA) or an SMTP server
  • Optional but recommended:
    • php_xdebug2.2.0 or later (development environments only; can have an adverse effect on performance)
    • PHPUnit (as a command-line tool) 4.1 or later

II. Installation

When you are done with verifying your prerequisites, follow the steps below to install Magento 2.

1. Install composer

You can use Composer to install Magento 2. It is a tool for dependent management in PHP which allows you to declare the dependent libraries your project needs and install them for you. Composer enables you to manage Magento 2, extensions, and their dependencies.

Here are the key advantages for using Composer:

  • Easy to integrate third-party components into the code base
  • Component-based architecture with robust dependency management
  • Reduce extension conflicts and compatibility issues
  • Versioned dependencies, semantic versioning
  • Supports PHP Framework Interoperability standards
  • An alternative to Pear packaging system

Now, download Composer and run its latest version. For more details on further configuration when installing composer, please visit this Composer installation documentation.
Follow the 6 steps below to start Composer installation

Step 1 : Composer Setup
Magento 2.0 (alpha) - Installation guide
Step 2 : Select Composer
Magento 2.0 (alpha) - Installation guide
Step 3 : Check PHP and path settings
Step 4 : Ready to install
Step 5 : Turn off all window explorer and retry


Step 6 : Finish



2. Clone the Magento 2 Git hub Repository

Here is how you clone the Magento 2 GitHub repository:

  1. Change to your web server’s docroot directory.
  2. Enter commands to write to the web server docroot.
    Make sure you have correct access rights and the repository exists.
  3. Wait for the repository to clone on your server.

In case you get an error that includes Permission denied (publickey), see Troubleshooting.

3.Install/reinstall Magento 2.0

3.1 Change file system permissions and ownership before installation

To make sure the installation completes successfully, we suggest the following file system permissions and ownership:

  • All files and directories owned by the web server user.
  • Certain directories must be writable.
3.2 Update Composer and run the installer

After you are done with updateing the file system permissions and ownership, go onto update Composer and run the installer:

Open Command Prompt on Windows, then update composer on Magento 2.0 root folder and setup sub directory as follow:

Magento 2.0 - Installtion guide

Update composer on Root

Magento 2.0 - Installtion guide

Update composer on setup sub directory

3.3 Create Data Base

Open PHPmyadmin, then create Data base for Magento 2.0

Magento 2.0 - Installtion guide

Create Database on PHPmyAdmin

3.4. Magento installation
You must install Magento from its setup subdirectory.
Follow the 7 steps below to start your Magento installation
Step 1 : Agree and Setup
Step 2 : Verify System requirements

Step 3 : Verify System requirements (cont)

Step 4 : Data Base configuration
Step 5 : Web Configuration
Step 6 : Configure Language, Time zone and Currency
Step 7 : Create admin Account
Step 8 : Install & Finish

Further Reading :

Written By

Biz & Operations &

  • Vũ Văn Quỳnh

    Great guide for Magento 2 installation in Window OS. I am looking for this. Thanks UberTheme team. 😉

  • dijup

    How can I update the Megento beta version?

  • kiko11

    waht is the lowest price host for magento 2

    • Uber Theme

      Dear kiko11,

      We still have not estimated time to convert Magento 2.0 and all business is inprogress of planning.
      It’s pity that it’s not possible for our team to handle at
      the moment. As Magento 2.0 has just been released which takes a large
      work load to convert themes and extensions from Magento 1.x to 2.0. We
      are now in the first step to convert Techzone, and based on our
      resources then, we will consider new custom inquiry. Hope for your

  • Luis García

    I just finished the move from M1 to M2 for a small store of my own. This was done on local host. Now that I have the site complete on my PC, would it be ok to just upload the files/database to our hosting server? Or there is something else I should do on the hosting server side? Thanks!

  • Adam Scudamore

    How about installing Magento and then configure Nginx to serve the website?
    I found a good tutorial on the Rosehosting blog, I will try it now. If someone wants an URL, send me a message.

  • Kishor Parida

    Nice article, I installed magento 2 exactly like this. Ans got to configure this for a head start

  • Paul Andrews

    Here’s a guide current as at June 2018, specifically for Ubuntu hosts:
    How to install Magento 2 on Ubuntu