Apache2 - Installation

From Thomas-Krenn-Wiki
Jump to navigation Jump to search
Copyright © 1997-2025 The Apache Software Foundation.

This article describes how to install an Apache2 webserver under Ubuntu 24.04 LTS and provide a simple website.

Requirements

The installation is done exclusively from the official Ubuntu package sources.

Installation of Apache2

The installation is directly performed via the Ubuntu package manager.

Add own website

After successful installation, the standard content can be replaced by an own website.

Troubleshooting

  • Website unavailable
    • check whether the service is running: systemctl status apache2
    • control firewall-rules: sudo ufw status
  • Changes are not displayed
    • empty browser-cache or reload page (Strg + F5)
    • check file rights: ls -l /var/www/html
  • Port 80 occupied
    • check occupied ports: sudo ss -tulpn

Summary

An Apache2 webserver can be installed and operated under Ubuntu 24.04 LTS in just a few steps. After the installation, the standard content can be replaced by own websites and the webserver can be secured by fundamental measures.

Author: Adrian Zillner

Adrian Zillner has been working in Technical Service at Thomas-Krenn AG since May 2025. He is responsible for supporting customers and answering questions about technical issues.

Translator: Alina Ranzinger

Alina has been working at Thomas-Krenn.AG since 2024. After her training as multilingual business assistant, she got her job as assistant of the Product Management and is responsible for the translation of texts and for the organisation of the department.


Related articles

Function of the Network Data Management Protocol NDMP
Installation of RAID 10 with Broadcom LSA Storage Manager
Installation Virtual Tape Library