This website uses cookies

Our website, platform and/or any sub domains use cookies to understand how you use our services, and to improve both your experience and our marketing relevance.

Register For a Free Webinar on Cloudways API on 28th September, 4:30PM UTC.Register Now!

Best Magento Hosting Requirements For Optimum Performance

Updated on December 24, 2021

7 Min Read
best magento hosting requirements

With over 0.2 million websites using Magento, it has become an important player in the ecommerce industry. One reason behind its enormous success is the fact that Magento helps ecommerce store owners offer visitors a wonderful shopping experience.

That said, finding the best hosting remains a daunting task for merchants. In fact, one has to meet a host of Magento server requirements just to take their store live. Another aspect of the problem is that Magento stores can’t be hosted with just about any hosting provider. Magento has officially mentioned all the Magento hosting requirements and technology stack that have to be met for best Magento performance.

If you haven’t already hosted your Magento, or are looking for the best hosting companies, you are in the right place. In this post, I will discuss the prerequisites of installing Magento with the current stable version.

Recommended: Best Magento Hosting Requirements

Before installing the Magento application on any managed cloud hosting, run through the checklist for Magento server requirements. At this point, you might wonder: do I really need to care about Magento 2 server requirements?

The answer is pretty straightforward – you can’t host your Magento application on just any hosting platform. Magento has a complex architecture, and the technology dependencies need to be taken care of for an optimized hosting experience. If you host your Magento store on hosting providers that don’t fulfill the recommended server requirement mentioned in DevDocs,  you might face performance issues in the long run.

That’s why you need to look for the best Magento 2 hosting requirements, so you can offer visitors an excellent user experience as they browse your ecommerce store.

Install Magento 2 in a Single Click

Simplified Magento hosting requirements that takes away your hosting woes

Let’s check out Magento hosting requirements in detail.

Technology Stack


Operating systems (Linux x86-64)
For Linux distributions, such as RedHat Enterprise Linux (RHEL), CentOS, Ubuntu, Debian, and similar. Magento is not supported on Windows and MAC OS.

Memory Requirement
Upgrading the Magento applications and extensions you obtain from Magento Marketplaces and other sources can require up to 2GB of RAM. If you are using a system with less than 2GB of RAM, I recommend you create a swap file; otherwise, your upgrade might fail.

Web servers
Apache 2.4
MySQL 5.6, 5.7
Magento is also compatible with MySQL NDB Cluster 7.4.*, MariaDB 10.0, 10.1, 10.2, Percona 5.7, and other binary-compatible MySQL technologies.
Magento only uses MySQL features compatible with MariaDB. MariaDB may not be compatible with all MySQL features, however, so be sure to research compatibility issues before using this in your Magento module.
Supported PHP versions:
Required PHP extensions
PHP OPcache
I strongly recommend you verify that PHP OPcache is enabled for performance reasons. The OPcache is enabled in many PHP distributions.
PHP settings
I recommend particular PHP configuration settings, such as memory_limit, that can avoid common problems when using Magento.
A valid security certificate is required for HTTPS.
Self-signed SSL certificates are not supported.
Required System Dependencies
Other Technologies
Redis versions 3.2, 4.0, 5.0 (compatible with 2.4+) for page caching and session storage.
Varnish version 6.x (tested with 6.3.1)
Elasticsearch version 6.8

It’s quite natural to feel overwhelmed when you first see this list of Magento server requirements. Not only do you have to install these, but they also need to be managed!

Well, the best hosting platforms provide these Magento requirements and make sure that these technologies are easily manageable. In fact, the real challenge involves finding the right hosting provider for your website.

Over the internet, anyone and everyone can claim to be the best Magento hosting company that can fulfill the requirements, even if they’re unaware of the actual server requirements. So when you’re on the hunt, use a checklist of the Magento 2 server requirements mentioned above.

In that vein, let’s run the checklist on Cloudways and learn how it provides the best Magento hosting requirements.

Secure and Migrate your Magento 1 Store using Cloudways without breaking anything

Checklist for the Best Magento Hosting Requirements On Cloudways

I will go through the sections of the checklist to highlight the Platform’s compatibility with the official Magento hosting requirements.

Operating System

According to the official Magento server requirement, this should be Linux (x86-64) distributions. Cloudways provides the Debian operating system for all Magento servers.

Memory Requirement

Cloudways starts its hosting plan with a minimal 2GB of RAM as officially recommended by Magento.

magento server size hosting requirement

If you try to host your Magento with a 1GB server, the Cloudways Platform will deny the request and recommend hosting your store on a server with 2GB or above RAM.

Web Servers

Web servers are the first and the most common contact point between the user and the Magento store. Here again, Cloudways supports both Apache and NGINX that are already installed as a part of the default Cloudways web stack.

Here are the NGINX version details that are required for the best hosting for Magento.

