Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
YouTube Security VideosAndroid Police: Samsung is smashing records! #shorts #tech #phones(21.09.2026 um 13:55 Uhr)
YouTube Security Videosheise & c't: Bundesnetzagentur wollte diesen Futterautomaten verbieten(21.09.2026 um 13:53 Uhr)
YouTube Security VideosNeil Patel: Your Google Traffic Isn't An Asset It's A Loan #shorts(21.09.2026 um 14:05 Uhr)
Windows Tipps & SecurityF-14 A Tomcat Top Gun endlich als Revell Klemmbausteinmodell erhältlich(21.09.2026 um 14:27 Uhr)
Sichere ProgrammierungShow the Hand-Back Sample Before Approving an Agent Score(21.09.2026 um 14:15 Uhr)
Sichere ProgrammierungHybrid retrieval in one Postgres query: RRF over tsvector + pgvector(21.09.2026 um 14:15 Uhr)
YouTube Security VideosAndroid Police: Samsung is smashing records! #shorts #tech #phones(21.09.2026 um 13:55 Uhr)
YouTube Security Videosheise & c't: Bundesnetzagentur wollte diesen Futterautomaten verbieten(21.09.2026 um 13:53 Uhr)
YouTube Security VideosNeil Patel: Your Google Traffic Isn't An Asset It's A Loan #shorts(21.09.2026 um 14:05 Uhr)
Windows Tipps & SecurityF-14 A Tomcat Top Gun endlich als Revell Klemmbausteinmodell erhältlich(21.09.2026 um 14:27 Uhr)
Sichere ProgrammierungShow the Hand-Back Sample Before Approving an Agent Score(21.09.2026 um 14:15 Uhr)
Sichere ProgrammierungHybrid retrieval in one Postgres query: RRF over tsvector + pgvector(21.09.2026 um 14:15 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

Step-by-Step Guide: Setting Up Apache2 and Deploying an HTML Template on Ubuntu

This article outlines the process of setting up an Apache2 web server on Ubuntu using Vagrant and deploying an HTML template for a mock finance site. The aim is to provide a comprehensive guide that details the steps involved in…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!

This article outlines the process of setting up an Apache2 web server on Ubuntu using Vagrant and deploying an HTML template for a mock finance site. The aim is to provide a comprehensive guide that details the steps involved in configuring a server and deploying a static website in a Linux environment.



Project Overview



The project utilizes Vagrant to initialize and configure a virtual machine (VM), set up Apache2 for serving web content, and deploy a downloadable HTML template. This hands-on experience is intended to enhance understanding of server configuration and web development, serving as a foundation for future projects.



Tools and Technologies




  • Apache2: A widely used, open-source web server software that enables the hosting of websites by serving web content to clients over HTTP.

  • Vagrant: A tool that automates the creation and management of virtualized environments, allowing for easy setup and destruction of VMs without affecting the host operating system.

  • Virtual Machines (VMs): VMs provide isolated environments that replicate physical computers, enabling the execution of different operating systems on a host machine for testing and development.



Steps to Set Up Apache2 and Deploy HTML Template




  1. Create Project Folder

    Create a folder named C:\vagrant-vms.


  2. Navigate and Create Directory

    Navigate to the folder and create a directory "finance" in Git Bash:





cd C:\vagrant-vms
mkdir finance
cd finance






Output




  1. Initialize Vagrant
    Run the following command to initialize Vagrant with the ubuntu/focal64 box:




vagrant init ubuntu/focal64






Vagrant Init output




  1. Edit Vagrantfile
    Open the Vagrantfile for configuration:




vim Vagrantfile






Make the following changes in insert mode:




  • Uncomment the private IP address line and set it to 192.168.56.22.

  • Uncomment the config.vm.provider "virtualbox" do |vb| line.

  • Uncomment the vb.memory line (default memory can be increased if needed).
    Save and exit the editor with Esc, :wq.



IP Configuration



memory configuration




  1. Start the Virtual Machine
    Bring up the VM with:




vagrant up






vagrant up




  1. Log into the VM
    Log into the VM:




vagrant ssh






vagrant ssh




  1. Switch to Root User
    Switch to the root user:




sudo -i







  1. Change Hostname
    Edit /etc/hostname to set the hostname as finance:




vi /etc/hostname






Save and exit (Esc, :wq), then run:




hostname finance






Log out and log back in:




exit
vagrant ssh






new host name




  1. Install Required Packages
    Install Apache2, wget, vim, zip, and unzip:




sudo apt install apache2 wget vim unzip zip -y






apt install




  1. Start and Enable Apache2
    Start the Apache2 service:




systemctl start apache2






Enable Apache2 to start on boot:




systemctl enable apache2






start apache



enable apache




  1. Verify IP Address
    Run the following to check the IP address:




ip addr show






Copy the IP and check it in a browser to ensure Apache2 is running correctly.



verify ip



web output




  1. Verify Web Root Directory
    Navigate to the Apache2 web root directory:




cd /var/www/html/






List the contents to verify the directory where Apache serves files:




ls







  1. Download HTML Template

    Visit Tooplate.com in a browser and select the "Mini Finance" template. Use Developer Tools (F12) to copy the direct download link visit the Network tab.


  2. Download and Unzip Template

    Change directory to /tmp and download the template:





cd /tmp/
wget https://www.tooplate.com/zip-templates/2135_mini_finance.zip






Unzip the downloaded file:




unzip 2135_mini_finance.zip






Navigate into the extracted directory:




cd 2135_mini_finance
ls






download



unzip the file



list content after unziping of file



navigation




  1. Copy Files to Web Root
    Copy all files from the template folder to the Apache2 web root:




cp -r * /var/www/html/






copy




  1. Restart Apache2 Service
    Restart the Apache2 service to apply changes:




systemctl restart apache2






restart apache2 service




  1. Check Apache2 and Firewall Status
    Check the Apache2 status:




systemctl status apache2






Verify the firewall status:




systemctl status firewalld






Stop and disable the firewall (note: this is not recommended for production):




systemctl stop firewalld
systemctl disable firewalld






apache2 status




  1. Access Deployed Template
    Retrieve the IP address:




ip addr show






Open the IP in a browser to view the deployed HTML template.



ip address



deployed



deployed cont



Conclusion



This project provides a comprehensive overview of setting up an Apache2 web server on Ubuntu using Vagrant and deploying an HTML template. Following these steps not only facilitates the understanding of server configuration but also lays the groundwork for further exploration in web development and server management.

Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Step-by-Step Guide: Setting Up Apache2 and Deploying an HTML Template on Ubuntu

Thematisch verwandte Begriffe: StepbyStep, Guide, Setting, Apache2 · 6 Treffer

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-94097 | A vulnerability was determined in Netcore NBR200V2 1.3.241127.071246. Th…
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen

tsecurity.de Live Threat Radar

🔴 LIVE RADAR
MONITORING
AKTIV
CVE-DATENBANK
LIVE
🔍
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel Rechts: nächster Artikel unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

Zurück: vorheriger Vor: nächster
↗ Original-Quelle
Social Reaktionen Deine Reaktion zählt
Einstufung & Relevanz-Poll 0 Stimmen
In sozialen Netzwerken teilen 1-Klick