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.


We bring the latest tech, software news and stuff that matters. Stay in touch via Telegram, Twitter, YouTube, and Facebook and never miss an update!

Join our Telegram channel and stay informed on the move.


Arindam

Creator of debugpoint.com. All time Linux user and open-source supporter. Connect with me via Telegram, Twitter, LinkedIn, 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
2
0
Would love your thoughts, please comment.x
()
x