magento Web Servers NGINX hosting requirement

And the Apache version details that are required for the best hosting for Magento.

magento Web Servers apache hosting requirement


With Cloudways, you have MariaDB v10.1 as the default database; however, you can upgrade the database version to MariaDB v10.2 or v10.3 as per your requirements.

You can also verify and see available versions of the database at the Cloudways platform because it also plays an important to known as the best hosting for Magento.

settings and packages

PHP Version(s)

The latest version PHP 7.4 is not compatible with Debian 7 servers but will work flawlessly with Debian 8 and Debian 9 servers. And it’s one of the most important server requirements to check first while choosing any top Magento hosting.

PHP 7.1.x is the default PHP version when you launch a new Cloudways managed Magento server. However, it is very easy to upgrade or downgrade to a different PHP version such as 5.6.x, 7.0.x, 7.2.x, 7.3.x, and 7.4.x, all of which are supported on the Cloudways Platform.

To verify the PHP version, first, connect to your server via SSH and run the following command:

php -v

magento php version hosting requirement

Required PHP Extensions 

Basically, PHP extensions are compiled libraries that enable support specific functionalities in your PHP code.

A large number of PHP extensions/modules are installed according to the selected PHP version. The following image shows a list of available extensions.

required php extensions

Required PHP Extensions 2

Required PHP Extensions 3


Magento strongly recommends installing OPcache because it allows you to handle more requests per second, and thus return a response quicker. With Cloudways, OPcache is quite easy to install and configure.

You can also increase the OPCache memory size under the Advanced tab of Setting & Packages.

OPcache settings and packages

Book a Personalized Cloudways Product Demo With One of Our Expert

Free SSL Certificates

Cloudways allows you to install SSL certificates on the Magento stores for free. However, before you start configuring Magento 2 SSL, make sure you’ve signed up for a full Cloudways Platform account, and that your domain is pointed to the target Magento application.

If you have any confusion about Magento SSL, read this article to know more about it.

ssl management

Required System Dependencies

Magento supports Data Collector utilities to gather your system’s troubleshooting information that can be used by the Cloudways support team.

All you have to do is connect your SSH, access your Magento application and type: ls /bin/

Magento hosting Required System Dependencies

Other Cache & Necessary Technologies

Magento recommends that Varnish and Redis should both be a part of server requirements.

So let’s run this final point by the checklist to see if Cloudways measures up.

Other Cache & Necessary Technologies for magento hosting requirements

I can see that Cloudways supports Varnish. Similarly, I can also check for the Magento Redis cache, which is just right above the Varnish.

Other Cache & Necessary Technologies for required magento hosting

Last, you can also install Elasticsearch for your Magento store with just a few clicks.

Optimize Magento Speed Like a Pro

Subscribe now and get a free ebook to your inbox.

Thank You

Your Ebook is on it’s Way to Your Inbox.

Best Magento Hosting Requirement Checklist For Cloudways

I hope this article answers your questions about the best Magento hosting requirements. For a quick refresher, here’s a cheat sheet to use before choosing any hosting.

Server Requirements for Magento 


Operating systems (Linux x86-64 or distribution) 
With Debian 9
Memory Requirement
Web servers
Database (MariaDB)
PHP(5.6 – 7.4)
Required PHP extensions
PHP OPcache
PHP settings
Required System Dependencies
Other Technologies

Scalable, Super Fast, & Secure Hosting

Our clients love us because we never compromise on security, performance and support.

Final Words

There’s no doubt that Magento is a powerful ecommerce platform. However, to make the full use of the powerful features, you have to install it properly on a server that meets all the Magento requirements.

The best Magento hosting providers, like Cloudways, provide an easy to use and scalable solution to give your Magento ecommerce store the best possible start.

If you have any queries, let me know in the comments section below.

Share your opinion in the comment section. COMMENT NOW

Share This Article

Customer Review at

“Great speed, features, knowledgebase, dashboard, UX and fast, expert support. Very happy!”

Stefan [Management Consultant]

Ashmal ur Rehman

Ashmal is the Magento Community Manager at Cloudways. He loves helping out merchants and developers in establishing and maintaining online stores. In addition, he is often busy interacting with the Magento community and figuring out integration tactics for emerging tech. When not working, you could find him playing COD & CS GO. Feel free to contact him at [email protected]


Get Our Newsletter
Be the first to get the latest updates and tutorials.

Thankyou for Subscribing Us!


Webinar: How to Get 100% Scores on Core Web Vitals

Join Joe Williams & Aleksandar Savkovic on 29th of March, 2021.

Do you like what you read?

Get the Latest Updates

Share Your Feedback

Please insert Content

Thank you for your feedback!

Do you like what you read?

Get the Latest Updates

Share Your Feedback

Please insert Content

Thank you for your feedback!