Install Apache Web Server in Ubuntu [Beginner’s Guide]

1 min


This quick guide explains the steps required to install Apache web server in Ubuntu and related Linux distributions.

Steps to Install Apache Web Server

Here is a complete beginner guide to install an Apache web server in Ubuntu.

  1. Open Terminal and run these commands
sudo apt update
sudo apt install apache2

2. Wait for the installation to finish. The installer itself would start the Apache server so that you don’t need to do it manually. The installer also adds an entry to /etc/init.d/apache2, so that the apache server would start automatically during reboot.

3. Now, to test the server is working, open your web browser and type http://localhost. If everything is fine till now, you would see a message as below with “It Works!”.

apache after install

4. Congratulations! You just installed apache webserver in Ubuntu and its working.

This article is part of Ubuntu Tutorial series.


Arindam

Creator and author of debugpoint.com. Connect with me via Telegram, 𝕏 (Twitter), or send us an email.
Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

2 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments