Install Apache Web Server on Ubuntu

Install Apache Web Server on Ubuntu #

Apache HTTP Server is one of the most popular web servers in the world. This guide will show you how to install Apache Web Server on Ubuntu.

Steps to Install Apache Web Server #

  1. Update your system:

    sudo apt-get update
    
  2. Install Apache Web Server:

    sudo apt-get install apache2
    
  3. Enable and start Apache service:

    sudo systemctl enable apache2
    sudo systemctl start apache2
    
  4. Verify that Apache is running:

    sudo systemctl status apache2
    
  5. Open a web browser and navigate to http://localhost. You should see the default Apache2 page.

Congratulations! You have successfully installed Apache Web Server on Ubuntu.