Wordpress Server Setup, Part I

RackNerd's LEB offer provides several options of low cost KVM hosting solution. For Wordpress + MySQL, it works better with more RAM and CPU core.

About the Server

The server is provided by Racknerd with following spec:-

  • 3.5Gb RAM
  • 45Gb SSD storage
  • 3 Cores CPU
  • Pre-installed with AlmaLinux 8.6

Install essential componets

packages: sudo, neovim, htop, python3, ufw, tmux, restic, rclone, tar, pigz, p7zip, croc, gcc

yum install --enablerepo="epel" ufw -y  # for ufw 
sudo yum update
sudo yum install neovim htop python3 ufw tmux restic rclone tar pigz p7zip croc gcc

Hardening

Some minor change has been applied for hardening the security

  • Add new user and grant with sudo right
  • Create ssh key for new user
  • Generate the private for putty format
  • Disable root and password login
  • Activate firewall (ufw)
  • Setup up additional acl for allowing 80 and 443
sudo usermod -aG sudo $USER
ssh-keygen -t ed25519 
sudo ufw allow 80/tcp
sudo ufw allow 443/tcp

Config .bashrc, .bash_aliases, and docker group

  • Config environments for easy usage
  • Create new group docker and dd non root user to the group
sudo groupadd docker
sudo usermod -aG docker $USER

Add package repository for docker

sudo yum install -y yum-utils
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo

This page was last edited on 2024-08-21 17:18

Powered by Wiki|Docs

This page was last edited on 2024-08-21 17:18

Mac
To whom it may concern

Powered by Wiki|Docs