{"id":314660,"date":"2021-12-10T14:06:26","date_gmt":"2021-12-10T14:06:26","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=314660"},"modified":"2021-12-10T14:08:37","modified_gmt":"2021-12-10T14:08:37","slug":"configuration-of-env-file-in-shopware","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/configuration-of-env-file-in-shopware\/","title":{"rendered":"Configuration of .env File in Shopware"},"content":{"rendered":"\n<p>In this blog we will know about &#8220;Configuration of .env File in Shopware.&#8221;<\/p>\n\n\n\n<p>I<strong>ntroduction<\/strong><\/p>\n\n\n\n<p><a rel=\"noreferrer noopener\" href=\"https:\/\/webkul.com\/blog\/point-of-sale-system-for-shopware\/\" target=\"_blank\">Shopware<\/a>&nbsp;is a leading Germany based e-commerce platform. Till the date, the platform has received more than 80 thousand users. Shopware is an open-source eCommerce framework. <\/p>\n\n\n\n<p>Meanwhile, the features which are taking this Plateform to prime levels are&nbsp;<strong>content management<\/strong>,&nbsp;<strong>Multi-warehouse system<\/strong>, and <strong>many more<\/strong>.<\/p>\n\n\n\n<p>Shopware is now starting to enter new European nations and is making a big impact in the UK. You can check here other Shopware modules \u2013&nbsp;<a rel=\"noreferrer noopener\" href=\"https:\/\/store.webkul.com\/Shopware.html\" target=\"_blank\">https:\/\/store.webkul.com\/Shopware.html<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Overview<\/h3>\n\n\n\n<p>Here we will understand about Configuration of .env File in Shopware. We will also see how admin and front page will open after configuration.                     <\/p>\n\n\n\n<h3 class=\"wp-block-heading\">.env file location<\/h3>\n\n\n\n<p>It founds in root directory where shopware installed. If this file doesn&#8217;t shows in directory then hit the <strong>ctrl+h<\/strong> Button.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/12\/env2.png-1366%C3%97768.png\" alt=\"env2.png-1366\u00d7768\" class=\"wp-image-314666\" loading=\"lazy\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Configuration in File<\/h3>\n\n\n\n<p>Now we will see the which type of changes we have to made in .env file.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/12\/Screenshot-2021-12-10-18_04_17.png-1366%C3%97768.png\" alt=\"Screenshot-2021-12-10-18_04_17.png-1366\u00d7768\" class=\"wp-image-314667\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p>you can check the configuration of .env file  in above Snapshot.If you want to setup the Shopware at another url then you have to make some changes in the above file.<\/p>\n\n\n\n<p>The changes have to made is in <strong>App_url.<\/strong>  Here you need to add the url of store where you want to open the site.<\/p>\n\n\n\n<p>In second steps you need to add database name in the <strong>DATABASE_URL<\/strong>. Details should be added as <strong>Db detail\/Db name<\/strong>. <\/p>\n\n\n\n<p>Now last steps you have to add the path of your installed shopware directory.  It can be added in the <strong>COMPOSER_HOME<\/strong>. Path should be as like this root directory <strong>path\/var\/cache\/composer.<\/strong><\/p>\n\n\n\n<p>This way we can configure the shopware.<\/p>\n\n\n\n<p>Apart from this if you want to Deactivate the cache then Type &#8220;0&#8221; in SHOPWARE_HTTP_CACHE_ENABLED=0. And for activate cache Type &#8220;1&#8221; in SHOPWARE_HTTP_CACHE_ENABLED=1.<\/p>\n\n\n\n<p>And on the other hand if you want to change the environment in APP_ENV then type  APP_ENV=prod for production  and type APP_ENV=dev for development mode.<\/p>\n\n\n\n<p>Thanks for reading<\/p>\n\n\n\n<p>If you face any issue, feel free to add a ticket at&nbsp;<a href=\"https:\/\/webkul.uvdesk.com\/en\/\">webkul.uvdesk.com<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this blog we will know about &#8220;Configuration of .env File in Shopware.&#8221; Introduction Shopware&nbsp;is a leading Germany based e-commerce platform. Till the date, the platform has received more than 80 thousand users. Shopware is an open-source eCommerce framework. Meanwhile, the features which are taking this Plateform to prime levels are&nbsp;content management,&nbsp;Multi-warehouse system, and many <a href=\"https:\/\/webkul.com\/blog\/configuration-of-env-file-in-shopware\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":294,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9568,1],"tags":[12220,9274],"class_list":["post-314660","post","type-post","status-publish","format-standard","hentry","category-shopware","category-uncategorized","tag-env-file","tag-shopware"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Configuration of .env File| Shopware .env<\/title>\n<meta name=\"description\" content=\"In this Blog we know about configuration of .env File in shopware. User can make changes in App_url, DATABASE_URL and COMPOSER_HOME\" \/>\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\/configuration-of-env-file-in-shopware\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Configuration of .env File| Shopware .env\" \/>\n<meta property=\"og:description\" content=\"In this Blog we know about configuration of .env File in shopware. User can make changes in App_url, DATABASE_URL and COMPOSER_HOME\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/configuration-of-env-file-in-shopware\/\" \/>\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=\"2021-12-10T14:06:26+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-12-10T14:08:37+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=\"Chakradhar\" \/>\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=\"Chakradhar\" \/>\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\/configuration-of-env-file-in-shopware\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/configuration-of-env-file-in-shopware\/\"},\"author\":{\"name\":\"Chakradhar\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/5c4bb3c79a45e1ee70983ef8a1549e77\"},\"headline\":\"Configuration of .env File in Shopware\",\"datePublished\":\"2021-12-10T14:06:26+00:00\",\"dateModified\":\"2021-12-10T14:08:37+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/configuration-of-env-file-in-shopware\/\"},\"wordCount\":363,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"keywords\":[\".env file\",\"Shopware\"],\"articleSection\":[\"Shopware\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/configuration-of-env-file-in-shopware\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/configuration-of-env-file-in-shopware\/\",\"url\":\"https:\/\/webkul.com\/blog\/configuration-of-env-file-in-shopware\/\",\"name\":\"Configuration of .env File| Shopware .env\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"datePublished\":\"2021-12-10T14:06:26+00:00\",\"dateModified\":\"2021-12-10T14:08:37+00:00\",\"description\":\"In this Blog we know about configuration of .env File in shopware. User can make changes in App_url, DATABASE_URL and COMPOSER_HOME\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/configuration-of-env-file-in-shopware\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/configuration-of-env-file-in-shopware\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/configuration-of-env-file-in-shopware\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Configuration of .env File in Shopware\"}]},{\"@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\/5c4bb3c79a45e1ee70983ef8a1549e77\",\"name\":\"Chakradhar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/8db0893e577075c080e3250af0b02be2bebc53c0ff3b9be39ad4699ce2496bbc?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\/8db0893e577075c080e3250af0b02be2bebc53c0ff3b9be39ad4699ce2496bbc?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Chakradhar\"},\"url\":\"https:\/\/webkul.com\/blog\/author\/chakradhar-tester189\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Configuration of .env File| Shopware .env","description":"In this Blog we know about configuration of .env File in shopware. User can make changes in App_url, DATABASE_URL and COMPOSER_HOME","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\/configuration-of-env-file-in-shopware\/","og_locale":"en_US","og_type":"article","og_title":"Configuration of .env File| Shopware .env","og_description":"In this Blog we know about configuration of .env File in shopware. User can make changes in App_url, DATABASE_URL and COMPOSER_HOME","og_url":"https:\/\/webkul.com\/blog\/configuration-of-env-file-in-shopware\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2021-12-10T14:06:26+00:00","article_modified_time":"2021-12-10T14:08:37+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":"Chakradhar","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Chakradhar","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/configuration-of-env-file-in-shopware\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/configuration-of-env-file-in-shopware\/"},"author":{"name":"Chakradhar","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/5c4bb3c79a45e1ee70983ef8a1549e77"},"headline":"Configuration of .env File in Shopware","datePublished":"2021-12-10T14:06:26+00:00","dateModified":"2021-12-10T14:08:37+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/configuration-of-env-file-in-shopware\/"},"wordCount":363,"commentCount":0,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"keywords":[".env file","Shopware"],"articleSection":["Shopware"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/configuration-of-env-file-in-shopware\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/configuration-of-env-file-in-shopware\/","url":"https:\/\/webkul.com\/blog\/configuration-of-env-file-in-shopware\/","name":"Configuration of .env File| Shopware .env","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"datePublished":"2021-12-10T14:06:26+00:00","dateModified":"2021-12-10T14:08:37+00:00","description":"In this Blog we know about configuration of .env File in shopware. User can make changes in App_url, DATABASE_URL and COMPOSER_HOME","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/configuration-of-env-file-in-shopware\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/configuration-of-env-file-in-shopware\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/configuration-of-env-file-in-shopware\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Configuration of .env File in Shopware"}]},{"@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\/5c4bb3c79a45e1ee70983ef8a1549e77","name":"Chakradhar","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/8db0893e577075c080e3250af0b02be2bebc53c0ff3b9be39ad4699ce2496bbc?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\/8db0893e577075c080e3250af0b02be2bebc53c0ff3b9be39ad4699ce2496bbc?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Chakradhar"},"url":"https:\/\/webkul.com\/blog\/author\/chakradhar-tester189\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/314660","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\/294"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=314660"}],"version-history":[{"count":14,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/314660\/revisions"}],"predecessor-version":[{"id":314680,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/314660\/revisions\/314680"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=314660"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=314660"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=314660"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}