← Volver al blog

How to Install Apache Web Server

  • Xernode
  • 1 min de lectura
  • 4 de abril de 2026
Web Hosting apache linux ubuntu installation web server

Introduction

Apache is one of the most popular and reliable web servers. This guide shows you how to install and start using Apache on Ubuntu.

Step-by-step Guide

  1. Update your package list
    • sudo apt update
  2. Install Apache
    • sudo apt install apache2
  3. Start and enable Apache to launch on boot
    • sudo systemctl start apache2
    • sudo systemctl enable apache2
  4. Allow HTTP and HTTPS traffic through the firewall
    • sudo ufw allow 'Apache Full'
  5. Check Apache status
    • sudo systemctl status apache2
  6. Test Apache in your browser
    • Visit http://your_server_ip
    • You should see the default Apache welcome page.
  7. (Optional) Reload Apache after making config changes
    • sudo systemctl reload apache2

Recommendations

  • Always reload or restart Apache after editing configuration files.
  • Keep Apache updated for security and performance.
  • Review the official documentation for advanced configuration.

Call To Action

eed a reliable VPS for your web projects? Check out our hosting plans! https://xernode.com/#pricing

Related Guides