25.5 C
Senior Writer and partner

How to install Shopware on Debian 10?

Hello, folks. In this post, I will show you how to install Shopware on Debian 10 Buster.

Shopware is a business-oriented application. With it you will be able to deploy an e-commerce platform professionally and above all quickly. It is used by many of the best known brands in the world. However, it is not entirely free, but has a community version that we can use for our small business or just to test.

In the same sense, Shopware is a web application, so having a LAMP server installed is an indispensable requirement.

Install Shopware on Debian 10

Install LAMP on Debian 10

Shopware is a web application. Therefore it requires a LAMP server installed and functional on the server.

- Advertisement -

So, installing LAMP on Debian 10 is the first step in this tutorial. Read our post about it.

How to install LAMP on Debian 10?

Once installed, install these PHP modules as well:

php7.3 php7.3-bcmath php7.3-cgi php7.3-cli php7.3-common php-curl php7.3-dba php7.3-enchant php7.3-fpm php7.3-gd php7.3-imap php7.3-intl php7.3-ldap php7.3-mbstring php7.3-mysql php7.3-opcache php-imagick php-memcache php7.3-soap php7.3-tidy php7.3-xml php7.3-zip libapache2-mod-php7.3

Now we can continue.

Create the database and user for Shopware

Now the next step is to create a new database in MariaDB for Shopware. We will also take the opportunity to create a user to work with the application.

So, open the MariaDB console and type the following commands:

:~$ sudo mysql -u root -p
> CREATE DATABASE shopwaredb;
> GRANT ALL PRIVILEGES ON shopwaredb.* TO 'shopwareuser'@'localhost' IDENTIFIED BY 'shoppss';
> exit;
1.- Creating the new database for Shopware
1.- Creating the new database for Shopware

When you exit the console, you can start the Shopware download.

Download and install Shopware on Debian 10 (I)

Now we can download the application. To do this we will use the wget command.

So, go to the /tmp folder and download it from there:

:~$ cd /tmp/
:~$ wget -c https://www.shopware.com/en/Download/redirect/file/install_6.1.3_1582123990.zip
--2020-02-22 09:30:36-- https://www.shopware.com/en/Download/redirect/file/install_6.1.3_1582123990.zip
Resolving www.shopware.com (www.shopware.com)...
Connecting to www.shopware.com (www.shopware.com)||:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://releases.shopware.com/sw6/install_6.1.3_1582123990.zip [following]
--2020-02-22 09:30:39-- https://releases.shopware.com/sw6/install_6.1.3_1582123990.zip
Resolving releases.shopware.com (releases.shopware.com)...,,, ...
Connecting to releases.shopware.com (releases.shopware.com)||:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 82792104 (79M) [application/zip]
Saving to: 'install_6.1.3_1582123990.zip'
install_6.1.3_1582123990.zip 100%[=====================================================================================>] 78.96M 851KB/s in 86s
2020-02-22 09:32:11 (945 KB/s) - 'install_6.1.3_1582123990.zip' saved [82792104/82792104]
2.- Download Shopware on Debian 10
2.- Download Shopware on Debian 10

Once you have completed the download, create a folder for Shopware.

:~$ mkdir shopware

Access it and from there decompress the downloaded file.

:~$ cd shopware/
~$ unzip ../install_6.1.3_1582123990.zip

Then, return to the previous directory and move the Shopware folder to the Apache root directory.

:~$ cd ..
:~$ sudo mv shopware/ /var/www/html/

And change the owner of the folder as well as the permissions on it.

:~$ sudo chown -R www-data:www-data /var/www/html/shopware/
:~$ sudo chmod -R 775 /var/www/html/shopware

Next, we have to make a new virtualhost for Shopware. So create a new file for this and add the following:

:~$ sudo nano /etc/apache2/sites-available/shopware.conf
<VirtualHost *:80>
DocumentRoot /var/www/html/shopware/public
ServerName your-domain.com

<Directory /var/www/html/shopware/public>
Options FollowSymlinks
AllowOverride All
Require all granted

ErrorLog ${APACHE_LOG_DIR}/shopware_error.log
CustomLog ${APACHE_LOG_DIR}/shopware_access.log combined


Of course, replace your-domain.com with yours. Once you’ve done that, save the changes and close the file.

Now, you have to enable the new Virtualhost and restart Apache.

sudo a2ensite shopware.conf
sudo a2enmod rewrite
sudo systemctl reload apache2

Now, we can start the installation using the web interface.

Install Shopware on Debian 10 (II)

Now open your favorite web browser and go to http://your-server/ and you will see the following:

4.- Shopware on Debian 10
4.- Shopware on Debian 10

The installer will then check your server to see if it is suitable.

5.- System ready for Shopware
5.- System ready for Shopware

Next, accept the license terms.

6.- License terms
6.- License terms

So, now you have to type the database credentials.

7.- Database configuration
7.- Database configuration

Then the loading of the database will begin.

8.- Shopware installation
8.- Shopware installation

If everything was OK, you will see this:

9.- Installation Succesful
9.- Installation Succesful

Finally, set up your new shopping site. There you have to fill in the data you prefer. On this screen you will also create the administrator account.

10.- Configuring Shopware on Debian 10
10.- Configuring Shopware on Debian 10

Now just finish the installation and access the dashboard and that’s it.


Ecommerce is something fundamental in our world so having this kind of tools at hand is very useful. So today you know how to install it on a Debian 10 server.

Please share this post and join our Telegram channel.

- Advertisement -
Everything Linux, A.I, IT News, DataOps, Open Source and more delivered right to you.
"The best Linux newsletter on the web"


Please enter your comment!
Please enter your name here

Latest article