Sitemap
Shayla Wright

Shayla Wright

Installing Apache on Ubuntu 18.04 LTS

3 min readJan 19, 2023

--

Press enter or click to view image in full size

Have you ever wondered how to install a program to a WebServer ? With many programs in the tech world to utilize, I am going to show you step by step how to successfully install the Apache WebServer on to the Ubuntu Linux 18.04 LTS Server and turn a basic computer into a HTTP server. Lets dive in !

What is Apache ?
The Apache web server is a very popular server that is used to provide an open-source web base platform to connect with outside sources, allowing files to be used and reformed to one’s own free will. To complete this project you can follow the guide below.
. . .

Essentials
- A strong internet connection
- A root system with sudo access
- SSH access and a terminal OS to run Ubuntu 18.04 LTS
. . .

Step 1: To begin, you want to gain access through SSH into the Ubuntu server with your username, password and public IP address. Be sure that this password is encrypted to protect your server, this is very important!

To enter into apache the command will be : ~$ ssh cloud_user@[your public IP address] followed by your password.

Press enter or click to view image in full size

Step 2: Update the packages available on the server.
To update the packages in Apache the command will be: ~$ sudo apt update

Press enter or click to view image in full size

Step 3: Enable the Apache HTTP Web Server after your updates

Get Shayla Wright’s stories in your inbox

Join Medium for free to get updates from this writer.

You are going to Install Apache to your server and be sure that everything in the server is updated and running smooth.

To install, the command will be ~$ sudo apt install apache2
However, to move on you must first give the command permission by typing “yes”

Press enter or click to view image in full size

Final Step: Check to see if the service is running
To do this, the command will be ~$ systemctl status apache2

Press enter or click to view image in full size

If the Apache service is showing in green as active, you have complete the necessary steps to install and run Apache in Ubuntu 18.04 LTS!

Press enter or click to view image in full size

--

--