Setup a Website in Nginx
- We would need a linux server and webserver and some website

- Linux Servers:
- WebServer:
- Website:
Steps:
- Create a linux vm (Azure/AWS/GCP)
- Installing nginx
You are a linux expert, Give me step by step commands to install nginx on ubuntu 24.04
sudo apt update
sudo apt install nginx -y
sudo systemctl status nginx.service
-
In nginx and apache the folder where we can host websites is
/var/www/html
-
Now download the website
sudo apt install unzip
cd /tmp
wget https://templatemo.com/tm-zip-files-2020/templatemo_589_lugx_gaming.zip
cd templatemo_589_lugx_gaming/
sudo cp --recursive . /var/www/html/
- Navigate to http://

Package Managers
- In Linux to install softwares we have folliwng ways
- code + make
- packages (.deb, .rpm)
- deb
dpkg -i <package>.deb
- rpm
rpm -ivh <package>.rpm
- Package Managers
- apt (Debian)
- dnf (yum) (Redhat)
- snap
-
APT:
- APT is a package manager used in debian based distributions
- apt will have package definitions that needs to be up to date
apt update
- To install software
apt install <package-name>
-
Exericse: Try installing the same website using apache server on redhat