Magento 2.4 OS, Web Server and Database

Posted August 31, 2020 2.8k views

I recently opened a digital ocean account and there is a Magento 2.4 installation on the Marketplace including ElasticSearch 7 which is now required with 2.4

I started a web store with my shared hosting on shared hosting and already have some issues including inode limits and the last of ability to install ElasticSearch.

As a result, I explored additional options and had intended to install MAgento 2.4 with ElasticSearch on Centos8 using this link: from

However, I now see there are so many options. The DigitalOcean Marketplace installer is using Ubuntu, the article on github above use CentOS

          One uses Apache and the other uses Nginx

          One uses mysql or mariadb and the other uses Percona

I’ve also seen many tutorials on a basic install of magento including just the web server, database and mysql. They all uses different options for the OS, database engine and web server.

I am familiar enough with SSH commands to do this install on my own. But I am more familiar with CentOS commands then Ubuntu.

Nonetheless, given all the options and starting a new online store I want to make the right choices to start.

Can anyone offer and comparisons or recommendations that would help?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

Hi there @StatusCue,

For me choosing an OS is a matter of personal preferences.

If you are more familiar with CentOS, then I would recommend going for CentOS rather than Ubuntu as it will be easier for you to maintain the server in the long run.

As far as I can see from the GitHub page that you’ve shared, all you need is a plain CentOS server.

Once you have the server you need to SSH to that server and then run:

  • curl -o && bash

This will do all of the server set up for you. The software stack that is included seems quite good, though note that it requires a Droplet with 8Gb RAM.

On the other hand, if you decide to go with Ubuntu, the learning curve would not be very steep. There are a lot of tutorials out there on how to manage Ubuntu servers and the overall shell commands are not very different.

Hope that this helps.