Last Updated on January 21, 2022

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

You can install Nginx with the following command:-install Nginx commandinstall Nginx command

  • PHP and extension

You can install PHP and extension with the following command:-
install PHP and extensioninstall PHP and extensioninstall PHP and extensioninstall PHP and extension

Nginx and PHP-FPM service, enable them to start at system reboot with the following command:

  • MySQL installation and user creations

You can install MySql with the following command:-
install MySqlinstall MySqlinstall MySqlinstall MySql
Once 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:packages installed

Configure PHP-FPM

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.
file pathPHP-FPM is configuredNext, add a user for php-fpm.add a user for php-fpm

Next, edit the php.ini file and tweak some recommended settings:recommended settings

Save and close the file, then restart the PHP-FPM service to apply the changes:restart the PHP-FPM

Create a Database for Shopware

Next, you will need to create a database and user for Shopware. First, connect to the MariaDB using the following command:create a database

Once connected, create a database and user with the following command:create a database and user

Next, flush the privileges and exit from the MariaDB with the following command:flush the privileges

Once you are finished, you can proceed to the next step.

Download Shopware

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:create a directory for Shopware inside Nginx root

Next, download the Shopware with the following command:download the Shopware

Once the download is complete, extract the downloaded file from the Shopware directory:extract the downloaded file from the Shopware directoryOnce you are finished, you can proceed to the next step.

Configure Nginx for Shopware

Next, create an Nginx virtual host configuration file for Shopware with the following command:
Nginx virtual host configurationAdd the following lines:Add the following lines

Save and close the file, and then verify the Nginx for any syntax error with the following command:verify the Nginx for any syntax error

Next, restart the Nginx service to apply the changes and you will get the following output:restart the Nginx service

Access Shopware Web Interface

Now, open your web browser and type the URL https://emzshopware.ezxdemo.com/.
Select your language and click on the Next button. Make sure all the requirements have been met, then click on the Next button. You will get the following page:Select your language and click on the Next button

Agree with the GTC and click on the Next button. You will get the following page:Agree with the GTC

Input your database, username, password and click on the Start installation button. Once the installation has been completed, you will get the following page:click on the Start installation

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 Next button. You will be redirected to the Shopware dashboard:redirected to the Shopware dashboardredirected to the Shopware dashboard

Input all information and click on the Next button. You will get the following page:Input all information

Install your desired language plugins and click on the Next button. You will get the following page:Install your desired language plugins

Install demo data or skip this, and click on the Next button. You will get the following page:Install demo data or skip this

Click on the Configure Later. You will get the following page:Configure Later

Click on the Skip button. You will get the following page:Click on the Skip button

Click on the Skip button. You will get the following page:Click on the Skip button

Click on the Finish button. You will see the Shopware welcome page:Shopware welcome pageShopware 6 installed

You can now access Shopware securely using the URL https://emzshopware.ezxdemo.com.

We hope this post gave you a pretty good idea of how to install Shopware 6 with NGINX. Emizentech is a leading ecommerce development company and we provide expert Shopware developers to small and large scale businesses all over the globe.

Also Read:

[wp_show_posts id=”4512″]

author profile
About Author
Author Name:
Vivek Khatri

Certified Magento 2 Consultant

Author Bio:

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 eCommerce technologies like Shopware, Magento, 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? Connect team Vivek here.

About Emizentech:

An acclaimed IT solution provider and a leading Magento 2 development company with its expertise lies in delivering top of the line ecommerce solutions, Salesforce commerce cloud services, mobile app development and many more verticals.

Avatar photo
Author

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 eCommerce technologies like Shopware, Magento, 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? Connect team Vivek here.

whatsapp