• Home
  • DevOps
  • How To
  • Cloud
  • Security
  • Monitoring
  • Web
  • OS
tutorials-space.com
Menu
  • Home
  • DevOps
  • How To
  • Cloud
  • Security
  • Monitoring
  • Web
  • OS
Home  /  Apache • Web  /  How To Install Apache2 on Ubuntu 18.04
27 December 2018

How To Install Apache2 on Ubuntu 18.04

Written by aghouchaf
Apache, Web Leave a Comment

Table of Contents

  • 1. Introduction
  • 2. Prerequisites
  • 3. Install Apache
  • 4. Adjust the Firewall
  • 5. Verifying the Apache Installation

1. Introduction

Apache HTTP server is the most popular web server. It is a free, open-source and cross-platform HTTP server.

This tutorial explains how to install and manage the Apache server on Ubuntu 18.04.

2. Prerequisites

In order to complete this tutorial, you will need :

  1. you will need to have an Ubuntu 18.04 server.
  2. Update your system: sudo apt update && sudo apt upgrade

3. Install Apache

Apache2 is available in the default Ubuntu repositories so we can use apt package management tool to install it with the following commands.

sudo apt update && sudo apt install apache2

Apache is installed and automatically started, you can check the Apache service status by using :

sudo systemctl status apache2

4. Adjust the Firewall

If firewall i used, you’ll need to open HTTP (80) and HTTPS (443) ports.

Assuming you are using UFW to manage your firewall, you can open the necessary ports with the following command:

sudo ufw allow 'Apache Full'

You can verify the change with:

sudo ufw status
Status: active

To                         Action      From
--                         ------      ----
22/tcp                     ALLOW       Anywhere
Apache Full                ALLOW       Anywhere
22/tcp (v6)                ALLOW       Anywhere (v6)
Apache Full (v6)           ALLOW       Anywhere (v6)

5. Verifying the Apache Installation

To verify that everything works correctly, you can type your server IP address http://YOUR_IP_OR_DOMAIN/ in your browse and you will see the default Ubuntu 18.04 Apache welcome page.

aghouchaf

 Previous Article How To Install Apache, MySQL and PHP (LAMP) on Ubuntu 18.04
Next Article   Top 10 OpenSSH Server Best Security Practices (part 1)

Related Posts

  • Create a Self-Signed SSL Certificate using Apache2 in Ubuntu 18.04

    January 13, 2019
  • Setup Nginx HTTP Server Self-Signed SSL/TLS Certificates on Ubuntu16.04 or 18.04

    December 30, 2018
  • How to Redirect HTTP to HTTPS on Apache2

    How to Redirect HTTP to HTTPS on Apache2

    December 30, 2018

Leave a Reply

Cancel reply

Recent Posts

  • Install ELK On Ubuntu 18.04
  • Create a Self-Signed SSL Certificate using Apache2 in Ubuntu 18.04
  • How to install Google Chrome browser on Ubuntu 18.04
  • (no title)
  • Setup Nginx HTTP Server Self-Signed SSL/TLS Certificates on Ubuntu16.04 or 18.04

Recent Comments

    Archives

    • March 2019
    • January 2019
    • December 2018
    • March 2014

    Categories

    • Apache
    • Browser
    • centos
    • couchbase
    • Databases
    • debian
    • DevOps
    • ELK
    • How To
    • linux
    • network
    • nginx
    • Security
    • ssh
    • ssl
    • tls
    • Web

    Meta

    • Log in
    • Entries RSS
    • Comments RSS
    • WordPress.org
    Advertisement
    • Popular Posts
    • Recent Posts
    • Install ELK On Ubuntu 18.04 March 24, 2019
    • Blog Post with Right Sidebar March 16, 2014
    • What DevOps Means? December 26, 2018
    • DevOps practices that you must implement in 2019 December 26, 2018
    • Install ELK On Ubuntu 18.04 March 24, 2019
    • Create a Self-Signed SSL Certificate using Apache2 in Ubuntu 18.04 January 13, 2019
    • How to install Google Chrome browser on Ubuntu 18.04 January 4, 2019
    • December 31, 2018

    Categories

    • Apache (6)
    • Browser (1)
    • centos (1)
    • couchbase (1)
    • Databases (1)
    • debian (2)
    • DevOps (3)
    • ELK (1)
    • How To (8)
    • linux (5)
    • network (1)
    • nginx (2)
    • Security (9)
    • ssh (1)
    • ssl (3)
    • tls (2)
    • Web (6)
    January 2021
    M T W T F S S
    « Mar    
     123
    45678910
    11121314151617
    18192021222324
    25262728293031

    Tags

    apache web

    Social Media

    • Connect on Facebook
    • Connect on Twitter
    • Connect on Google+
    • Connect on Pinterest

    Tags

    apache web

    Archives

    • March 2019 (1)
    • January 2019 (2)
    • December 2018 (15)
    • March 2014 (2)

    Random Posts

    • How to install Couchbase Server on Ubuntu 18.04 December 29, 2018
    • How to Redirect HTTP to HTTPS on Apache2
      How to Redirect HTTP to HTTPS on Apache2 December 30, 2018

    © Copyright 2014. http://tutorials-space.com.