Tutorial: Installing Shopware Community Edition on OpenSUSE Latest

Introduction

Shopware Community Edition is an open-source eCommerce platform. It enables businesses to create and run their own online stores. This tutorial will guide you through the process of installing Shopware CE on the latest version of OpenSUSE.

Prerequisites

Before proceeding, ensure that you have the following:

Step 1: Download Shopware CE

Download the latest version of Shopware CE from the official website using the following command:

wget https://www.shopware.com/de/Download/redirect/version/sw6/file/install_6.4.4_1625098529.zip

Step 2: Install Dependencies

Shopware CE requires several dependencies to be installed on your system. Install the required dependencies using the following commands:

zypper ar -cfp 90 https://download.opensuse.org/repositories/server:/php:/extensions/openSUSE_Leap_15.3/ php-extensions
zypper ref
zypper in -y apache2 mod_php7 php7 php7-mysql php7-json php7-iconv php7-gd php7-intl php7-zip php7-curl php7-dom php7-sodium php7-xmlwriter mariadb mariadb-client

Step 3: Extract Shopware CE

Extract the downloaded Shopware CE package to your web server's root directory using the following command:

unzip install_6.4.4_1625098529.zip -d /srv/www/htdocs/

Step 4: Create a Database

Create a database and a user for the Shopware CE installation using the following commands:

mysql -u root -p

mysql> CREATE DATABASE shopware; 
mysql> GRANT ALL PRIVILEGES ON shopware.* TO 'shopware'@'localhost' IDENTIFIED BY 'password'; 
mysql> FLUSH PRIVILEGES;
mysql> EXIT;

Replace password with your desired password.

Step 5: Configure the Web Server

Configure your web server to serve Shopware CE. For Apache, create a new virtual host file with the following contents:

<VirtualHost *:80>
    ServerName your-domain.com
    DocumentRoot /srv/www/htdocs/install_6.4.4_1625098529/public
    ErrorLog /var/log/apache2/shopware_error.log
    CustomLog /var/log/apache2/shopware_access.log combined
    <Directory /srv/www/htdocs/install_6.4.4_1625098529/public>
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
    </Directory>
</VirtualHost>

Replace your-domain.com with your domain name.

Step 6: Run the Shopware CE Installer

Run the Shopware CE installer by navigating to the following URL in your web browser:

http://your-domain.com/recovery/install/index.php

Follow the on-screen instructions to complete the installation process. When prompted for the database credentials, enter the following:

After completing the installation, you can log in to the Shopware CE administration dashboard by navigating to the following URL:

http://your-domain.com/admin

Conclusion

You have successfully installed Shopware Community Edition on the latest version of OpenSUSE. You can now start configuring your online store and adding products. For more information, refer to the official Shopware CE documentation.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!