Magento 2.4 Installation Guide: How to Install Magento 2.4.2

Magento 2.4.2 has been released and this new version of 2.4 series which contains lot of the improvements in this Magento performance and security which helps to make it significant platform for eCommerce or online shopping website framework.

This additional Magento 2.4 Security enhancements has included expansion of support for the SameSite attribute for all cookies. And there are also added one most awaited functionality which is Elasticsearch 7.9.x and Redis 6.x which will helps to those organisation which used Magento open source platform.

 

Additional Improvements in Magento 2.4 Infrastructure

Magento 2.4 series contains some additional core enhancements in order to enhancements of the core  quality, which additionally help to improve the quality of the Framework.

Magento 2.4 Enhancements Components:

  • Customer Account
  • Catalog
  • CMS
  • OMS
  • Import/Export
  • Promotions
  • Targeting
  • Cart
  • Checkout.

Performance Enhancements in Magento 2.4.2

Magento 2.4.2 release some code enhancements which help to improve the Magento performance and admin response time for deployments which will able to handle the large catalogs with good performance. These all scalability and enhancements in Magento 2.4.2 help to enable the natively support complex catalogs up to 20x larger than in previous releases of Magento 2.4.1-p1.

 

Why Elasticsearch Added in Magento 2.4

Magento 2.4 now much more scalable than the previous version of M2.3. Now Magento scalability and speed for the search content can be employed for a number of use cases such as:

  • Website search
  • Application search
  • Create Several Inverted Indices Tables
  • Enterprise search
  • Full Text search (documents instead of tables or schemas)
  • Infrastructure metrics & container monitoring
  • Data Analysis and Visualization
  • Document-oriented
  • Logging & log analytics
  • RESTful API
  • Distributed Approach
  • Application performance monitoring
  • Security analytics
  • Geospatial data analysis & visualisation
  • Business analytics

 

Complete Installation Guide for Magento 2.4.2

Here we are going to provide you the details for the all version of Magento 2.4 series installation. This Magento 2.4 installation guide will help you to install all version like Magento 2.4.0 Installation or Magento 2.4.0-p1 Installation or Magento 2.4.1 Installation or Magento 2.4.1-p1 Installation or Magento 2.4.2 Installation.

Download Magento 2.4 series

 

System Requirements for Magento 2.4

Magento 2.4 Supported Operating Systems (Linux x86-64)

Linux distributions, such as:

  • RedHat Enterprise
  • Linux (RHEL)
  • CentOS
  • Ubuntu
  • Debian
  • and similar.

Note: Magento organization does not recommend to install Magento 2.4 on Microsoft Windows and macOS, Which means does not support.

Memory Requirement for Magento 2.4 Installation

Upgrading the Magento applications and extensions you need minimum  up to 2GB of RAM. Less than this might cause your upgrade fail.

Install Apache2 Server

sudo apt update
sudo apt install apache2

apache2 Version check

Install PHP 7.4 Version

sudo apt update
Add PHP PPA Repository
sudo apt -y install software-properties-common
sudo add-apt-repository ppa:ondrej/php7.4
sudo apt-get update
Run this command in Ubuntu 20.04
sudo apt install php php-cli php-fpm php-json php-common php-mysql php-zip php-gd php-mbstring php-curl php-xml php-pear php-bcmath
Run this command in Ubuntu 18.04
sudo apt -y install php7.4

Check PHP Version

Install Elasticsearch in Ubuntu 18.04

After complete installation of elasticsearch in Ubuntu output will be look like the below screen. You can verify the output by typing localhost:9200 in the browser.

Step by Step guide for how to install the Elasticsearch in Ubuntu 

Elasticsearch Running Result

 

Composer Requirements of Magento 2.4 Installation

Magento 2.4 series recommended composer is v2.0.12 but you can use composer version v1 also but its is not recommended by Magento.

Download Composer v2.0.12 or latest version for Windows installation or Ubuntu Installation

For the windows installer you need to install PHP first then you have to set the path environment variable that will provide you accessibility from any directory of your computer.

Command Line Installation of Latest Version of Composer

You just have to copy the following command and run in to the current directory where you want to install the Magento.

php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('sha384', 'composer-setup.php') === '756890a4488ce9024fc62c56153228907f1545c228516cbf63f885e036d37e9a59d27d63f46af1d4d07ee0f76181c7d3') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"

 

After complete installation of composer in your system you will see like this when you type command composer in the terminal then you will see something like this.

Composer Version Check

Now you our system is ready for installation of Magento 2.4.2. Just you have to run the below command and make sure you have changed the database name, data base password etc as per your requirements.

composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition <install-directory-name>
composer create-project --repository-url=https://repo.magento.com/ magento/project-enterprise-edition=2.4.2 magento

Change the magento version according to your requirements. Here we have chosen Magento 2.4.2 but you can choose other version of Magento 2.4 also.

php bin/magento setup:install --base-url=http://localhost/Magento/242/ \ --db-host=localhost --db-name=2421 --db-user=root --db-password=root \ --admin-firstname=admin --admin-lastname=admin --admin-email=cs.hemantsing@gmail.com \ --admin-user=admin --admin-password=Amin@123 --language=en_US \ --currency=USD --timezone=America/Chicago --use-rewrites=1 \ --search-engine=elasticsearch7 --elasticsearch-host=localhost \ --elasticsearch-port=9200

 

Magento 2.4 installation Command

 

Once your installation will complete then it will show the result like this. In Magento 2.4 Installation the admin panel will be decided by the magento.

 

Complete Magento 2.4 Installation

 

Here you can see the admin side of Magento 2.4.2 after the fresh installation of Magento 2.4.2

 

Magento 2.4.2 Admin Side

 

Here you can check the version of Magento 2.4 Installation

 

Magento 2.4.2 Installation

 

You can check the List of Best Magento 2 website in the world.

Magento Store: Best 36 Magento Websites Example in The World

Leave a Reply

Your email address will not be published. Required fields are marked *