Table of Contents
Cloudways, a leading cPanel alternative and Managed Magento Hosting provider, is a one-window solution for powering up your Magento store and is trusted by thousands of eCommerce businesses and agencies. The Cloudways blazing-fast stack delivers faster performance, ironclad security, scalability with a choice of five cloud providers, and guaranteed peace of mind with 24/7/365 support.
In this guide, you will learn how to install the latest Magento 2.4.x on your Cloudways server in just a few clicks.
Magento 2.4.x Minimum Requirements
When you launch a Magento 2.4.x application on a new server, all the required settings and packages are configured automatically. However, if you want to deploy the Magento application on an existing server, it should meet the following minimum requirements.
RAM: Recommended 8GB or higher
(If not, you can upscale your server)
OS: Debian 8 or higher (all new Cloudways servers have Debian 11).
Database: MariaDB 10.4 or higher
(If not, you can upgrade your database)
PHP: 7.4 or higher
PHP Memory Limit: 7936 MB
Execution Limit: 2200
ElasticSearch: 7.6 or higher
Tip
You can still install Magento 2.4.x on a 4GB RAM machine; however, you may face performance-related issues.
The PHP memory and execution limits are based on an 8GB machine. You need to increase proportionally for bigger machines.
Learn how to scale up your server and update your server packages.
How to Deploy Magento 2 on Cloudways
You can deploy Magento 2.4.x on a new server or an existing server, and we have explained the procedure below:
Prerequisites
To reiterate, when you launch a Magento 2.4.x application on a new server, all the required settings and packages are configured automatically. However, it should meet the minimum requirements if you want to deploy the Magento application on an existing server.
Launching Magento 2 on an Existing Server
Log in to the Cloudways Platform using your preferred method.
From the top menu bar, click Servers.
Then, choose your target server where you wish to deploy your Magento 2 application.
Click ⋮ to view more options.
Then, click Add Application.
Next, select Magento 2.4.x.
Name your Application.
Select your Project.
Finally, click Add Application.
Important
If your existing server cannot meet the minimum requirements to run Magento 2.4.x, then you will be informed here, as shown in this image. All the recommended server packages and services will be installed and configured automatically if you deploy your application.
Your high-speed Magento application will be deployed in a few minutes. Learn how to access your application information, such as your application URL, admin credentials, etc.
Launching Magento 2 on a New Server
Log in to the Cloudways Platform using your preferred method.
From the top menu bar, click Servers.
Then, click Add Server.
Select Magento 2.4.x.
Type the name of your application.
Type the name of your server.
Select your Project.
Choose your cloud provider.
Select the server size.
Choose the server location.
Finally, click Launch Now.
Your high-speed Magento application will be deployed in a few minutes. Learn how to access your application information, such as your application URL, admin credentials, etc.
Important Notes
You may see a bit of delay when viewing the frontend and backend for the first time because it compiles all the assets like JS and CSS files, core functions, etc.
You also don’t need to configure Varnish settings to make your application work. All the default exclusions are already excluded by default.
Varnish purge does not work with Magento 2; however, you can purge the Varnish cache directly from the Cloudways Platform.
That’s it! We hope this article was helpful. If you need any help, then feel free to search your query on Cloudways Support Center or contact us via chat (Need a Hand > Send us a Message). Alternatively, you can also create a support ticket.
FAQs
I cannot clone my Magento 2.x application to an existing server. What’s going on?
Please ensure that you are cloning your application on a compliant server with all the required packages to run. You might need to scale up your server or update your server packages.