How to Install and Start Apache2 Server in Ubuntu 22.04

In this article, we will see how to Install and Start Apache2 Server in Ubuntu 22.04 step by step.

What is Apache Server

Apache Web Server is a software package that turns a computer into an HTTP server. That is, it sends web pages – stored as HTML files – to people on the internet who request them. It is open-source software, which means it can be used and modified freely.

How to Install and Start Apache2 Server in Ubuntu 22.04

1. First, update the package index in Ubuntu 22.04 by running the below command.

sudo apt-get update

How to Install and Start Apache2 Server in Ubuntu 22.04

2. Now, install Apache 2 server using below command:

sudo apt-get install apache2

It will ask us for confirmation, then type Y and hit enter.

Post installation steps for Apache 2 server in Ubuntu 22.04

1. Check the status of Apache Server on Linux using below command.

sudo systemctl status apache2

2. Now find the ip of server by running ifconfig.

3. Now open the browser and paste the ip like below and hit enter.

http://192.168.106.142/

4. Now go to /var/www/html/and Create a html file (hellworld.html) and paste some tags. In the browser, give like http://192.168.106.142/helloworld.html

Video link for the same:

Leave a Reply

Your email address will not be published. Required fields are marked *