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.
- Support PHP 7.4
- Elasticsearch 7.6.x
- MySQL 8.0
What is the main feature in Magento 2.4 version?
- Authorize.Net method integration has been removed from core code
- 2FA security featured added for Magento 2 admin panel
- The improvements to core quality.
- Added the 30 security enhancements
- Inventory Management and Progressive Web Applications (PWA Studio) are released independently
- 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
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
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 using Command line
Open the system terminal and go to your project root folder As per the below screenshot.
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.
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.
make sure, Before running the Magento command need to validate a connection to Elasticsearch. Otherwise, you will face the below error.
Note: If you are facing the memory limit issue, then use the "-dmemory_limit=5G", before bin/magento in your command.
After, Run the successful Magento installation command, We need to run the below command.
- php -dmemory_limit=5G bin/magento c:c
- php -dmemory_limit=5G bin/magento s:up
- php -dmemory_limit=5G bin/magento s:d:c
- php -dmemory_limit=5G bin/magento s:s:d
- sudo chmod -R 777 var var/* pub pub/* generated generated/* app/etc/*
We will discuss the below point in the next video.
How to install sample data in Magento 2How to install Elasticsearch in the system and configure it.
Comments
Post a Comment
Please do not enter any spam link in the comment box.