Chapter 2. Installation

In this chapter, we will cover the tasks related to installing Magento 2 in a Linux server, including the following ones:

  • Setting up an AWS server
  • Installing PHP
  • Installing MySQL
  • Installing Magento dependencies
  • Creating a custom domain for the server
  • Setting up GIT for version control
  • Setting the right permissions for the server

System requirements for Magento 2

Before moving forward with the installation, we should review the system requirements for Magento 2 to ensure that the environment is correct for Magento to run properly.

The following are the system requirements for Magento 2:

  • Operating System:
    • Linux

  • Web servers:
    • Apache 2.2 or 2.4
    • nginx 1.8

  • Database:
    • MySQL 5.6 or
    • MySQL 5.7 (Magento 2.1.2 or above) or
    • MariaDB or
    • Percona

  • PHP:
    • PHP 5.6 and later. PHP 7.0.2, 7.0.4, 7.0.6-7.0.x (Magento 2.1.2 and later)
    • PHP 7.0.2, 7.0.6-7.0.x (all Magento 2.1.x versions)
    • PHP 5.6.x (Magento 2.1.0)

  • Required PHP extensions:
    • BC Math
    • curl
    • GD, ImageMagick 6.3.7 (or later), or both
    • intl
    • mbstring
    • Mcrypt
    • Mhash
    • OpenSSL
    • PDO/MySQL
    • SimpleXML
    • OPCache
    • SOAP
    • xml
    • XSL
    • Zip
    • JSON (PHP 7 only)
    • iconv (PHP 7 only)

  • PHP Dependency Manager:
    • Composer

  • SSL:
    • Valid security certificate (required for HTTPS)
    • Transport Layer Security (TLS) requirement

  • Mail Server:
    • Mail Transfer Agent (MTA) or SMTP server

  • Optional:
    • Redis 3.0
    • Varnish 3.5 or latest stable 4.x version
    • Memcached
    • Xdebug
    • PHPUnit

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.15.5.183