cancel
Showing results for 
Search instead for 
Did you mean: 

Magento2 installation

SOLVED

Magento2 installation

Hello 

 

I would like to create and design an online store by using Magento 2.

I'm planning to install Magento 2.4 on a linux server.
Could you please help me with following: 
1. Which Linux server is better for Magnet? CentOS or Ubuntu? 

2. Which database is more secure and faster (performance) for Magnet - MariaDB or MySQL? 

3. Which web server is more secure and faster (performance) for Magnet - Apache or Nginx?   
4. Is the SELinux cause any performance issues with Magento? Is it good to use SELinux with Magento? 

 

Thanks in advanc and best reggards,

Noury Micron 

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Magento2 installation

@nmicro70gm7302 

 

1. MariaDB has a larger connection pool supporting up to 200,000+ connections whereas MySQL has smaller connection pool. In MariaDB replication is faster whereas in MySQL replication is slower. 

2. NGINX is about 2.5 times faster than Apache

 

Apart from that, Adobe removed mysql from search only rest application still using mysql. In searh also ID's still coming from mysql or cache and based on id's fetching data from elasticsearch. 

 

For Magento 2.4 yes Elasticsearch is mandatory. 

 

Problem Solved! Click Kudos & Accept as Solution!

Manish Mittal
https://www.manishmittal.com/

View solution in original post

5 REPLIES 5

Re: Magento2 installation

Hi @nmicro70gm7302 


To install Magento2 you may refer https://devdocs.magento.com/guides/v2.4/install-gde/bk-install-guide.html

 

1. Which Linux server is better for Magnet? CentOS or Ubuntu? 
    Based on your choice of comfort you may use CentOS or Ubuntu. I prefer Ubuntu personally. CentOS and Ubuntu are operating systems not the web servers.

2. Which database is more secure and faster (performance) for Magnet - MariaDB or MySQL? 
You may refer Magento 2.4 technology stack requirements document. Note following statement on this page.
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 a feature in your Magento module. Reindexing on MariaDB 10.4 takes more time compared to other MariaDB or MySQL versions. See Configuration best practices.

3. Which web server is more secure and faster (performance) for Magento - Apache or Nginx?
You may do some research on internet. I found an article https://www.aitoc.com/blog/nginx-vs-apache-vs-litespeed-for-magento-2/ 
Nginx serves static content faster compared to Apache. 

4. Is the SELinux cause any performance issues with Magento? Is it good to use SELinux with Magento? 
Please refer SELinux and iptables 

You should do some research based on your requirement and the traffic you are expecting on your website.

---
Problem Solved Click Accept as Solution!:Magento Community India Forum

Re: Magento2 installation

Hello @nmicro70gm7302 

 

This is very broad area to decide all these based on your requirement what you are looking. Its not simple to answer or choose technology. Allow me sometime to answer your queries. 

Manish Mittal
https://www.manishmittal.com/

Re: Magento2 installation

Thanks for your reply and your help.

Re: Magento2 installation

@nmicro70gm7302 

 

1. MariaDB has a larger connection pool supporting up to 200,000+ connections whereas MySQL has smaller connection pool. In MariaDB replication is faster whereas in MySQL replication is slower. 

2. NGINX is about 2.5 times faster than Apache

 

Apart from that, Adobe removed mysql from search only rest application still using mysql. In searh also ID's still coming from mysql or cache and based on id's fetching data from elasticsearch. 

 

For Magento 2.4 yes Elasticsearch is mandatory. 

 

Problem Solved! Click Kudos & Accept as Solution!

Manish Mittal
https://www.manishmittal.com/

Re: Magento2 installation

Hello,

Ubuntu would be better Linux server.

MariaDB is more secure database for Magnet.

Nginx is more secure server compare to Apache.

SELinux does not cause any performance issues with Magento. But Magento does not recommend SELinux, if you want to use SELinux make sure you configure it properly.