Champlain College Classes
HomeTech JournalsPersonal ProjectsSysadmin Wiki
SEC-440: Systems Security
SEC-440: Systems Security
  • SEC-440: Systems Security
  • Breakdown
    • Course Overview
  • Labs
    • Project 1 - Network Redundancy
    • Project 2 - Web and Proxy Redundancy
    • Project 3 - Web Application and Database Redundancy
    • Project 4 - AWS
    • Project 5 - Wireguard with AWS
    • Project 6 - Federated Identity
    • Project 7 - Windows Admin Center
    • Project 8 - Kerberos - Deep Dive
  • Notes
    • Page 2
Powered by GitBook
On this page
  1. Labs

Project 3 - Web Application and Database Redundancy

PreviousProject 2 - Web and Proxy RedundancyNextProject 4 - AWS

Last updated 1 year ago

Setup u1, u2, u3

‘’’

sudo hostnamectl set-hostname db0X-paul

sudo passwd champuser

sudo adduser paul

sudo usermod -aG sudo paul

‘’’

Setup networking

‘’’

sudo nano /etc/netplan/00-installer-config.yaml

‘’’

Setup MariaDB with Galera Cluster

‘’’

Sudo apt install mariadb-server

‘’’

Edit the Galera Config

‘’’

Sudo nano /etc/mysql/mariadb.conf.d/60-galera.cnf

‘’’

Resources:

Update ha proxy to support db:

‘’’

Sudo nano /etc/haproxy/haproxy.cfg

‘’’

Now restart haproxy

Now check if lan can connect the database

GRANT ALL PRIVILEGES ON *.* TO 'root'@'%'

IDENTIFIED BY 'my-new-password' WITH GRANT OPTION;

Make Database:

CREATE DATABASE futurama;

USE futurama;

WEB:

Yum install php php-mysql mysql

sudo setsebool -P httpd_can_network_connect_db on

https://www.server-world.info/en/note?os=Ubuntu_22.04&p=mariadb&f=1
https://www.linuxbabe.com/mariadb/galera-cluster-ubuntu