Magento 2 hosting requirements - All information you need

Magento 2 hosting requirements - All information you need

The Magento 2 version release has new functionalities and a security suite for your e-commerce sites. You get more control over your store with better flexibility and site management. Magento 2 also offers an improved & user-friendly interface.

Before installing Magento 2, you will need to meet the system requirements. These prerequisites are essential to get your site live. If you are still using older Magento 1 versions, it's time to update your stack.

Magento 2 System requirements include OS, memory, suitable PHP versions, system dependencies, and other settings.

In this article, we’ll look at the latest technology stack recommended for Magento 2.

Magento 2 System Requirements:

Magento 2 Technology Stack Requirements
Operating System Magento 2 supports Linux distributions (Linux x86-64) such as RedHat Enterprise Linux (RHEL), CentOS, Ubuntu, Debian, and similar.
magento installations are not supported on Microsoft Windows and macOS.
Web servers Apache 2.4
NGINX 1.x
Database MySQL 5.7, 8.0 (for Magento 2.4.0)
MySQL 8.0 (for Magento 2.4.x)

MariaDB 10.4 (for Magento 2.4.x)
Memory requirements 2GB of RAM
If you are using a system with less than 2GB of RAM, you need to create a swap file.
PHP version PHP 7.3, 7.4 (for Magento 2.4.0)
PHP 7.4 (for Magento 2.4.x)
PHP extensions ext-bcmath
ext-ctype
ext-curl
ext-dom
ext-gd
ext-hash
ext-iconv
ext-intl
ext-mbstring
ext-openssl
ext-pdo_mysql
ext-simplexml
ext-soap
ext-xsl
ext-zip
ext-sockets

PHP OPcache PHP OPcache needs to be enabled for better performance. The OPcache is enabled in many PHP distributions.
To verify if it is installed, check the Magento PHP documentation.
System Dependencies Magento requires these system tools to carry some of its operations:

bash
gzip
lsof
mysql
mysqldump
nice
php
sed
tar
SSL requirements Self-signed SSL certificates are not supported.

A valid security certificate is required for HTTPS.

Transport Layer Security (TLS) requirement - PayPal and repo.magento.com both require TLS 1.2 or later.
Mail server Mail Transfer Agent (MTA) or SMTP server.
Caches Redis 5.0, 6.0 (compatible with 2.4+)
Vanish 6.x (compatible with Magento 2.4+)
Other technologies Elasticsearch 7.6+ (for Magento 2.4+)
MySQL is no longer used for search for Magento 2.4+

RabbitMQ 3.8
Supported browsers Storefront and Admin:

Microsoft Edge, latest–1
Firefox latest, latest–1 (any OS)
Chrome latest, latest–1 (any OS)
Safari latest, latest–1 (Mac OS only)

Safari Mobile for iPad 2, iPad Mini, iPad with Retina Display (iOS 12 or later). Used for a desktop storefront.

Safari Mobile for iPhone 6 or later; iOS 12 or later. Used for a mobile storefront.

Chrome for mobile latest–1 (Android 4 or later). Used for a mobile storefront.

Latest–1 means one major version earlier than the latest released version.

Is it Important to Meet the Server Requirements for Magento 2.4?

Server Requirements for Magento 2.4

For efficient Magento hosting, it is necessary to have an updated technology stack. Magento recommends the stack mentioned in this article. It is officially tested and supported for the Magento 2 version.

If you do not meet the server requirements, your online store can become unresponsive, with security and performance difficulties.

Some factors for an optimized Magento hosting include:

  • Meeting the system requirements
  • Compatible technology stack
  • Updated OS
  • command line
  • Correct server configurations

An updated stack ensures that you avail the benefits of the latest Magento community version.

Conclusion

Magento 2 is a feature-rich platform to run your e-commerce site. However, it has a complex architecture. To use its features, you have to install the software properly. The server has to meet all the Magento 2 requirements.

The Magento applications also need to be maintained regularly. If you don’t have the technical expertise, opt for managed hosting services for Magento. It reduces backend workloads so that you can focus on growing your business.

At MGT Commerce, you get fully managed Magento hosting. Magento experts will install and handle the server configuration for you. If you already have a Magento 2 Shop, we migrate it for free with Managed Migration services.

Gain more information on the Managed Magento hosting plans here.

Nikita S.
Nikita S.
Lead Technical Writer

As a lead technical writer, Nikita S. is experienced in crafting well-researched articles that simplify complex information and promote technical communication. She has expertise in cloud computing and holds a specialization in SEO and digital marketing.


Get the fastest Magento Hosting! Get Started