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:-
- PHP and extension
You can install PHP and extension with the following command:-
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:-
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:
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.
Next, add a user for php-fpm.
Next, edit the php.ini file and tweak some recommended settings:
Save and close the file, then restart the PHP-FPM service to apply the changes:
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:
Once connected, create a database and user with the following command:
Next, flush the privileges and exit from the MariaDB with the following command:
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:
Next, download the Shopware with the following command:
Once the download is complete, extract the downloaded file from the Shopware directory:Once 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:
Add the following lines:
Save and close the file, and then verify the Nginx for any syntax error with the following command:
Next, restart the Nginx service to apply the changes and you will get the following output:
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:
Agree with the GTC and click on the Next button. You will get the following page:
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 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:
Input all information and click on the Next button. You will get the following page:
Install your desired language plugins and click on the Next button. You will get the following page:
Install demo data or skip this, and click on the Next button. You will get the following page:
Click on the Configure Later. You will get the following page:
Click on the Skip button. You will get the following page:
Click on the Skip button. You will get the following page:
Click on the Finish button. You will see the Shopware welcome page:
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″]