What are the requirements of Magento 2?

Magento 2 is one of the leading content management systems (CMS) for e-commerce, known for its robust features and flexibility. Ensuring optimal performance requires meeting certain system specifications. In this article, we’ll highlight the essential requirements for Magento 2 to help you successfully set up and maintain your online store.
Skip to content

What are the requirements of Magento 2?

Magento 2 is one of the most popular content management systems (CMS) for e-commerce. To ensure its optimal performance, it's essential to meet specific system requirements. In this article, we'll outline the key requirements for Magento 2 to help you effectively implement and maintain your online store.

Introduction

This article will cover the system requirements for Magento 2, which directly impact the performance, stability, and security of your e-commerce website. You'll learn about supported operating systems, minimum and recommended server, memory, and database requirements, as well as necessary PHP extensions. We'll also discuss SSL certificate requirements and caching technologies.

Supported Operating Systems

Operating System Versions

Magento 2 supports various Linux x86-64 operating systems, such as:

  • RedHat Enterprise Linux
  • CentOS
  • Ubuntu
  • Debian

macOS is suitable for local development environments.

Web Servers

Apache and Nginx

Magento 2 requires a web server that meets specific versions:

  • Apache 2.4 or later
  • Nginx 1.18 or later

Memory Requirements

Minimum and Recommended RAM

Installing and upgrading Magento requires adequate RAM:

  • Minimum RAM: 2GB
  • Recommended RAM: 4GB or more

If the system has less than 2GB of RAM, creating a swap file is necessary.

Database Requirements

Supported Databases

Magento 2 is compatible with the following databases:

  • MySQL 5.7 or later
  • MariaDB 10.4 or later

Magento also supports Percona, providing flexibility in database selection.

PHP Requirements

PHP Versions

Magento 2 supports several PHP versions, including:

  • PHP 7.4
  • PHP 8.1 or later

Required PHP Extensions

Magento 2 requires the following PHP extensions:

  • bc-math
  • ctype
  • curl
  • dom
  • gd
  • hash
  • iconv
  • intl
  • mbstring
  • openssl
  • PDO/MySQL
  • SimpleXML
  • soap
  • xsl
  • zip
  • sockets
  • xml
  • xmlreader
  • xmlwriter

Caching Requirements

PHP OPcache, Redis, Varnish

Magento 2 uses various caching technologies to enhance performance:

  • PHP OPcache
  • Redis (required version: 5.0 or later)
  • Varnish (required version: 6.x)

SSL Requirements

SSL Certificates

Magento 2 requires a valid SSL certificate for HTTPS. Requirements include:

  • SSL certificate version TLS 1.1 or later
  • Transport Layer Security (TLS) is mandatory

Supported Browsers

Magento 2 supports the latest versions of popular browsers, including:

  • Microsoft Edge
  • Firefox
  • Chrome
  • Safari (macOS only)

Mail Server

MTA and SMTP

Magento 2 requires a configured mail server:

  • Mail Transfer Agent (MTA)
  • SMTP server

Magento can also use the SendGrid service for cloud hosting.

Hardware Requirements

Minimum and Recommended Hardware

The performance and scalability of a Magento store depend on the server's hardware specifications:

  • CPU: 2 cores (2 GHz each), recommended 4 cores
  • RAM: 4 GB, recommended 8 GB or more
  • Storage: At least 120 GB SSD, recommended more than 240 GB SSD

Conclusion

Meeting the system requirements for Magento 2 is crucial to ensure the optimal performance, stability, and security of your online store. Choosing the right operating system, web server, database, and configuring PHP and caching appropriately will significantly impact your store's operation. Regular updates and adherence to the latest requirements will ensure the reliable functioning of Magento 2.

By following these guidelines, you can maximize the potential of your Magento 2 store and provide a seamless shopping experience for your customers.

 

Aleksandra "Ola" Czapiewska, née Kijewska
Written by Aleksandra "Ola" Czapiewska, née Kijewska

Sorceress of Projects & Wonders

Introducing Ola, a marketing mastermind with nearly two decades of expertise in transforming data into dynamic marketing strategies. Her remarkable track record includes transformative roles at Burda Media Polska, Polska Press Grupa, TIM S.A., and Media Saturn Holding. These positions have seen her launch and lead marketing initiatives that dramatically increased engagement and sales.

A certified Google Partner proficient in top marketing automation platforms like SalesManago and iPresso, Ola has consistently delivered solutions that enhance online visibility and propel business growth.

Currently at qoliber as the 'Sorceress of Projects & Wonders,' she expertly drives projects that surpass expectations, delivering top-notch product quality and securing a formidable market stance.

Share by