Shopware 6 is a modern and powerful e-commerce platform, ideal for building a customized online shop. In this article, we guide you through the process of installing and configuring Shopware 6 on an Ubuntu server running Ubuntu 24.04.
sudo apt install unzip nginx php8.3-fpm php8.3-mysql php8.3-curl php8.3-gd php8.3-xml php8.3-zip php8.3-opcache php8.3-mbstring php8.3-intl php8.3-cli mariadb-server
First, install the required packages.
sudo mariadb
Start the MariaDB session.
CREATE DATABASE shopware;
CREATE USER 'shopware'@'localhost' IDENTIFIED BY 'secure-password';
GRANT ALL PRIVILEGES ON shopware.* TO 'shopware'@'localhost';
EXIT;
Create the database and user.
sudo nano /etc/php/8.3/fpm/php.ini
Edit the php.ini file.
sudo systemctl restart php8.3-fpm
sudo systemctl enable php8.3-fpm
Save the file and restart PHP-FPM.
sudo nano /etc/nginx/sites-enabled/default
Edit the default configuration file.
server {
listen 80;
index index.php;
server_name example.com;
client_max_body_size 32M;
root /var/www/html/public;
location /recovery/update/ {
location /recovery/update/assets {
}
if (!-e $request_filename){
rewrite . /recovery/update/index.php last;
}
}
location / {
try_files $uri /index.php$is_args$args;
}
location ~ ^/(index|shopware-installer\.phar)\.php(/|$) {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
include fastcgi.conf;
fastcgi_param HTTP_PROXY "";
fastcgi_buffers 8 16k;
fastcgi_buffer_size 32k;
fastcgi_read_timeout 300s;
client_body_buffer_size 128k;
fastcgi_pass unix:/run/php/php8.3-fpm.sock;
}
}
Replace the content with the recommended Shopware configuration, replacing example.com with your own domain.
cd /var/www/html
Navigate to the web directory.
wget https://www.shopware.com/en/Download/redirect/version/sw6/file/install.zip
unzip install.zip
rm install.zip
Download Shopware and extract the archive.
sudo chown -R www-data:www-data /var/www/html
Set the correct permissions.
sudo systemctl restart nginx
Restart Nginx.
Then, access your domain in a browser to start the installation wizard.
With this guide, you have successfully installed and configured Shopware 6 on your Ubuntu server. You can now customize and expand your online shop. For further customizations and extensions, consult the official Shopware documentation.
Shopware 6 requires at least:
Nginx offers better performance for handling multiple concurrent connections and uses fewer resources than Apache. However, Shopware 6 is also compatible with Apache – this tutorial uses Nginx for performance reasons.
Yes, your domain should already point to your Ubuntu server’s IP address to enable SSL certificate setup and make the web interface accessible.
Shopware provides an integrated update system in the administration panel. Always create a full backup of your files and database before updating.
Yes, Shopware offers an official Docker environment. However, this tutorial focuses on traditional server setups without container technology.
Common error sources:
Checking server logs (/var/log/nginx/, /var/log/php8.3-fpm.log) can also help.
Use the advanced WYSIWYG editor in Shopware 6. This editor enables easy embedding of media in descriptions and many additional features.
ab 7.99 €* / Month
Rent PluginOptimize your shop to create a better experience for your customers. This plugin minimizes your shop’s loading time and offers numerous configuration options.
ab 27.49 €* / Month
Rent PluginQuickly and easily create and edit your own template extensions in the administration. Displays existing storefront template paths and contents.
ab 3.99 €* / Month
Rent PluginNote: * All prices are exclusive of VAT
x