{"id":261347,"date":"2020-07-29T13:31:37","date_gmt":"2020-07-29T13:31:37","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=261347"},"modified":"2024-03-11T13:05:20","modified_gmt":"2024-03-11T13:05:20","slug":"installing-magento2-4","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/installing-magento2-4\/","title":{"rendered":"Installing Magento 2.4"},"content":{"rendered":"\n<p>Hi, Magento 2.4 has been launched on 28th July 2020. You can read the release notes from <a href=\"https:\/\/devdocs.magento.com\/guides\/v2.4\/release-notes\/bk-release-notes.html\">here<\/a>. <\/p>\n\n\n\n<p>While installing Magento 2.4 I faced some issues here I am going to explain that. <\/p>\n\n\n\n<p>Most people install Magento using the web UI, but now in Magento 2.4, you can only install it via CLI. <\/p>\n\n\n\n<p>Using the <a href=\"https:\/\/store.webkul.com\/Magento2-Elasticsearch.html\" target=\"_blank\" rel=\"noreferrer noopener\">Magento 2 Elastic Search<\/a> now your customers can easily search using the fastest search engine.<\/p>\n\n\n\n<p>You can check its server requirements from <a href=\"https:\/\/devdocs.magento.com\/guides\/v2.4\/install-gde\/system-requirements-tech.html\">here<\/a>. Magento 2.4 is recommended to install on PHP 7.4 even it can be installed on 7.3 but it is not recommended, also apache 2.4 which is the same as the old version, and now you have to upgrade your MySQL version to the latest MySQL 8.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/cloudkul.com\/blog\/how-to-install-magento-2-on-aws\/\" target=\"_blank\" rel=\"noreferrer noopener\">Step by step installation of Magento 2.4.1 at AWS<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/cloudkul.com\/blog\/how-to-install-magento-ce-2-4-1-on-ubuntu-16-04\/\" target=\"_blank\" rel=\"noreferrer noopener\">Step by step installation of Magento 2.4<\/a><\/li>\n<\/ul>\n\n\n\n<h2>Note:<\/h2>\n\n\n\n<p>But even after upgrading above and all the PHP required extensions, you need to configure and install elastic search 7.6.x on your system, or any other server to install Magento 2.4 because elastic search is now the default search engine for Magento frontend, so now you cannot install Magento without the elastic search.<\/p>\n\n\n\n<p>Lets see step by step how to install Magento 2.4 from CLI:<\/p>\n\n\n\n<p>  <\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\"># first check if elastic server is installed \n# using curl elastic-server-ip:port\n# for example\ncurl localhost:9200\n# will output server info if started otherwise start the server\n\n# now download Magento2.4 using composer\nmkdir DIRECTORY_WHERE_YOU_WANT_TO_INSTALL\ncd DIRECTORY_WHERE_YOU_WANT_TO_INSTALL\ncomposer create-project --repository-url=https:\/\/repo.magento.com\/ magento\/project-community-edition:2.4.0 .\n# after downloading Magento now use below command to install it \nphp bin\/magento setup:install --base-url=http:\/\/your-host\/m2.4\/ \\\n--db-host=db-host --db-name=db-name --db-user=db-user --db-password=db-password \\\n--admin-firstname=Magento --admin-lastname=User --admin-email=user@example.com \\\n--admin-user=admin --admin-password=admin123 --language=en_US \\\n--currency=USD --timezone=America\/Chicago --use-rewrites=1 \\\n--search-engine=elasticsearch7 --elasticsearch-host=elastic-host \\\n--elasticsearch-port=elastic-port --backend-frontname=admin\n# now your magento is ready for development<\/pre>\n\n\n\n<p> Another thing to note Magento 2.4 is not installable on Windows or Mac, it is now only supported in Linux distributions such as CentOS, Ubuntu, Debian and similar.<\/p>\n\n\n\n<p>Another issue that you will face, after installation is done, you will not be able to login Magento admin panel because in Magento2.4 two-factor authentication is installed and it will not let you log in until you provide the correct email and configure SMTP so that Magento can send an email, in that case, the only solution I found is to disable the two-factor authentication module:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">php bin\/magento module:disable Magento_TwoFactorAuth<\/pre>\n\n\n\n<p>Thanks \ud83d\ude42 .<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hi, Magento 2.4 has been launched on 28th July 2020. You can read the release notes from here. While installing Magento 2.4 I faced some issues here I am going to explain that. Most people install Magento using the web UI, but now in Magento 2.4, you can only install it via CLI. Using the <a href=\"https:\/\/webkul.com\/blog\/installing-magento2-4\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":33,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[302],"tags":[7127,2070],"class_list":["post-261347","post","type-post","status-publish","format-standard","hentry","category-magento2","tag-awsamazon-web-service","tag-magento2"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Installing Magento 2.4 - Webkul Blog<\/title>\n<meta name=\"description\" content=\"So Magento 2.4 is recommended to install on php 7.4 although it can be installed on 7.3 but it is not recommended, also apache 2.4 which is same as old version, and now you have to your mysql version to latest mysql 8.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/webkul.com\/blog\/installing-magento2-4\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Installing Magento 2.4 - Webkul Blog\" \/>\n<meta property=\"og:description\" content=\"So Magento 2.4 is recommended to install on php 7.4 although it can be installed on 7.3 but it is not recommended, also apache 2.4 which is same as old version, and now you have to your mysql version to latest mysql 8.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/installing-magento2-4\/\" \/>\n<meta property=\"og:site_name\" content=\"Webkul Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webkul\/\" \/>\n<meta property=\"article:published_time\" content=\"2020-07-29T13:31:37+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-03-11T13:05:20+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-og.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Ashutosh Srivastava\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webkul\" \/>\n<meta name=\"twitter:site\" content=\"@webkul\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ashutosh Srivastava\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/installing-magento2-4\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/installing-magento2-4\/\"},\"author\":{\"name\":\"Ashutosh Srivastava\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/5555025750ec4e4df34fadc78b083970\"},\"headline\":\"Installing Magento 2.4\",\"datePublished\":\"2020-07-29T13:31:37+00:00\",\"dateModified\":\"2024-03-11T13:05:20+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/installing-magento2-4\/\"},\"wordCount\":288,\"commentCount\":3,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"keywords\":[\"AWS(Amazon Web Service)\",\"Magento2\"],\"articleSection\":[\"Magento2\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/installing-magento2-4\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/installing-magento2-4\/\",\"url\":\"https:\/\/webkul.com\/blog\/installing-magento2-4\/\",\"name\":\"Installing Magento 2.4 - Webkul Blog\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"datePublished\":\"2020-07-29T13:31:37+00:00\",\"dateModified\":\"2024-03-11T13:05:20+00:00\",\"description\":\"So Magento 2.4 is recommended to install on php 7.4 although it can be installed on 7.3 but it is not recommended, also apache 2.4 which is same as old version, and now you have to your mysql version to latest mysql 8.\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/installing-magento2-4\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/installing-magento2-4\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/installing-magento2-4\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Installing Magento 2.4\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webkul.com\/blog\/#website\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"name\":\"Webkul Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webkul.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webkul.com\/blog\/#organization\",\"name\":\"WebKul Software Private Limited\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"width\":380,\"height\":380,\"caption\":\"WebKul Software Private Limited\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webkul\/\",\"https:\/\/x.com\/webkul\",\"https:\/\/www.instagram.com\/webkul\/\",\"https:\/\/www.linkedin.com\/company\/webkul\",\"https:\/\/www.youtube.com\/user\/webkul\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/5555025750ec4e4df34fadc78b083970\",\"name\":\"Ashutosh Srivastava\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/2f5312e6903909ffeb33aa5eb38e1c0bed8f498f92144f5f84065adf7e8708a6?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/2f5312e6903909ffeb33aa5eb38e1c0bed8f498f92144f5f84065adf7e8708a6?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Ashutosh Srivastava\"},\"sameAs\":[\"http:\/\/webkul.com\"],\"url\":\"https:\/\/webkul.com\/blog\/author\/ashutosh\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Installing Magento 2.4 - Webkul Blog","description":"So Magento 2.4 is recommended to install on php 7.4 although it can be installed on 7.3 but it is not recommended, also apache 2.4 which is same as old version, and now you have to your mysql version to latest mysql 8.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/webkul.com\/blog\/installing-magento2-4\/","og_locale":"en_US","og_type":"article","og_title":"Installing Magento 2.4 - Webkul Blog","og_description":"So Magento 2.4 is recommended to install on php 7.4 although it can be installed on 7.3 but it is not recommended, also apache 2.4 which is same as old version, and now you have to your mysql version to latest mysql 8.","og_url":"https:\/\/webkul.com\/blog\/installing-magento2-4\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2020-07-29T13:31:37+00:00","article_modified_time":"2024-03-11T13:05:20+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-og.png","type":"image\/png"}],"author":"Ashutosh Srivastava","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Ashutosh Srivastava","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/installing-magento2-4\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/installing-magento2-4\/"},"author":{"name":"Ashutosh Srivastava","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/5555025750ec4e4df34fadc78b083970"},"headline":"Installing Magento 2.4","datePublished":"2020-07-29T13:31:37+00:00","dateModified":"2024-03-11T13:05:20+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/installing-magento2-4\/"},"wordCount":288,"commentCount":3,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"keywords":["AWS(Amazon Web Service)","Magento2"],"articleSection":["Magento2"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/installing-magento2-4\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/installing-magento2-4\/","url":"https:\/\/webkul.com\/blog\/installing-magento2-4\/","name":"Installing Magento 2.4 - Webkul Blog","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"datePublished":"2020-07-29T13:31:37+00:00","dateModified":"2024-03-11T13:05:20+00:00","description":"So Magento 2.4 is recommended to install on php 7.4 although it can be installed on 7.3 but it is not recommended, also apache 2.4 which is same as old version, and now you have to your mysql version to latest mysql 8.","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/installing-magento2-4\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/installing-magento2-4\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/installing-magento2-4\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Installing Magento 2.4"}]},{"@type":"WebSite","@id":"https:\/\/webkul.com\/blog\/#website","url":"https:\/\/webkul.com\/blog\/","name":"Webkul Blog","description":"","publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webkul.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webkul.com\/blog\/#organization","name":"WebKul Software Private Limited","url":"https:\/\/webkul.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","width":380,"height":380,"caption":"WebKul Software Private Limited"},"image":{"@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webkul\/","https:\/\/x.com\/webkul","https:\/\/www.instagram.com\/webkul\/","https:\/\/www.linkedin.com\/company\/webkul","https:\/\/www.youtube.com\/user\/webkul\/"]},{"@type":"Person","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/5555025750ec4e4df34fadc78b083970","name":"Ashutosh Srivastava","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/2f5312e6903909ffeb33aa5eb38e1c0bed8f498f92144f5f84065adf7e8708a6?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/2f5312e6903909ffeb33aa5eb38e1c0bed8f498f92144f5f84065adf7e8708a6?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Ashutosh Srivastava"},"sameAs":["http:\/\/webkul.com"],"url":"https:\/\/webkul.com\/blog\/author\/ashutosh\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/261347","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/users\/33"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=261347"}],"version-history":[{"count":14,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/261347\/revisions"}],"predecessor-version":[{"id":486896,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/261347\/revisions\/486896"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=261347"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=261347"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=261347"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}