DevOps Classroom notes 11/Jun/2026

Topic: Setting Up a Website with Nginx

What We Need

Component Choice
Linux Server Ubuntu 24.04
Web Server Nginx
Website Template LUGX Gaming Template

Step-by-Step: Host a Website on Nginx

1. Create a Linux VM

Provision a VM on any cloud provider — Azure, AWS, or GCP.


2. Install Nginx

sudo apt update
sudo apt install nginx -y
sudo systemctl status nginx.service

Note: Nginx’s default web root (where you host websites) is /var/www/html.
Apache uses the same path.


3. Download & Deploy the Website

# Install unzip utility
sudo apt install unzip -y

# Download the website template
cd /tmp
wget https://templatemo.com/tm-zip-files-2020/templatemo_589_lugx_gaming.zip

# Unzip and copy files to the web root
unzip templatemo_589_lugx_gaming.zip
cd templatemo_589_lugx_gaming/
sudo cp --recursive . /var/www/html/

4. Access the Website

Open your browser and navigate to:

http://<your-server-ip>

Linux Package Management

Ways to Install Software on Linux

1. From source code      →  code + make
2. Package files         →  .deb (Debian) / .rpm (RedHat)
3. Package Managers      →  apt / dnf(yum) / snap

Installing via Package Files

Distro Family Format Command
Debian/Ubuntu .deb dpkg -i <package>.deb
RedHat/CentOS .rpm rpm -ivh <package>.rpm

APT — Debian Package Manager

  • Used in Debian-based distributions (Ubuntu, Mint, etc.)
  • Maintains a local package definitions cache — keep it updated
Task Command
Update package index apt update
Install a package apt install <package-name>
Install with auto-confirm apt install <package-name> -y

Exercise

Try it yourself: Install the same LUGX Gaming website using Apache on a RedHat-based server.

Hints to get started:

  • Package manager: dnf (or yum)
  • Apache package name: httpd
  • Web root: /var/www/html

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Please turn AdBlock off
Animated Social Media Icons by Acurax Responsive Web Designing Company

Discover more from Direct DevOps from Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading

Visit Us On FacebookVisit Us On LinkedinVisit Us On Youtube