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.
Before we start installing and configuring the LAMP stack, update the system with the following command:
sudo dnf update
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
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.
Composer is a dependency manager for PHP. To install the composer, use the following command:
sudo dnf install composer
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
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
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
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.
To enable the Apache2 rewrite module, use the following command:
sudo a2enmod rewrite
To start the Apache2 web server and MariaDB database server, use the following command:
sudo systemctl start httpd
sudo systemctl start mariadb
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.
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!