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...