{"id":272570,"date":"2020-11-02T09:29:33","date_gmt":"2020-11-02T09:29:33","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=272570"},"modified":"2024-08-06T14:17:59","modified_gmt":"2024-08-06T14:17:59","slug":"magento-2-4-evironment-setup","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/magento-2-4-evironment-setup\/","title":{"rendered":"Adobe Commerce (Magento) 2.4 Environment Setup Installation on Ubuntu"},"content":{"rendered":"\n<p><strong>Let&#8217;s start configuring environment to install Adobe commerce (Magento) 2.4 on Ubuntu.<\/strong><\/p>\n\n\n\n<p>Recent version of Adobe commerce (Magento 2)requires some special configuration from other versions so i have explained the required configuration on fresh Ubuntu. By following the below command step by step we can setup the environment properly.<\/p>\n\n\n\n<p>To install Apache 2.4 you can go through this url<\/p>\n\n\n\n<p><a href=\"https:\/\/devdocs.magento.com\/guides\/v2.4\/install-gde\/prereq\/apache.html\">Configure Apache 2.4<\/a><\/p>\n\n\n\n<p>To check system requirements as per the Adobe Commerce (Magento 2) version, you can click: <a href=\"https:\/\/experienceleague.adobe.com\/docs\/commerce-operations\/installation-guide\/system-requirements.html\">https:\/\/experienceleague.adobe.com\/docs\/commerce-operations\/installation-guide\/system-requirements.html<\/a>.<\/p>\n\n\n\n<p><strong>Install PHP version 7.4\/8.1<\/strong>(based on Adobe Commerce (Magento 2) version) by following commands.<\/p>\n\n\n\n<p>All of the commands requires sudo access so run sudo su first<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">1. $ apt install software-properties-common\n\n2. $ add-apt-repository ppa:ondrej\/php\n\n3. $ apt update\n\n4. $ apt install php7.4<\/pre>\n\n\n\n<p><strong>PHP-7.4 required extensions <\/strong>must be installed before installing Adobe commerce (Magento 2)<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">1. $ apt-get install php7.4-{gd,curl,intl,bcmath,ctype,dom,iconv,mbstring,simplexml,soap,xsl,zip}\n\n2. $ apt-get install php7.4-mysql<\/pre>\n\n\n\n<p>Install <strong>MySQL 8.0<\/strong> by following commands<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">1. $ wget https:\/\/repo.mysql.com\/\/mysql-apt-config_0.8.10-1_all.deb\n\n2. $ dpkg -i mysql-apt-config_0.8.10-1_all.deb\n\n3. $ apt-get update\n\n4. $ apt-get install mysql-server<\/pre>\n\n\n\n<p><strong> Composer<\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">1. $ php -r &quot;copy(&#039;https:\/\/getcomposer.org\/installer&#039;, &#039;composer-setup.php&#039;);&quot;\n\n2. $ php composer-setup.php --version=1.10.16\n\n3. $ mv composer.phar \/usr\/local\/bin\/composer<\/pre>\n\n\n\n<p><br><strong>Note:<\/strong> The composer version may vary as per Adobe commerce (Magento) version.<\/p>\n\n\n\n<ol class=\"wp-block-list\"><\/ol>\n\n\n\n<p>Disable old version php and enable new latest<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">1. $ a2dismod php7.2\n\n2. $ a2enmod php7.4<\/pre>\n\n\n\n<p><strong>Install Elasticsearch<\/strong> by the following commands<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">1. $ apt-get -y update\n\n2. $ apt-get install -y openjdk-8-jdk\n\n3. $ java -version\n\n4. $ curl -fsSL https:\/\/artifacts.elastic.co\/GPG-KEY-elasticsearch | sudo apt-key add -\n\n5. $ echo &quot;deb https:\/\/artifacts.elastic.co\/packages\/7.x\/apt stable main&quot; | sudo tee -a \/etc\/apt\/sources.list.d\/elastic-7.x.list\n\n6. $ apt update\n\n7. $ sudo apt install elasticsearch<\/pre>\n\n\n\n<p><a href=\"https:\/\/devdocs.magento.com\/guides\/v2.4\/install-gde\/prereq\/es-config-apache.html#es-apache-proxy-24\" target=\"_blank\" rel=\"noreferrer noopener\">Configure Apache and Elasticsearch<\/a><\/p>\n\n\n\n<ol class=\"wp-block-list\"><\/ol>\n\n\n\n<p>Now you can install Adobe Commerce (Magento) 2.4 by following the urls.<\/p>\n\n\n\n<p>=> <a href=\"https:\/\/devdocs.magento.com\/guides\/v2.4\/install-gde\/composer.html\">Install Adobe commerce (Magento 2) using composer<\/a> <\/p>\n\n\n\n<p>=> <a href=\"https:\/\/webkul.com\/blog\/installing-magento2-4\/\" target=\"_blank\" rel=\"noreferrer noopener\">Install Adobe Commerce (Magento 2)<\/a><\/p>\n\n\n\n<p>If you need any technical assistance, please email us at <a href=\"mailto:support@webkul.com\">support@webkul.com<\/a>. Additionally, explore numerous solutions to enhance your online store by visiting the <a href=\"https:\/\/store.webkul.com\/Magento-2.html\">Adobe Commerce plugins<\/a> section.<\/p>\n\n\n\n<p>For expert guidance or to develop unique custom features, Hire <a href=\"https:\/\/webkul.com\/hire-magento-developers\/\">Adobe Commerce Developers<\/a> for your project.<\/p>\n\n\n\n<p>Thanks for reading.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Let&#8217;s start configuring environment to install Adobe commerce (Magento) 2.4 on Ubuntu. Recent version of Adobe commerce (Magento 2)requires some special configuration from other versions so i have explained the required configuration on fresh Ubuntu. By following the below command step by step we can setup the environment properly. To install Apache 2.4 you can <a href=\"https:\/\/webkul.com\/blog\/magento-2-4-evironment-setup\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9121,1],"tags":[2070],"class_list":["post-272570","post","type-post","status-publish","format-standard","hentry","category-magento-2","category-uncategorized","tag-magento2"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Adobe Commerce Environment Setup Installation on Ubuntu<\/title>\n<meta name=\"description\" content=\"Configuring environment to install Magento 2.4 on Ubuntu. Before you install Magento, you must do all of the following. will help you to setup\" \/>\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\/magento-2-4-evironment-setup\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Adobe Commerce Environment Setup Installation on Ubuntu\" \/>\n<meta property=\"og:description\" content=\"Configuring environment to install Magento 2.4 on Ubuntu. Before you install Magento, you must do all of the following. will help you to setup\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/magento-2-4-evironment-setup\/\" \/>\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-11-02T09:29:33+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-08-06T14:17:59+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=\"Abhishek Singh\" \/>\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=\"Abhishek Singh\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/magento-2-4-evironment-setup\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/magento-2-4-evironment-setup\/\"},\"author\":{\"name\":\"Abhishek Singh\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/573e459f54796eb4195511990de4bfd0\"},\"headline\":\"Adobe Commerce (Magento) 2.4 Environment Setup Installation on Ubuntu\",\"datePublished\":\"2020-11-02T09:29:33+00:00\",\"dateModified\":\"2024-08-06T14:17:59+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/magento-2-4-evironment-setup\/\"},\"wordCount\":230,\"commentCount\":4,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"keywords\":[\"Magento2\"],\"articleSection\":[\"Magento 2\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/magento-2-4-evironment-setup\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/magento-2-4-evironment-setup\/\",\"url\":\"https:\/\/webkul.com\/blog\/magento-2-4-evironment-setup\/\",\"name\":\"Adobe Commerce Environment Setup Installation on Ubuntu\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"datePublished\":\"2020-11-02T09:29:33+00:00\",\"dateModified\":\"2024-08-06T14:17:59+00:00\",\"description\":\"Configuring environment to install Magento 2.4 on Ubuntu. Before you install Magento, you must do all of the following. will help you to setup\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/magento-2-4-evironment-setup\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/magento-2-4-evironment-setup\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/magento-2-4-evironment-setup\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Adobe Commerce (Magento) 2.4 Environment Setup Installation on Ubuntu\"}]},{\"@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\/573e459f54796eb4195511990de4bfd0\",\"name\":\"Abhishek Singh\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d4ac7e0e671bf743359d7e3f140c262d1b16d71106f0a1aeaecca327a2805ae4?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\/d4ac7e0e671bf743359d7e3f140c262d1b16d71106f0a1aeaecca327a2805ae4?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Abhishek Singh\"},\"description\":\"Adobe Commerce certified Magento developer with over 12 years of experience at Webkul. Passionate about scalable Magento 2-based webshops, AI, and multi-channel integrations, Abhishek consistently delivers innovative and efficient e-commerce solutions that propel businesses forward.\",\"sameAs\":[\"http:\/\/webkul.com\"],\"url\":\"https:\/\/webkul.com\/blog\/author\/abhishek\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Adobe Commerce Environment Setup Installation on Ubuntu","description":"Configuring environment to install Magento 2.4 on Ubuntu. Before you install Magento, you must do all of the following. will help you to setup","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\/magento-2-4-evironment-setup\/","og_locale":"en_US","og_type":"article","og_title":"Adobe Commerce Environment Setup Installation on Ubuntu","og_description":"Configuring environment to install Magento 2.4 on Ubuntu. Before you install Magento, you must do all of the following. will help you to setup","og_url":"https:\/\/webkul.com\/blog\/magento-2-4-evironment-setup\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2020-11-02T09:29:33+00:00","article_modified_time":"2024-08-06T14:17:59+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":"Abhishek Singh","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Abhishek Singh","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/magento-2-4-evironment-setup\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/magento-2-4-evironment-setup\/"},"author":{"name":"Abhishek Singh","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/573e459f54796eb4195511990de4bfd0"},"headline":"Adobe Commerce (Magento) 2.4 Environment Setup Installation on Ubuntu","datePublished":"2020-11-02T09:29:33+00:00","dateModified":"2024-08-06T14:17:59+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/magento-2-4-evironment-setup\/"},"wordCount":230,"commentCount":4,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"keywords":["Magento2"],"articleSection":["Magento 2"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/magento-2-4-evironment-setup\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/magento-2-4-evironment-setup\/","url":"https:\/\/webkul.com\/blog\/magento-2-4-evironment-setup\/","name":"Adobe Commerce Environment Setup Installation on Ubuntu","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"datePublished":"2020-11-02T09:29:33+00:00","dateModified":"2024-08-06T14:17:59+00:00","description":"Configuring environment to install Magento 2.4 on Ubuntu. Before you install Magento, you must do all of the following. will help you to setup","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/magento-2-4-evironment-setup\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/magento-2-4-evironment-setup\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/magento-2-4-evironment-setup\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Adobe Commerce (Magento) 2.4 Environment Setup Installation on Ubuntu"}]},{"@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\/573e459f54796eb4195511990de4bfd0","name":"Abhishek Singh","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/d4ac7e0e671bf743359d7e3f140c262d1b16d71106f0a1aeaecca327a2805ae4?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\/d4ac7e0e671bf743359d7e3f140c262d1b16d71106f0a1aeaecca327a2805ae4?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Abhishek Singh"},"description":"Adobe Commerce certified Magento developer with over 12 years of experience at Webkul. Passionate about scalable Magento 2-based webshops, AI, and multi-channel integrations, Abhishek consistently delivers innovative and efficient e-commerce solutions that propel businesses forward.","sameAs":["http:\/\/webkul.com"],"url":"https:\/\/webkul.com\/blog\/author\/abhishek\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/272570","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\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=272570"}],"version-history":[{"count":19,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/272570\/revisions"}],"predecessor-version":[{"id":456560,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/272570\/revisions\/456560"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=272570"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=272570"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=272570"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}