From a9a12d5f0f3db525343576b35ff886b94181cc8f Mon Sep 17 00:00:00 2001 From: Shyim Date: Tue, 29 Oct 2024 17:04:19 +0100 Subject: [PATCH] update to ubuntu 24.04 and suggest mariadb --- tutorials/install-shopware-6/01.en.md | 26 ++++++++++---------------- 1 file changed, 10 insertions(+), 16 deletions(-) diff --git a/tutorials/install-shopware-6/01.en.md b/tutorials/install-shopware-6/01.en.md index 8e38e8f6b..ee0f18369 100644 --- a/tutorials/install-shopware-6/01.en.md +++ b/tutorials/install-shopware-6/01.en.md @@ -18,7 +18,7 @@ cta: "cloud" ## Introduction -Shopware is a trendsetting ecommerce platform to power your online business. It offers a combination of beauty & brains needed to build and customize a fully responsive online store. In this tutorial, we will learn how to install and configure Shopware 6 with Nginx on Ubuntu 22.04. +Shopware is a trendsetting ecommerce platform to power your online business. It offers a combination of beauty & brains needed to build and customize a fully responsive online store. In this tutorial, we will learn how to install and configure Shopware 6 with Nginx on Ubuntu 24.04. **Prerequisites** @@ -30,31 +30,25 @@ Shopware is a trendsetting ecommerce platform to power your online business. It **Note:** `example.com` is your domain address (for example hetzner.com) -## Step 1 - Installing Nginx, MySQL and PHP-FPM +## Step 1 - Installing Nginx, MariaDB and PHP-FPM -Before we begin with the installation of packages, we will add the [Ubuntu PPA](https://launchpad.net/~ondrej/+archive/ubuntu/php) to install newer PHP versions: +We install Nginx, MariaDB and PHP-FPM with the following command: ```bash -sudo add-apt-repository ppa:ondrej/php -``` - -We can now install Nginx, MySQL and PHP-FPM with the following command: - -```bash -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 mysql-server-8.0 +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 ``` To confirm the installation, press enter and then all related packages will be installed. ## Step 2 - Creating a database and user for the Shopware database -Shopware will need credentials to connect to the database. We will create a new MySQL user and a new MySQL Database. With the command `sudo mysql` we start a new mysql session. In this MySQL session we create a new database named `shopware` using the following query: +Shopware will need credentials to connect to the database. We will create a new MariaDB user and a new MariaDB Database. With the command `sudo mariadb` we start a new MariaDB session. In this MariaDB session we create a new database named `shopware` using the following query: ```sql CREATE DATABASE shopware; ``` -Next we will create a new MySQL user `shopware` using the following query: +Next we will create a new MariaDB user `shopware` using the following query: ```sql CREATE USER 'shopware'@'localhost' IDENTIFIED BY 'my-strong-password-here'; @@ -66,7 +60,7 @@ As a last step we will need to give the new user privilege to access our new dat GRANT ALL PRIVILEGES ON shopware.* TO 'shopware'@'localhost'; ``` -We can end the mysql session by entering `exit`. +We can end the MariaDB session by entering `exit`. ## Step 3 - Configuring PHP/PHP-FPM @@ -158,7 +152,7 @@ sudo systemctl enable nginx ## Step 5 - Installing Shopware 6 -After configuring MySQL, PHP and Nginx we start the installation of Shopware. We will install it to `/var/www/html`. +After configuring MariaDB, PHP and Nginx we start the installation of Shopware. We will install it to `/var/www/html`. First we install the Composer package manager by downloading it to `/usr/local/bin`: @@ -244,7 +238,7 @@ Now we can create a new systemd unit which interacts as worker. For that we have ```ini [Unit] Description=Shopware Consumer - After=mysql.service + After=mariadb.service [Service] Type=simple @@ -263,7 +257,7 @@ Now we can create a new systemd unit which interacts as worker. For that we have ```ini [Unit] Description=Shopware Scheduled Task - After=mysql.service + After=mariadb.service [Service] Type=simple