Best Server Requirements for Magento (Adobe Commerce) Platform
Being a Magento developer, do I really need to care about my server requirements?
Yes, you need to because the reason is Magento is built with complex architecture and design patterns. On the other side, the application is kept on upgrading with the latest features like page builder, headless/PWA, Adobe Sensei, and much more.
Now the point is what are server requirements or configuration that you need to look at before making your application live.
Let's go!
Magento Server Requirements for 2.4.3
Following are the server requirements that will help you to configure the server for the Magento application without breaking anything.
Web Server 2.4.3
Magento recommends two web servers with Apache 2.4 and NGINX 1.8.
Database 2.4.3
Here you can use MySQL 8.0 & MariaDB 10.4 to manage databases for Magento applications.
Elasticsearch
If you’re using Magento 2.4.1 then Elasticsearch version 7.6 would be recommended. Magento 2.4.2 and Magento 2.4.3 require Elasticsearch 7.9.
Redis
If you’re using Magento 2.4.1, then Redis version 5.0 would be recommended. Magento 2.4.2 and Magento 2.4.3 require Redis 6.0.
Composer
It’s recommended to use Composer version 2.x with all the Magento versions.
RabbitMQ
It’s recommended to use RabbitMQ version 3.8 for all the Magento versions.
Varnish
Magento 2.4.3 requires Varnish 6.5
PHP
Magento versions from 2.4.1 – 2.4.3 all require the same PHP vision, which is 7.4.
Required PHP Extensions
- ext-bcmath
- ext-ctype
- ext-curl
- ext-dom
- ext-fileinfo
- ext-gd
- ext-hash
- ext-iconv
- ext-intl
- ext-json
- ext-libxml
- ext-mbstring
- ext-openssl
- ext-pcre
- ext-pdo_mysql
- ext-simplexml
- ext-soap
- ext-sockets
- ext-xmlwriter
- ext-xsl
- ext-zip
- lib-openssl
Mail Server
Mail server is essential for all ecommerce businesses to send and receive emails, promotions, and feedback from the users.
Operating System
Magento allows you to use Linux distributions, such as RedHat Enterprise Linux (RHEL), CentOS, Ubuntu, Debian, and similar.
Please note: Magento is not supported on Microsoft Windows and macOS. If you need to install Magento on a local server, then use XAMPP with Apache server.
SSL
All Magento applications require a valid security certificate for HTTPS. Besides, PayPal and repo.magento.com both require TLS 1.2 or later.
Please note: You can’t use self-signed SSL certificates.
PHP OPcache
Magento strongly recommends you use and verify that PHP OPcache is enabled for performance reasons.
PHP settings
We recommend particular PHP configuration settings, such as memory_limit, that can avoid common problems when using Magento.
In order to verify it, please run this command:
$ php -m
RAM
Since Magento backs up with heavy computational resources, it makes sense that it also requires some extensive servers as well to operate the application operations smoothly. Therefore, whenever you launch a Magento application, choose the 4GB RAM for better performance.
System Dependencies
Magento requires the following system tools for some of its operations:
- abash
- gzip
- lsof
- mysql
- mysqldump
- nice
- php
- sed
- tar
So these are the requirements that you need to keep in mind. But another hectic, it's not that easy to install all the services to a single server. It takes time and required the right skill set to get installation and configuration done for the entire server requirements.
What's the Right Solution?
It's been more than 3 years now, I'm relying on Cloudways which is a managed cloud hosting solution for Magento applications. So far, I have found out everything that's required to run the Magento application smoothly.
Verditct!
I hope this guide helps the Magento developers to easily set the Magento application with a single click while also meeting the complete server requirements for their e-commerce store.
If you found this solution gives it a thumb or feel free to ask any queries in the comment section below. I'll try my level best to answer you all.