Bash Automation Scripts

This page describes how the automation toolkit was developed and how the Bash scripts are structured. The project uses several scripts that work together to deploy a complete WordPress server environment.

Project Folder Creation

mkdir automation_tool_kit
cd automation_tool_kit

mkdir scripts
mkdir monitor

Main Deployment Script

sudo ./deploy.sh

The deployment script acts as the central controller that runs all other scripts in the correct order.

Server Stack Installation

sudo apt update -y
sudo apt install apache2 mariadb-server php php-mysql

Database Setup

CREATE DATABASE wordpress;
CREATE USER 'wpuser'@'localhost';
GRANT ALL PRIVILEGES ON wordpress.* TO 'wpuser'@'localhost';

System Monitoring

uptime
free -h
df -h

Development Screenshots