{"id":9190,"date":"2021-01-11T13:27:49","date_gmt":"2021-01-11T13:27:49","guid":{"rendered":"https:\/\/cloudkul.com\/blog\/?p=9190"},"modified":"2021-01-11T13:28:48","modified_gmt":"2021-01-11T13:28:48","slug":"how-to-install-magento-ce-2-4-1-on-ubuntu-16-04","status":"publish","type":"post","link":"https:\/\/cloudkul.com\/blog\/how-to-install-magento-ce-2-4-1-on-ubuntu-16-04\/","title":{"rendered":"How to install Magento CE 2.4.1 on ubuntu 16.04"},"content":{"rendered":"\n<p>Magento version 2.4.1 is officially rolled out. You can visit <a href=\"https:\/\/github.com\/magento\/magento2\/releases\/tag\/2.4.1\">GitHub<\/a> to find the source code for Magento.<\/p>\n\n\n\n<p class=\"has-large-font-size\"><strong>What&#8217;s new?<\/strong><\/p>\n\n\n\n<p>Magento Open Source 2.4.1 introduces enhancements to performance and security. <\/p>\n\n\n\n<p>Security enhancements include support for the SameSite attribute for cookies and the addition of CAPTCHA protection for payment-related and order-related API endpoints and the Place Order storefront page.<\/p>\n\n\n\n<p class=\"has-large-font-size\"><strong>Magento 2.4 system requirements<\/strong><\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong>Operating systems (Linux x86-64)<\/strong><\/p>\n\n\n\n<p class=\"has-normal-font-size\">Linux distributions, such as Ubuntu, Debian, RedHat Enterprise Linux (RHEL), CentOS,  and similar.<\/p>\n\n\n\n<p>Magento is not supported on Microsoft Windows and macOS.<\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong>Memory requirement<\/strong><\/p>\n\n\n\n<p>Upgrading the Magento applications and other sources can require up to 2GB of RAM. If you are using a system with less than 2GB of RAM,  your upgrade might fail.<\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong>Supported browsers<\/strong><\/p>\n\n\n\n<ul><li>Microsoft Edge<\/li><li>Mozilla Firefox<\/li><li>Google Chrome<\/li><li>Safari <\/li><\/ul>\n\n\n\n<p class=\"has-medium-font-size\"><strong>Composer<\/strong><\/p>\n\n\n\n<p>Composer is required for developers who wish to contribute to the Magento 2 codebase.<\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong>Web servers<\/strong><\/p>\n\n\n\n<ul><li>Apache 2.4<\/li><li>nginx 1.x<\/li><\/ul>\n\n\n\n<p class=\"has-medium-font-size\"><strong>Database<\/strong><\/p>\n\n\n\n<ul><li>MySQL 8.0<\/li><li>MariaDB 10.4<\/li><\/ul>\n\n\n\n<p class=\"has-medium-font-size\"><strong>PHP<\/strong><\/p>\n\n\n\n<p>Magento supports PHP 7.4.0<\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong>Required PHP extensions<\/strong><\/p>\n\n\n\n<ul><li>ext-bcmath<\/li><li>ext-ctype<\/li><li>ext-curl<\/li><li>ext-dom<\/li><li>ext-gd<\/li><li>ext-hash<\/li><li>ext-iconv<\/li><li>ext-intl<\/li><li>ext-mbstring<\/li><li>ext-openssl<\/li><li>ext-pdo_mysql<\/li><li>ext-simplexml<\/li><li>ext-soap<\/li><li>ext-xsl<\/li><li>ext-zip<\/li><li>ext-sockets<\/li><\/ul>\n\n\n\n<p class=\"has-medium-font-size\"><strong>PHP OPcache<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>PHP OPcache\u00a0is recommended for performance reasons. <\/p><\/blockquote>\n\n\n\n<p><\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong>Elasticsearch<\/strong><\/p>\n\n\n\n<p>As of Magento 2.4.0, MySQL is no longer used for search. You must use Elasticsearch. Magento is tested with Elasticsearch 7.6.x.<\/p>\n\n\n\n<p>Magento no longer supports Elasticsearch 2.x, 5.x, and 6.x.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p class=\"has-large-font-size\"><strong>Create database<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>mysql -u root -p -e &#8220;CREATE DATABASE database_name;&#8221;<\/p><\/blockquote>\n\n\n\n<p><\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong>Some common Magento installation issues:<\/strong><\/p>\n\n\n\n<ol><li>Class &#8216;Locale&#8217; not found<\/li><\/ol>\n\n\n\n<p><\/p>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>To Resolve the above error make sure php-intl extension is installed.<\/p><\/blockquote>\n\n\n\n<p><\/p>\n\n\n\n<p>2.  Fatal error: Maximum function nesting level of &#8220;100&#8221; reached, aborting!<\/p>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>Set the value of xdebug.max_nesting_level to a value of 500 or more in the enabled php.ini and also restart apache2 services after doing the changes.<\/p><\/blockquote>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p class=\"has-huge-font-size\"><strong>Install the Magento using the command line<\/strong><\/p>\n\n\n\n<p><\/p>\n\n\n\n<ol><li>First we need to create a directory using mkdir command followed by directory name.<\/li><\/ol>\n\n\n\n<p><\/p>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>mkdir magento<\/p><\/blockquote>\n\n\n\n<p><\/p>\n\n\n\n<p>2. Now change present working directory to magento using cd command.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>cd magento<\/p><\/blockquote>\n\n\n\n<p><\/p>\n\n\n\n<p>3. Now Download magento using composer.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>composer create-project &#8211;repository-url=https:\/\/repo.magento.com\/ magento\/project-community-edition:2.4.1 .<\/p><\/blockquote>\n\n\n\n<p><\/p>\n\n\n\n<p>4. Now install magento using the command given below after using the proper variables like host, database name, username and password etc<\/p>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>php bin\/magento setup:install &#8211;base-url=http:\/\/localhost\/magento2.4\/ &#8211;db-host=db-host &#8211;db-name=db-name &#8211;db-user=db-user &#8211;db-password=db-password &#8211;admin-firstname=Magento &#8211;admin-lastname=User &#8211;admin-email=user@example.com &#8211;admin-user=admin &#8211;admin-password=admin123 &#8211;language=en_US &#8211;currency=USD &#8211;timezone=America\/Chicago &#8211;use-rewrites=1 &#8211;search-engine=elasticsearch7 &#8211;elasticsearch-host=elastic-host &#8211;elasticsearch-port=elastic-port &#8211;backend-frontname=admin<\/p><\/blockquote>\n\n\n\n<p>once this command is executed successfully output will be similar as shown in the image given below.<\/p>\n\n\n\n<figure class=\"wp-block-gallery columns-1 is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\"><ul class=\"blocks-gallery-grid\"><li class=\"blocks-gallery-item\"><figure><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2021\/01\/Screenshot-from-2021-01-11-17-13-37-1024x576.png\" alt=\"\" data-id=\"9207\" class=\"wp-image-9207\"\/><\/figure><\/li><\/ul><\/figure>\n\n\n\n<p>Now magento is installed successfully, just hit the URL now in the browser.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2021\/01\/Screenshot-from-2021-01-11-17-12-25-1024x576.png\" alt=\"\" class=\"wp-image-9209\"\/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>After installation, 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.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2021\/01\/Screenshot-from-2021-01-11-17-26-01-1024x576.png\" alt=\"\" class=\"wp-image-9210\"\/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>You can log in only after providing the correct email and configure SMTP so that Magento can send an email, in that case, we can disable the two-factor authentication module and set up it later from the admin panel, the command to disable the module is given below-<\/p>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>php bin\/magento module:disable Magento_TwoFactorAuth<\/p><\/blockquote>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Now you can log in to the admin panel.<\/p>\n\n\n\n<p> <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2021\/01\/Screenshot-from-2021-01-11-17-36-53-1024x576.png\" alt=\"\" class=\"wp-image-9217\"\/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>In case of any help or query, please\u00a0<a href=\"https:\/\/cloudkul.com\/contact\/\">contact<\/a>\u00a0us\u00a0or raise a\u00a0<a href=\"https:\/\/webkul.uvdesk.com\/en\/customer\/create-ticket\/\">ticket<\/a>.\u00a0<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Magento version 2.4.1 is officially rolled out. You can visit GitHub to find the source <a class=\"text-primary\" title=\"read more\" href=\"https:\/\/cloudkul.com\/blog\/how-to-install-magento-ce-2-4-1-on-ubuntu-16-04\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":17,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[86,20,21,1],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to install Magento CE 2.4.1 on ubuntu 16.04 - Cloudkul<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/cloudkul.com\/blog\/how-to-install-magento-ce-2-4-1-on-ubuntu-16-04\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to install Magento CE 2.4.1 on ubuntu 16.04 - Cloudkul\" \/>\n<meta property=\"og:description\" content=\"Magento version 2.4.1 is officially rolled out. You can visit GitHub to find the source [...]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/cloudkul.com\/blog\/how-to-install-magento-ce-2-4-1-on-ubuntu-16-04\/\" \/>\n<meta property=\"og:site_name\" content=\"Cloudkul\" \/>\n<meta property=\"article:published_time\" content=\"2021-01-11T13:27:49+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-01-11T13:28:48+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2021\/01\/Screenshot-from-2021-01-11-17-13-37-1024x576.png\" \/>\n<meta name=\"author\" content=\"Nitin Kaushik\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/cloudkul.com\/blog\/how-to-install-magento-ce-2-4-1-on-ubuntu-16-04\/\",\"url\":\"https:\/\/cloudkul.com\/blog\/how-to-install-magento-ce-2-4-1-on-ubuntu-16-04\/\",\"name\":\"How to install Magento CE 2.4.1 on ubuntu 16.04 - Cloudkul\",\"isPartOf\":{\"@id\":\"https:\/\/cloudkul.com\/blog\/#website\"},\"datePublished\":\"2021-01-11T13:27:49+00:00\",\"dateModified\":\"2021-01-11T13:28:48+00:00\",\"author\":{\"@id\":\"https:\/\/cloudkul.com\/blog\/#\/schema\/person\/99e46a85b2ad2848198f6de2c90bcbc4\"},\"breadcrumb\":{\"@id\":\"https:\/\/cloudkul.com\/blog\/how-to-install-magento-ce-2-4-1-on-ubuntu-16-04\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/cloudkul.com\/blog\/how-to-install-magento-ce-2-4-1-on-ubuntu-16-04\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/cloudkul.com\/blog\/how-to-install-magento-ce-2-4-1-on-ubuntu-16-04\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/cloudkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to install Magento CE 2.4.1 on ubuntu 16.04\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/cloudkul.com\/blog\/#website\",\"url\":\"https:\/\/cloudkul.com\/blog\/\",\"name\":\"Cloudkul\",\"description\":\"Host your eCommerce Store on AWS with Optimized Performance\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/cloudkul.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/cloudkul.com\/blog\/#\/schema\/person\/99e46a85b2ad2848198f6de2c90bcbc4\",\"name\":\"Nitin Kaushik\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cloudkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/fdc703824bce4bae43a834dfdf641f46?s=96&d=https%3A%2F%2Fs.gravatar.com%2Favatar%2F6148c37469011bc2f8e491ca8f5de495%3Fs%3D80&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/fdc703824bce4bae43a834dfdf641f46?s=96&d=https%3A%2F%2Fs.gravatar.com%2Favatar%2F6148c37469011bc2f8e491ca8f5de495%3Fs%3D80&r=g\",\"caption\":\"Nitin Kaushik\"},\"url\":\"https:\/\/cloudkul.com\/blog\/author\/nitin-kaushik680\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to install Magento CE 2.4.1 on ubuntu 16.04 - Cloudkul","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:\/\/cloudkul.com\/blog\/how-to-install-magento-ce-2-4-1-on-ubuntu-16-04\/","og_locale":"en_US","og_type":"article","og_title":"How to install Magento CE 2.4.1 on ubuntu 16.04 - Cloudkul","og_description":"Magento version 2.4.1 is officially rolled out. You can visit GitHub to find the source [...]","og_url":"https:\/\/cloudkul.com\/blog\/how-to-install-magento-ce-2-4-1-on-ubuntu-16-04\/","og_site_name":"Cloudkul","article_published_time":"2021-01-11T13:27:49+00:00","article_modified_time":"2021-01-11T13:28:48+00:00","og_image":[{"url":"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2021\/01\/Screenshot-from-2021-01-11-17-13-37-1024x576.png"}],"author":"Nitin Kaushik","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/cloudkul.com\/blog\/how-to-install-magento-ce-2-4-1-on-ubuntu-16-04\/","url":"https:\/\/cloudkul.com\/blog\/how-to-install-magento-ce-2-4-1-on-ubuntu-16-04\/","name":"How to install Magento CE 2.4.1 on ubuntu 16.04 - Cloudkul","isPartOf":{"@id":"https:\/\/cloudkul.com\/blog\/#website"},"datePublished":"2021-01-11T13:27:49+00:00","dateModified":"2021-01-11T13:28:48+00:00","author":{"@id":"https:\/\/cloudkul.com\/blog\/#\/schema\/person\/99e46a85b2ad2848198f6de2c90bcbc4"},"breadcrumb":{"@id":"https:\/\/cloudkul.com\/blog\/how-to-install-magento-ce-2-4-1-on-ubuntu-16-04\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/cloudkul.com\/blog\/how-to-install-magento-ce-2-4-1-on-ubuntu-16-04\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/cloudkul.com\/blog\/how-to-install-magento-ce-2-4-1-on-ubuntu-16-04\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/cloudkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to install Magento CE 2.4.1 on ubuntu 16.04"}]},{"@type":"WebSite","@id":"https:\/\/cloudkul.com\/blog\/#website","url":"https:\/\/cloudkul.com\/blog\/","name":"Cloudkul","description":"Host your eCommerce Store on AWS with Optimized Performance","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/cloudkul.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/cloudkul.com\/blog\/#\/schema\/person\/99e46a85b2ad2848198f6de2c90bcbc4","name":"Nitin Kaushik","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cloudkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/fdc703824bce4bae43a834dfdf641f46?s=96&d=https%3A%2F%2Fs.gravatar.com%2Favatar%2F6148c37469011bc2f8e491ca8f5de495%3Fs%3D80&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/fdc703824bce4bae43a834dfdf641f46?s=96&d=https%3A%2F%2Fs.gravatar.com%2Favatar%2F6148c37469011bc2f8e491ca8f5de495%3Fs%3D80&r=g","caption":"Nitin Kaushik"},"url":"https:\/\/cloudkul.com\/blog\/author\/nitin-kaushik680\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/posts\/9190"}],"collection":[{"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/users\/17"}],"replies":[{"embeddable":true,"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/comments?post=9190"}],"version-history":[{"count":32,"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/posts\/9190\/revisions"}],"predecessor-version":[{"id":9226,"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/posts\/9190\/revisions\/9226"}],"wp:attachment":[{"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/media?parent=9190"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/categories?post=9190"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/tags?post=9190"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}