What is Magento 2?

Magento 2 is the latest upgrade of Magento, which was originally developed by Varien Inc, an US private company headquartered in Culver City, California, combining with the voluntary assistance.On November 17, 2015, Magento 2 was officially released. Inherited lots of success factors of Magento, Magento 2 also present modern technologies and structure, as well as modified directory structure but more simplified customization.

 

Overview of the Magento 2 Features

These are just a handful of the new features available to all Magento 2 users.

Open And Flexible Architecture

Powered by an entirely new, next-generation architecture, Magento 2 provides unparalleled flexibility to bring your commerce vision to life.

Enhanced Business Agility and Productivity

Magento 2 development empowers merchants by providing a more efficient experience that facilitates rapid growth.The new Admin panel design offers a streamlined, consumer-like interface that saves time when managing day-to-day tasks and is intuitive for new team members to learn. It is also touch-friendly so you can make updates or track sales while on-the-go.

Engaging Shopping Experiences

Central to the Magento 2 platform is an engaging, seamless and personalised customer experience across any device.

Enterprise-grade Scalability and Performance

Featuring over 50% faster page load speeds across catalog and checkout pages, performance lies at the heart of Magento 2 to enhancing customer experience improving conversions.

Secure Payments

Security is a key component of Magento 2 development, with tight out-of-the-box PayPal, Braintree, and Authorize.net payment gateways.

Easier Maintenance and Upgrades

An overhauled, modern and modular architecture empowers the functionality provided by Magento 2, providing unsurpassed scope and flexibility.

 

Magento 2 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 : Composer (latest stable version https://getcomposer.org/download/)
Web servers : Apache 2.2 or 2.4 or nginx 1.8 (or latest mainline version)
Database : MySQL 5.6
PHP :

  • Magento 2.0.x : PHP 5.5.22–5.5.x or PHP 5.6.x or PHP 7.0.2 or PHP 7.0.6–7.0.x
  • Magento 2.1.x : PHP 5.6.5–5.6.x or PHP 7.0.2 or PHP 7.0.4 or PHP 7.0.6–7.0.x

Required PHP extensions :

  • curl
  • gd, ImageMagick 6.3.7 (or later) or both
  • intl
  • mbstring
  • mcrypt
  • mhash
  • openssl
  • PDO/MySQL
  • SimpleXML
  • soap
  • xml
  • xsl
  • Zip

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

 

Magento 2 Installation

Before getting started, make sure you have all the prerequisites, required for running Magento 2.
Here I am going to discuss few ways to install magento 2.

1) Install from Archive file: Easy installation, no command line.

  1. Here first way is to download it from Magento download page.
    https://www.magentocommerce.com/download Or download the latest version at https://github.com/magento/magento2
    Magento was kind enough to pack with all composer dependencies in the archive, so you don’t have to run Composer.
  2. Extract the source code in your folder.
  3. Log in to mysql to create database.
  4. So next steps are easy, just navigate to the host where you installed Magento 2 in browser and follow Setup Wizard to start installing Magento 2.0.

2) Use Composer to install Magento

You can use Composer to install Magento 2.It is a tool for dependency 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.To learn more visit this link https://getcomposer.org/doc/00-intro.md

Follow below steps to Install Magento 2 with Composer :

  1. Install composer
    You can skip this step if you have Composer already installed.
  2. Download Magento 2
    First you need authentication keys which can be obtained from https://marketplace.magento.com/customer/account/ and you will need Magento account to login.
    Once logged in, go to “My Access Keys”, enter some descriptive “Name” and generate new set of keys. Magento uses this approach because, in future, extensions you buy from marketplace, will be available to you, through Magento admin interface.
    Run the following command in root directory.
    composer create-project –repository-url=https://repo.magento.com/magento/project-community-edition
    When prompted, your public key is username, and private key is password.
  3. Set Up Permissions
    After all the dependencies are retrieved, you should set the correct permissions on the entire Magento 2 installation directory. The official documentation recommends chmod’ing all directories to 700 and all files to a level of 600:
    find . -type d -exec chmod 700 {} \; && find . -type f -exec chmod 600 {} \;
  4. Create The Database
    Given that you already have a MySQL user with the correct permissions, then create an empty database to work with.
  5. Install Magento 2
    That’s about it! You can now follow the installation wizard or use the command line.

3) Install from Git repository: Contributing developer

Third, and the last one, is cloning or downloading release from GitHub repository.
You can clone Magento 2 GitHub repository using either SSH or HTTPS protocols.
Use SSH for better security (no user name and password are exchanged). This requires you to share a public key with GitHub.
Use HTTPS if you don’t share an SSH key with GitHub (your user name and password are encrypted before being sent to GitHub).

Follow below steps to clone the Magento GitHub repository :

  1. Copy to the clipboard the Magento GitHub repository SSH clone URL.
    – In a web browser, go to the Magento GitHub repository https://github.com/magento/magento2
    – On the right side of the page, under the clone URL field, click SSH or HTTPS.
    – Click the Copy to clipboard button.
    The following figure shows an example.
  2. Change to your web server’s docroot directory. Typically, for Ubuntu, it’s /var/www and for CentOS it’s /var/www/html.
  3. Enter git clone and paste the value you obtained from step 1.
    An example follows : git clone git@github.com:magento/magento2.git
  4. Wait for the repository to clone on your server. After deploying has been finished, run : composer install
  5. You can now follow the installation wizard or use the command line to install magento 2.

 

Hopefully, this is a clear guide on how to install Magento 2 with 3 different ways. In case we missed anything or you’d like to know more about, Tweet us on Twitter @letsnurture or drop a post on the official Facebook page of LetsNurture.

Read more about eCommerce website development.

Share your thoughts with us, we will be happy to have a discussion on the same.

Happy Coding 🙂

Want to work with us? We're hiring!