Showing results for 
Search instead for 
Did you mean: 

Installing Magento 2.4

Installing Magento 2.4

I am trying to install Magento 2.4 in my localhost.  First I download Magento 2.4 using below command.

composer create-project --repository-url= magento/project-community-edition magentotest

I tried to install Magento 2.4 using below command.

php bin/magento setup:install --base-url= \
--db-host=localhost --db-name=magentotest --db-user=root --db-password=root \
--admin-firstname=Magento --admin-lastname=User \
--admin-user=admin --admin-password=admin123 --language=en_US \
--currency=USD --timezone=America/Chicago --use-rewrites=1 \
--search-engine=elasticsearch7 \

But I am getting below screen while trying to browse Magento 2.4

What is the solution ?


Re: Installing Magento 2.4

Hello @foysal 


Did the second step (installation) complete with no error ?
if Yes, then run below commands :


chmod -R 777 var/ generated/ pub/static/ pub/media/
php bin/magento deploy:mode:set developer
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy -f
php bin/magento setup:di:compile
php bin/magento cache:flush
chmod -R 777 var/ generated/ pub/static/ pub/media/

and then hit in your browser.

Hope it may resolve your problem.


Problem Solved ? Click on 'Kudos' & Accept as Solution ! Smiley Happy

Re: Installing Magento 2.4

Thanks @gaurav_harsh1 .

I am getting below error.

Re: Installing Magento 2.4



Elasticsearch is missing from your server, you can install it for Ubuntu by following this article :


-- and for Mac, you can just download by brew command:

brew install elasticsearch

and later restart you server after installing and check if elastic search service is running in background.

Problem Solved ? Click on 'Kudos' & Accept as Solution ! Smiley Happy

Re: Installing Magento 2.4

Thanks @gaurav_harsh1 . ElasticSearch and JDK is running.

Re: Installing Magento 2.4

Thanks for the detailed information about the installation.

aos tv apk

Re: Installing Magento 2.4



try changing elasticsearch-host to 



To start the verification, you can run this curl command below to validate your ElasticSearch, you can change the host elasticsearch to your host.

curl elasticsearch:9200
Problem Solved ? Click on 'Kudos' & Accept as Solution ! Smiley Happy

Re: Installing Magento 2.4

@gaurav_harsh1  So tell me, how do you install ElasticSearch on a shared server, only 80% of the world's hosted websites, but hey Adobe is appealing to 20% and the remaining can go to Shopify!?  Oh wait Shopify is HUGE and trading at $1,038.88 and Adobe is trading at $472.00...


Adobe is killing Magento by FORCING everyone to go to ElasticSearch, someone at Adobe has interest/stock/ownership at ElasticSearch because forcing this stupid RAM hog on us is plain STUPID!


So being that SiteGround is in the process of backing out of Magento Support, I'm working with them right this second and they are NOT going to support Elastic Search on a server because it's a resource hog... Shopify, WooCommerce, PrestaShop, Joomla, Drupal, etc. etc. here we come!


Again, number don't lie; Adobe - $472.00, Shopify - $1,038.88


Do you honestly think Adobe is going to be around in 10 years?  NOPE, a few people internally are catering to themselves, while Shopify realizes 100% of SMB businesses need to be online WITHOUT huge technical BS.


FYI, we've been on Magento since 1.7 and promoting it to all of our clients and at this point, we are heading to Prestashop, a ecommerce platform that works for 90% of SMB, something that Magento use to cater too.

Re: Installing Magento 2.4

I am in planning to replace the wordpress and install magento in my branded website, but i am well with wordpress. And it's customization i know at all. I am just want to update the new cms like magento. I am only have little knowledge on programming. Can in isntall and can be learn magento as quick as possible. please give any good resources to learn the magento in whole in quick time. I am using apache server, and mysq database. I want to migrate all content too. Please reply with a valid answer please.


Re: Installing Magento 2.4

This videos how to Install Magento 2.4 with sample data