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

JavaScript Functions

  Hi there, and welcome to another exciting lesson on JavaScript. If this is your first time here, please do well to check out our previous lessons. In the previous lesson, we were discussing JavaScript math methods. It was very intuitive as we got to learn how to use the various math methods. To proceed, we shall be looking at JavaScript functions.  A function in JavaScript like in every other programming language could be defined as a block of code that is written to perform a particular task, and this function is usually invoked or called before it is being implemented. We have been talking about methods throughout the previous lessons right. Do you know that those methods are actually functions? Yes they are functions. You can now have an overview of the importance of functions in every programming language. How do we create a function in JS? To create a function, you follow the format function functionName(Argument) {//Block of code }. Some functions do have a return val...

JavaScript Math Methods

Hello everyone, and welcome to another exciting JavaScript lesson. In the last lessons you have been seeing other methods being used in JS (for example, the string methods). We shall go further into exploring other methods. This time, it’s going to be math methods. Do not move an inch because it’s going to be a very exciting. Before we look at what a math method is, let’s have an overview of math objects. A math object in JavaScript is a static built-in object that includes properties and methods used in performing mathematical tasks. Talking about math properties, they have the syntax Math.property . Some examples are Math.E that returns Euler’s number, Math.PI that returns PI, Math.LN2 that returns the natural logarithm of 2, and many others. The various JavaScript methods contained in the math object, thus, make mathematical operations easier and reduce effort as well as time in math-oriented programming. Some JS methods include abs( ), ceil( ), cos( ), sqrt( ), pow( ), log( ) ...

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...