How to Create a Magento 2 website with sample data To install Magento 2, we need the newest tools to run that application. Make sure your web-server has the following stuff installed: · PHP 5.5 or higher · MySQL 5.6 or higher · Apache 2.2 or higher · Command line access · Composer We can install Magento 2 in different ways. we will install Magento 2 using Composer. The advantage of this is that we can use GIT to add version control to our custom development. 1.We will install Magento 2 with Composer. For this, we need authentication keys. With an account on the magento.com site, go to Developers | Secure keys in the My Account section. On this page, you can generate public and private keys that will be your username and password in the next step. 2. To install Magento 2 with composer, we have to run the following command: composer create-project --repository-url=https://repo.magento.com magento/p