Shell Scripts for Beginners - Project E-Commerce instruction and code issue

Course: Shell Scripts for Beginners
Module: Project-E-Commerce (Demo)

Issue: I have found the following issues-

yum install -y mariadb-server
Last metadata expiration check: 0:05:26 ago on Sun Aug 25 01:44:03 2024.
No match for argument: mariadb-server

I have used dnf to workout
dnf install mariadb105-server

sudo vi /etc/my.cnf
No clear message how and where to add the port number, could you please provide some example

Also instruction >-6.Update index.php
Update the index.php file to load the environment variables from the .env file and use them to connect to the database.

Please clarify in more details about the .env file information as you never mention about .env during your course as well.

Hi,
I tried to reproduce the issue you mentioned about yum install -y mariadb-server not working. But it seems to be working as expected. Please note the command need to be prefixed with sudo.

Regarding configuring /etc/my.cnf and index.php their respective official docs should help you with those if you intend to dive deeper in these technologies.
However, for this project all the required configurations and instructions are provided in the documentation provided in the lab.