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)