How to Install Shopware Community Edition on Fedora Server Latest

Shopware is one of the popular open-source eCommerce platforms. In this tutorial, we will learn how to install Shopware Community Edition on Fedora Server Latest.

Prerequisites

Step 1: Update the System

Before we start installing and configuring the LAMP stack, update the system with the following command:

sudo dnf update

Step 2: Install LAMP Stack

To install the Apache2 web server, MariaDB Database Server, and PHP 7.4, run the following commands:

sudo dnf install httpd mariadb mariadb-server php php-json php-mysqlnd php-opcache php-xml php-gd php-zip php-curl php-mbstring git wget unzip -y

Step 3: Configure MariaDB Database Server

Once installed the MariaDB database server, you need to secure it with the below command:

sudo mysql_secure_installation

Provide the necessary details like root password, remove anonymous users, disallow root login remotely, remove test database, and reload privilege tables.

Step 4: Install Composer

Composer is a dependency manager for PHP. To install the composer, use the following command:

sudo dnf install composer

Step 5: Download Shopware 6

Next, download the latest version of Shopware 6 from the official website. You can use wget or curl command to download it. Here, we will use the wget command.

sudo wget https://github.com/shopware/platform/releases/download/6.4.3.0/platform-6.4.3.0.zip

Step 6: Extract Shopware 6 and move it to the Apache2 web root

To extract the downloaded file, use the unzip command:

sudo unzip platform-6.4.3.0.zip

Now, move the extracted folder to the Apache2 web root directory by using the following command:

sudo mv platform-6.4.3.0 /var/www/html/shopware

Step 7: Install Shopware 6

To install the Shopware 6, navigate to the /var/www/html/shopware folder and execute the following command:

cd /var/www/html/shopware
sudo composer install --no-interaction --no-progress --no-suggest

Step 8: Create Virtual Host for Shopware 6

We will create a virtual host configuration for Shopware 6. Create a new file under the /etc/httpd/conf.d/ directory:

sudo nano /etc/httpd/conf.d/shopware.conf

Add the following configuration:

<VirtualHost *:80>
    ServerAdmin admin@example.com
    DocumentRoot /var/www/html/shopware/public
    ServerName example.com
    <Directory /var/www/html/shopware/>
        Options FollowSymLinks
        AllowOverride All
        Require all granted
    </Directory>
    ErrorLog /var/log/httpd/shopware_error.log
    CustomLog /var/log/httpd/shopware_access.log combined
</VirtualHost>

Update the Server Admin email and Server Name details according to your information.

Step 9: Enable Apache2 Rewrite Module

To enable the Apache2 rewrite module, use the following command:

sudo a2enmod rewrite

Step 10: Start Apache2 and MariaDB Database Server

To start the Apache2 web server and MariaDB database server, use the following command:

sudo systemctl start httpd
sudo systemctl start mariadb

Step 11: Access Shopware 6

Now, access the Shopware 6 web installation wizard using your preferred web browser. Use the Server Name or IP address to access it.

http://example.com/

Follow the installation wizard steps to install the Shopware 6 eCommerce platform.

Conclusion

You have successfully installed the Shopware 6 eCommerce platform on the Fedora Server Latest. You can now install extensions, configure the site settings, and start selling your products. Enjoy!

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!