- Install the MariaDB Server and Client packages:
1dnf install -y mariadb mariadb-server
- Enable and Start the MariaDB service using systemctl:
2systemctl enable mariadb.service
3systemctl start mariadb.service
- Secure the MariaDB installation:
4mysql_secure_installation
- Answer the questions as follows:
- Enter current password for root (enter for none): Press Enter (there is no password)
- Switch to unix_socket authentication [Y/n] Press n for no
- Change the root password? [Y/n] Press n for no
- Remove anonymous users? [Y/n] Press y for yes
- Disallow root login remotely? [Y/n] Press y for yes
- Remove test database and access to it? [Y/n] Press y for yes
- Reload privilege tables now? [Y/n] Press y for yes
- Login to Webmin on the Web Server from your Client: https://192.168.g#.s#5:10000
- Refresh the modules
- Go to Servers: MySQL Database Server
- Click create a new database
- Name it wordpress
- Character set is: utf8 (UTF-8 Unicode)
- Collation order is: utf8_bin (UTF-8 Unicode)
- Click create
- Click User Permissions
- Create a new user named, wpuser
- Set password to our course password
- Allow any hosts
- Click create
- Return to database main page and click Database Permissions, then select Create new database permissions
- In the Databases section, select your new database from the dropdown
- Set the Username to wpuser
- Set the Hosts to Any
- Select all of the permissions
- Click the Create button
- Poweroff your server and take a Snapshot
- Once snapshot is finished, power your server back on