Skip to content

Commit

Permalink
update to ubuntu 24.04 and suggest mariadb
Browse files Browse the repository at this point in the history
  • Loading branch information
shyim authored Oct 29, 2024
1 parent 02b3236 commit a9a12d5
Showing 1 changed file with 10 additions and 16 deletions.
26 changes: 10 additions & 16 deletions tutorials/install-shopware-6/01.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -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**

Expand All @@ -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';
Expand All @@ -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

Expand Down Expand Up @@ -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`:

Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit a9a12d5

Please sign in to comment.