{"id":9214,"date":"2021-05-19T00:26:07","date_gmt":"2021-05-19T05:56:07","guid":{"rendered":"https:\/\/www.emizentech.com\/blog\/?p=9214"},"modified":"2022-01-21T11:33:08","modified_gmt":"2022-01-21T11:33:08","slug":"how-to-install-shopware-6-with-nginx","status":"publish","type":"post","link":"https:\/\/multisitelocal.ezxdemo.com\/blog\/how-to-install-shopware-6-with-nginx.html","title":{"rendered":"How To Install Shopware 6 with NGINX"},"content":{"rendered":"<section class=\"blog-section\">\n<div class=\"container\">\n<div class=\"row\">\n<div class=\"col-lg-12\">\n<div class=\"blog-text casestudy-content text-justify\">\n<p>Shopware is an eCommerce platform which helps businesses to sell their products online. In this post we are going to learn how to Install Shopware 6 with NGINX.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Prerequisites\"><\/span>Prerequisites<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<ul class=\"benefits-points\">\n<li>A server running Ubuntu 18\/20<\/li>\n<li>A valid domain name pointing your server IP.<\/li>\n<li>A root password should be configured on your server.<\/li>\n<\/ul>\n<h3><span class=\"ez-toc-section\" id=\"Lemp_Installations\"><\/span>Lemp Installations<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<ul class=\"benefits-points\">\n<li><strong>Nginx Web-server<\/strong><\/li>\n<\/ul>\n<p>You can install Nginx with the following command:-<img decoding=\"async\" class=\"size-full wp-image-9213 aligncenter\" src=\"\/blog\/wp-content\/uploads\/sites\/2\/2021\/05\/image001.gif\" alt=\"install Nginx command\" width=\"333\" height=\"28\" \/><img decoding=\"async\" class=\"size-full wp-image-9212 aligncenter\" src=\"\/blog\/wp-content\/uploads\/sites\/2\/2021\/05\/image002.gif\" alt=\"install Nginx command\" width=\"381\" height=\"27\" \/><\/p>\n<ul class=\"benefits-points\">\n<li><strong>PHP and extension<\/strong><\/li>\n<\/ul>\n<p>You can install PHP and extension with the following command:-<br \/>\n<img decoding=\"async\" class=\"alignnone size-full wp-image-9211\" src=\"\/blog\/wp-content\/uploads\/sites\/2\/2021\/05\/image003.jpg\" alt=\"install PHP and extension\" width=\"578\" height=\"25\" \/><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9210\" src=\"\/blog\/wp-content\/uploads\/sites\/2\/2021\/05\/image004.gif\" alt=\"install PHP and extension\" width=\"576\" height=\"25\" \/><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9209\" src=\"\/blog\/wp-content\/uploads\/sites\/2\/2021\/05\/image005.gif\" alt=\"install PHP and extension\" width=\"347\" height=\"27\" \/><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9208\" src=\"\/blog\/wp-content\/uploads\/sites\/2\/2021\/05\/image006.jpg\" alt=\"install PHP and extension\" width=\"631\" height=\"42\" \/><\/p>\n<p>Nginx and PHP-FPM service, enable them to start at system reboot with the following command:<\/p>\n<ul>\n<li><strong>MySQL installation and user creations<\/strong><\/li>\n<\/ul>\n<p>You can install MySql with the following command:-<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9207\" src=\"\/blog\/wp-content\/uploads\/sites\/2\/2021\/05\/image007.jpg\" alt=\"install MySql\" width=\"624\" height=\"15\" \/><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9206\" src=\"\/blog\/wp-content\/uploads\/sites\/2\/2021\/05\/image008.jpg\" alt=\"install MySql\" width=\"805\" height=\"15\" \/><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9205\" src=\"\/blog\/wp-content\/uploads\/sites\/2\/2021\/05\/image009.jpg\" alt=\"install MySql\" width=\"250\" height=\"15\" \/><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9204\" src=\"\/blog\/wp-content\/uploads\/sites\/2\/2021\/05\/image010.jpg\" alt=\"install MySql\" width=\"516\" height=\"17\" \/><br \/>\nOnce all the packages are installed, start the Nginx, MariaDB, and PHP-FPM service and enable them to start at system reboot with the following command:<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9221\" src=\"\/blog\/wp-content\/uploads\/sites\/2\/2021\/05\/packages-installed.png\" alt=\"packages installed\" width=\"329\" height=\"188\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Configure_PHP-FPM\"><\/span>Configure PHP-FPM<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>By default, PHP-FPM is configured to run as a www-data user and group. So you will need to configure it to run as a Shopware user and group. You can do it by editing the file.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9222\" src=\"\/blog\/wp-content\/uploads\/sites\/2\/2021\/05\/file-path.png\" alt=\"file path\" width=\"517\" height=\"93\" \/><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9203\" src=\"\/blog\/wp-content\/uploads\/sites\/2\/2021\/05\/image011.gif\" alt=\"PHP-FPM is configured\" width=\"425\" height=\"306\" \/>Next, add a user for php-fpm.<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9202\" src=\"\/blog\/wp-content\/uploads\/sites\/2\/2021\/05\/image012.jpg\" alt=\"add a user for php-fpm\" width=\"578\" height=\"330\" \/><\/p>\n<p>Next, edit the php.ini file and tweak some recommended settings:<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9224\" src=\"\/blog\/wp-content\/uploads\/sites\/2\/2021\/05\/recommended-settings.png\" alt=\"recommended settings\" width=\"400\" height=\"127\" \/><\/p>\n<p>Save and close the file, then restart the PHP-FPM service to apply the changes:<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9201\" src=\"\/blog\/wp-content\/uploads\/sites\/2\/2021\/05\/image013.jpg\" alt=\"restart the PHP-FPM\" width=\"578\" height=\"37\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Create_a_Database_for_Shopware\"><\/span>Create a Database for Shopware<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Next, you will need to create a database and user for Shopware. First, connect to the MariaDB using the following command:<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9200\" src=\"\/blog\/wp-content\/uploads\/sites\/2\/2021\/05\/image014.jpg\" alt=\"create a database \" width=\"159\" height=\"19\" \/><\/p>\n<p>Once connected, create a database and user with the following command:<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9199\" src=\"\/blog\/wp-content\/uploads\/sites\/2\/2021\/05\/image015.jpg\" alt=\"create a database and user \" width=\"578\" height=\"90\" \/><\/p>\n<p>Next, flush the privileges and exit from the MariaDB with the following command:<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9198\" src=\"\/blog\/wp-content\/uploads\/sites\/2\/2021\/05\/image016.jpg\" alt=\"flush the privileges\" width=\"278\" height=\"74\" \/><\/p>\n<p>Once you are finished, you can proceed to the next step.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Download_Shopware\"><\/span>Download Shopware<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Next, you will need to download the latest version of Shopware for its official website. First, create a directory for Shopware inside Nginx root directory:<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9197\" src=\"\/blog\/wp-content\/uploads\/sites\/2\/2021\/05\/image017.jpg\" alt=\"create a directory for Shopware inside Nginx root\" width=\"429\" height=\"165\" \/><\/p>\n<p>Next, download the Shopware with the following command:<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9196\" src=\"\/blog\/wp-content\/uploads\/sites\/2\/2021\/05\/image018.jpg\" alt=\"download the Shopware\" width=\"578\" height=\"80\" \/><\/p>\n<p>Once the download is complete, extract the downloaded file from the Shopware directory:<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9195\" src=\"\/blog\/wp-content\/uploads\/sites\/2\/2021\/05\/image019.jpg\" alt=\"extract the downloaded file from the Shopware directory\" width=\"578\" height=\"16\" \/>Once you are finished, you can proceed to the next step.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Configure_Nginx_for_Shopware\"><\/span>Configure Nginx for Shopware<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Next, create an Nginx virtual host configuration file for Shopware with the following command:<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9194\" src=\"\/blog\/wp-content\/uploads\/sites\/2\/2021\/05\/image020.jpg\" alt=\"Nginx virtual host configuration\" width=\"578\" height=\"21\" \/>Add the following lines:<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9193\" src=\"\/blog\/wp-content\/uploads\/sites\/2\/2021\/05\/image021.jpg\" alt=\"Add the following lines\" width=\"578\" height=\"441\" \/><\/p>\n<p>Save and close the file, and then verify the Nginx for any syntax error with the following command:<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9192\" src=\"\/blog\/wp-content\/uploads\/sites\/2\/2021\/05\/image022.jpg\" alt=\"verify the Nginx for any syntax error\" width=\"578\" height=\"87\" \/><\/p>\n<p>Next, restart the Nginx service to apply the changes and you will get the following output:<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9191\" src=\"\/blog\/wp-content\/uploads\/sites\/2\/2021\/05\/image023.jpg\" alt=\"restart the Nginx service\" width=\"579\" height=\"183\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Access_Shopware_Web_Interface\"><\/span>Access Shopware Web Interface<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Now, open your web browser and type the URL https:\/\/emzshopware.ezxdemo.com\/.<br \/>\nSelect your language and click on the <strong>Next<\/strong> button. Make sure all the requirements have been met, then click on the <strong>Next<\/strong> button. You will get the following page:<img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-9190 aligncenter\" src=\"\/blog\/wp-content\/uploads\/sites\/2\/2021\/05\/image024.jpg\" alt=\"Select your language and click on the Next button\" width=\"578\" height=\"394\" \/><\/p>\n<p>Agree with the GTC and click on the <strong>Next<\/strong> button. You will get the following page:<img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-9189 aligncenter\" src=\"\/blog\/wp-content\/uploads\/sites\/2\/2021\/05\/image025.jpg\" alt=\"Agree with the GTC\" width=\"578\" height=\"386\" \/><\/p>\n<p>Input your database, username, password and click on the <strong>Start installation<\/strong> button. Once the installation has been completed, you will get the following page:<img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-9188 aligncenter\" src=\"\/blog\/wp-content\/uploads\/sites\/2\/2021\/05\/image026.jpg\" alt=\"click on the Start installation\" width=\"578\" height=\"211\" \/><\/p>\n<p>Click on the Next page. You will be asked to input your Shop name, email address, currency, country, admin username, password and click on the <strong>Next<\/strong> button. You will be redirected to the Shopware dashboard:<img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-9187 aligncenter\" src=\"\/blog\/wp-content\/uploads\/sites\/2\/2021\/05\/image027.jpg\" alt=\"redirected to the Shopware dashboard\" width=\"578\" height=\"408\" \/><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-9186 aligncenter\" src=\"\/blog\/wp-content\/uploads\/sites\/2\/2021\/05\/image028.jpg\" alt=\"redirected to the Shopware dashboard\" width=\"578\" height=\"516\" \/><\/p>\n<p>Input all information and click on the <strong>Next<\/strong> button. You will get the following page:<img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-9185 aligncenter\" src=\"\/blog\/wp-content\/uploads\/sites\/2\/2021\/05\/image029.jpg\" alt=\"Input all information\" width=\"578\" height=\"334\" \/><\/p>\n<p>Install your desired language plugins and click on the <strong>Next<\/strong> button. You will get the following page:<img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-9184 aligncenter\" src=\"\/blog\/wp-content\/uploads\/sites\/2\/2021\/05\/image030.jpg\" alt=\"Install your desired language plugins\" width=\"578\" height=\"322\" \/><\/p>\n<p>Install demo data or skip this, and click on the <strong>Next<\/strong> button. You will get the following page:<img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-9183 aligncenter\" src=\"\/blog\/wp-content\/uploads\/sites\/2\/2021\/05\/image031.jpg\" alt=\"Install demo data or skip this\" width=\"578\" height=\"326\" \/><\/p>\n<p>Click on the <strong>Configure Later<\/strong>. You will get the following page:<img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-9182 aligncenter\" src=\"\/blog\/wp-content\/uploads\/sites\/2\/2021\/05\/image032.jpg\" alt=\"Configure Later\" width=\"578\" height=\"322\" \/><\/p>\n<p>Click on the <strong>Skip button<\/strong>. You will get the following page:<img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-9181 aligncenter\" src=\"\/blog\/wp-content\/uploads\/sites\/2\/2021\/05\/image033.jpg\" alt=\"Click on the Skip button\" width=\"578\" height=\"316\" \/><\/p>\n<p>Click on the <strong>Skip<\/strong> button. You will get the following page:<img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-9180 aligncenter\" src=\"\/blog\/wp-content\/uploads\/sites\/2\/2021\/05\/image034.jpg\" alt=\"Click on the Skip button\" width=\"578\" height=\"316\" \/><\/p>\n<p>Click on the <strong>Finish<\/strong> button. You will see the Shopware welcome page:<img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-9179 aligncenter\" src=\"\/blog\/wp-content\/uploads\/sites\/2\/2021\/05\/image035.jpg\" alt=\"Shopware welcome page\" width=\"578\" height=\"319\" \/><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-9231 aligncenter\" src=\"\/blog\/wp-content\/uploads\/sites\/2\/2021\/05\/Shopware-6-installed.png\" alt=\"Shopware 6 installed\" width=\"750\" height=\"394\" \/><\/p>\n<p>You can now access Shopware securely using the URL https:\/\/emzshopware.ezxdemo.com.<\/p>\n<p>We hope this post gave you a pretty good idea of how to install Shopware 6 with NGINX. Emizentech is a leading <a href=\"https:\/\/multisitelocal.ezxdemo.com\/ecommerce-development.html\">ecommerce development company<\/a> and we provide expert <a href=\"https:\/\/multisitelocal.ezxdemo.com\/hire-shopware-developer.html\" target=\"_blank\" rel=\"noopener\">Shopware developers<\/a>\u00a0to small and large scale businesses all over the globe.<\/p>\n<h4>Also Read:<\/h4>\n<p>[wp_show_posts id=&#8221;4512&#8243;]<\/p>\n<\/div>\n<\/div>\n<div class=\"col-lg-12\">\n<div class=\"blog-text\"><\/div>\n<div class=\"col-lg-12\">\n<div class=\"author-block\">\n<div class=\"author-img\"><img decoding=\"async\" src=\"\/blog\/wp-content\/uploads\/sites\/2\/2021\/05\/profile-pic.png\" alt=\"author profile\" \/><\/div>\n<div class=\"author-details\">\n<div class=\"author-about\"><b>About Author<\/b><\/div>\n<div class=\"author-name\">Author Name:<br \/>\n<a class=\"author-link\" href=\"https:\/\/www.linkedin.com\/in\/commerce-cloud-magento2-developer\/\" target=\"_blank\" rel=\"noopener noreferrer\">Vivek Khatri<\/a><\/div>\n<div class=\"author-designation\"><label>Author Designation:<\/label><br \/>\nCertified Magento 2 Consultant<\/div>\n<\/div>\n<div class=\"author-bio\">\n<p><b>Author Bio:<\/b><\/p>\n<p>Founder and tech lead at Emizentech, Mr. Vivek has over ten years of experience in developing IT infrastructures and solutions. With his profound knowledge in <a href=\"https:\/\/multisitelocal.ezxdemo.com\/ecommerce-development.html\">eCommerce technologies<\/a> like <a href=\"https:\/\/multisitelocal.ezxdemo.com\/shopware-development.html\">Shopware,<\/a> <a href=\"https:\/\/multisitelocal.ezxdemo.com\/magento-development-services.html\">Magento,<\/a> and Shopify, Mr. Vivek has been assisting SMEs to enterprises across the globe by developing and maintaining their eCommerce applications. Technology innovation and trends insight come easy to Vivek with his thorough knowledge in the eCommerce domain. See him talking about ideas, trends, and technology in this blog. To know more about how Team Vivek can assist you in your eCommerce strategy? <a href=\"https:\/\/multisitelocal.ezxdemo.com\/enqiry.html\">Connect team Vivek here<\/a>.<\/p>\n<\/div>\n<div class=\"author-bio w-100\">\n<p><b>About Emizentech:<\/b><\/p>\n<p>An acclaimed IT solution provider and a leading <a href=\"https:\/\/multisitelocal.ezxdemo.com\/magento-development-services.html\" target=\"_blank\" rel=\"noopener noreferrer\">Magento 2 development company<\/a> with its expertise lies in delivering top of the line ecommerce solutions, <a href=\"https:\/\/multisitelocal.ezxdemo.com\/salesforce-commerce-cloud.html\" target=\"_blank\" rel=\"noopener noreferrer\">Salesforce commerce cloud services<\/a>, <a href=\"https:\/\/multisitelocal.ezxdemo.com\/mobile-app-development.html\" target=\"_blank\" rel=\"noopener noreferrer\">mobile app development<\/a> and many more verticals.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/section>\n","protected":false},"excerpt":{"rendered":"<p>Shopware is an eCommerce platform which helps businesses to sell their products online. In this post we are going to learn how to Install Shopware 6 with NGINX. Prerequisites A server running Ubuntu 18\/20 A valid domain name pointing your server IP. A root password should be configured on your server. Lemp Installations Nginx Web-server<\/p>\n","protected":false},"author":36,"featured_media":9232,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"MSN_Categories":"Uncategorized","MSN_Publish_Option":false,"MSN_Is_Local_News":false,"MSN_Is_AIAC_Included":"Empty","MSN_Location":"[]","MSN_Add_Feature_Img_On_Top_Of_Post":false,"MSN_Has_Custom_Author":false,"MSN_Custom_Author":"","MSN_Has_Custom_Canonical_Url":false,"MSN_Custom_Canonical_Url":"","_lmt_disableupdate":"","_lmt_disable":"","footnotes":""},"categories":[85],"tags":[84],"class_list":{"0":"post-9214","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-shopware","8":"tag-shopware"},"modified_by":"emizentech","featured_image_src":"https:\/\/multisitelocal.ezxdemo.com\/blog\/wp-content\/uploads\/sites\/2\/2021\/05\/Install-Shopware-6-with-NGINX-1.jpg","featured_image_src_square":"https:\/\/multisitelocal.ezxdemo.com\/blog\/wp-content\/uploads\/sites\/2\/2021\/05\/Install-Shopware-6-with-NGINX-1.jpg","author_info":{"display_name":"Vivek Khatri","author_link":"https:\/\/multisitelocal.ezxdemo.com\/blog\/author\/vivek"},"_links":{"self":[{"href":"https:\/\/multisitelocal.ezxdemo.com\/blog\/wp-json\/wp\/v2\/posts\/9214","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/multisitelocal.ezxdemo.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/multisitelocal.ezxdemo.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/multisitelocal.ezxdemo.com\/blog\/wp-json\/wp\/v2\/users\/36"}],"replies":[{"embeddable":true,"href":"https:\/\/multisitelocal.ezxdemo.com\/blog\/wp-json\/wp\/v2\/comments?post=9214"}],"version-history":[{"count":0,"href":"https:\/\/multisitelocal.ezxdemo.com\/blog\/wp-json\/wp\/v2\/posts\/9214\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/multisitelocal.ezxdemo.com\/blog\/wp-json\/wp\/v2\/media\/9232"}],"wp:attachment":[{"href":"https:\/\/multisitelocal.ezxdemo.com\/blog\/wp-json\/wp\/v2\/media?parent=9214"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/multisitelocal.ezxdemo.com\/blog\/wp-json\/wp\/v2\/categories?post=9214"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/multisitelocal.ezxdemo.com\/blog\/wp-json\/wp\/v2\/tags?post=9214"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}