Skip to main content

How to Install Magento 2.4 Version 2021


Magento released the latest Magento 2.4 version. Most of the developers face installation problems. We can not install manually Magento 2 using the browser. We required the composer for Magento's latest version installed.

How can we download the Magento 2 latest version?
Go to the Magento official website and go to the download tab.  Click the Latest Magento download
We can install Magento using composer. Go to the bottom of the download page and select the latest Magento 2 version and select the zip formate as per the below screenshot. If you want to include the sample data in tick the checkbox.

How to Install Magento 2.4 Version (2021)


what is the system requirement for Magento 2.4 installation?
  1. Support PHP 7.4
  2. Elasticsearch 7.6.x
  3. MySQL 8.0

What is the main feature in Magento 2.4 version?
  1.   Authorize.Net method integration has been removed from core code
  2.   2FA security featured added for Magento 2 admin panel
  3.   The improvements to core quality.
  4.   Added the 30 security enhancements
  5.   Inventory Management and Progressive Web Applications (PWA Studio) are released independently
  6.   New media gallery
Note: For More information about new featured and changes, Go to the Magento Open Source 2.4.0 Release Notes

Let's start the installation on the Local system
How to Install Magento 2.4 Version (2021)


Start your local server and add the Magento version zip file. Extract the downloaded zip file. Now the database server and create the new database. when I run the project on the browser(http://127.0.0.1/magento24/), I found the below error message

How to Install Magento 2.4 Version (2021)
I am using the mac system. I have given the project folder permission for the above error solution.

sudo chmod -R 777 magento24  Now I got the below message on my screen. So, We need to install Magento using the command line.


How to Install Magento 2.4 Version (2021)

How to install Magento using Command line

Open the system terminal and go to your project root folder As per the below screenshot.

How to Install Magento 2.4 Version (2021)

Now, We need to run the below command in the terminal. Make sure, We need to add all the required and correct server details.


php bin/magento setup:install --base-url="http://127.0.0.1/magento24/" --db-host="127.0.0.1" --db-name="magento24" --db-user="root" --db-password="" --admin-firstname="admin" --admin-lastname="admin" --admin-email="admin@trycoder.com" --admin-user="admin" --admin-password="admin123" --language="en_US" --currency="USD" --timezone="America/Chicago" --use-rewrites="1" --backend-frontname="admin" --elasticsearch-host=127.0.0.1
I found the below error on the server. Because my system's current version is PHP 7.2.33. I need to move PHP 7.4 version using the below command on the Mac system.
How to Install Magento 2.4 Version (2021)

Command : 
export PATH="/usr/local/opt/php@7.4/bin:$PATH"

export PATH="/usr/local/opt/php@7.4/sbin:$PATH"


Now, let's check the current PHP version and run the Magento command. 

How to Install Magento 2.4 Version (2021)

make sure, Before running the Magento command need to validate a connection to Elasticsearch. Otherwise, you will face the below error.

How to Install Magento 2.4 Version (2021)

Note: If you are facing the memory limit issue, then use the "-dmemory_limit=5G", before bin/magento in your command.

How to Install Magento 2.4 Version (2021)

 

After, Run the successful Magento installation command, We need to run the below command.
  1. php -dmemory_limit=5G bin/magento c:c
  2. php -dmemory_limit=5G bin/magento s:up
  3. php -dmemory_limit=5G bin/magento s:d:c
  4. php -dmemory_limit=5G bin/magento s:s:d
  5. sudo chmod -R 777 var var/* pub pub/* generated generated/* app/etc/*
How to Install Magento 2.4 Version (2021)



We will discuss the below point in the next video.
How to install sample data in Magento 2
How to install Elasticsearch in the system and configure it.

Comments

Popular posts from this blog

Introduction to flask

Hello. Welcome to another session on this platform. If you are new here, please do checkout our previous articles on python programming language and stay excited on this session because we are entering into one of python’s web-based application called flask. In this article, we are going to see the following What is flask Prequistes Installation of flask in python Some of flask template engine. What is flask? Flask is one of python-based framework which is used to create web applications. Flight is a very light web framework. During installation, flask comes with pre-installed modules and functions which are used to backup your own web applications. Flask is very easy to understand and perfect go-to for beginners and with flask, a web server can run in less than 3 lines of code. Prequistes Before learning flask, we recommend the reader to have a basic mastery of python concepts. Installation of flask  Before installing flask, we have to checked if python has been installed or. If n...

How to generate random numbers using NumP1

Hello. Welcome to another edition on this platform. For more better understanding, do checkout our YouTube channel to get the video tutorial. In this article of today, we are going to see how to generate random numbers using any of the following methods: Generating a random number Generating a random float and integer Generating random number arrays Generating random number from an array What is a random number? This is a number which cannot be predicted before its occurrence. This number might not different every time. Programmatically, they are two categories of random numbers:     Pseudo-Random numbers       True Random numbers. Just as programs which are written by programmers are a set of instructions, we must follow an algorithm to generate random numbers. Random numbers which are generated using an algorithm are called Pseudo-Random numbers. To generate a true random number, it is important to get the data from sources such as the keyboards, mou...

Introduction to Django

Hello. Welcome to another session on this platform. If you are new here, please do checkout our previous articles on python programming language and stay excited on this session. we are entering into one of python’s application called Django. In this article, we are going to discuss the following: What is Django Why must we use Django  A brief history of Django Installation of Django Popularity of Django What is Django? Python has so many framework application and Django happen to be one of them. Being a python-based-framework, it is used to quickly create web applications.  When building websites, django provides similar ready-made components to handle user authentication, forms, a way to upload components. Why use django? Django is very fast. It takes applications from concept to applications very quickly Django has thousand available packages in it when it is installed. With django, we can launch web applications is a matter of hours. Django is a highly is secured and helps...