Recommended Server Requiements for Magento Stores

03.24.2020 no comments

Choosing your Magento 2 hosting will bring a couple of questions. Would my Magento store be to run on shared hosting? An ecommerce platform like Magento won’t be suitable for unreliable hosting.

Why is it so?

The answer is: Magento has a complex architecture so installing the entire environment can be daunting. In fact, if you are looking to build your online store with Magento you have to look for a reasonable system and Magento server resources as well.

In this blog, I will highlight all the server requiements for magento stores that that can help to reduce the server downtime and boost the Magento store speed and performance.

Magento 2 Requirements: Downloading & Installation

If you have decided to install the Magento platform on any managed hosting provider, you have to consider specific Magento requirements. Following Above are the basics that you should keep in mind while hosting your Magento 2 stores

           – PHP and MySQL versions you have to use for each Magento version

           – The memory_limit, so that your application doesn’t get slow

           – Technologies you have to use on the server to create your Magento store such as Memcached, Redis, etc

Prefered OS for Magento 2.3.X 

As per the Magento Official DevDoc – Linux distributions, such as RedHat Enterprise Linux (RHEL), CentOS, Ubuntu, Debian, and similar. *** Magento is not supported on: Windows & Mac OS

Memory Requirements

Memory is one of the key aspects no matter what ecommerce platform you opt for your online business. Once you start using  Magento 2, you should opt for a minimum of 2GB RAM for upgrading applications and extensions. Officially,  Magento recommends creating a swap file if you are using a system with less than 2GB RAM. 

Web Server Requirements

With Magento you have to use two web servers:

           – Apache 2.4

           –NGINX 1.x

Database Requirements

Magento recommends using MySQL version 5.6 & 5.7. Magento CMS is also compatible with MySQL NDB Cluster 7.4.*, MariaDB 10.0, 10.1, 10.2, Percona 5.7, and other MySQL technologies. 

PHP Supported Version

With the EOL for PHP 7.1, Magento isn’t going to support any older versions and will not be running on any outdated software. Magento is only compatible with:

           – PHP 7.2.0

           – PHP 7.3.0

PHP Required Extensions

Following are the required PHP extensions for your Magento servers:

           – ext-ctype

           – ext-bcmath

           – 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

           – Lib-libxml

If you want to check whether all of these PHP extensions are installed on your server. Run this command: [email protected] [~]# php -m

PHP OPcache Requirement

Magento recommends enabling the OPcache to maintain store performance. For more information, refer to the PHP required setting by Magento.

SSL Certificate   

Security is one of the major concerns for online businesses. Magento also emphasizes to configure SSL certificates on each developed online stores. It helps to enhance the trust of the customer and decreases the bounce rate. For your Magento store you should consider these points: 

           – A valid security certificate is required for HTTPS.

           – Self-signed SSL certificates are not supported for Magento stores.

           – Transport Layer Security (TLS) requirement like PayPal and both require TLS 1.2 or later version for Magento 2

Requirements for System Dependencies 

Following are the tools that Magento requires to streamline its operations:

           – bash

           – gzip

           – lsof

           – mysql

           – mysqldump

           – nice

           – php

           – sed

           – tar

Mail Server Requirement

As an online merchant, you can go for two options when it comes to mail server requirements. One is Mail Transfer Agent – MTA and the second is Simple Mail Transfer Protocol – SMTP.  

Other Technological Requirements




Redis  For page caching and session storage.  3.2, 4.0, 5.0 [Highly Recommended]
Varnish To reduce the page load time and load the content faster. 4.x, 5.2 or 6.2
Elasticsearch For better search results. 6.x (for Magento Commerce Version)
RabbitMQ Use to publish and receive messages asynchronously. 3.8.x

Other Requirements

There are a couple of more requirements for Magento stores that are essential for developers.

Three Master Databases

This is only for the Magento Commerce users who want to develop their store on this specific edition. The reason to establish three master databases is to provide scalability for different functional areas of the Magento application like (checkout, orders, and remaining Magento 2 application tables).

Optional Requirements




php_xdebug It can have an adverse effect on performance (for development environment) 2.5.x
mcrypt For PHP Greater than 7.2
PHPUnit Command Line Tool 6.2.0

Composer Installation

Composer installation requirements are for those developers who want to contribute within the community like Magento 2 codebase or developing Magento 2 extensions. 

Wrapping Up!

I hope you got everything you were looking for to migrate your online store to Magento 2. It is highly recommended that you use the latest Magento 2 version for your ecommerce store as it ensures optimized server performance, and provides enhanced security to your Magento store.

If you have any further doubts? Give me a holler whenever you are stuck with a query in a comment section.

No comments yet

Your comment was successfully sent and awaits moderation.

Server is not replying. Please try later.

You already have this product in your basket

Please delete it before you add a new copy.

You added this product in your basket.

Thank you for Your choice.