Operation Sheet 3.2: Installing Apache Web Server in Linux Server
Operation Sheet 3.2: Installing Apache Web Server in Linux Server
Operation Sheet 3.2: Installing Apache Web Server in Linux Server
2017
Objectives: After the end of the activity, the students will be able to:
Procedure:
Step 1: Open VM Ware Ubuntu Linux Server, and now Login on the shell on the server as user your
created during installation. The username may differ if you have chosen a different name during setup.
Step 2: Install the Apache Web Server using the code below:
Before we can test Apache, we need to modify our firewall to allow outside access to the default web ports.
Assuming that you followed the instructions in the prerequisites, you should have a UFW firewall configured
to restrict access to your server.
Output
Available applications:
Apache
Apache Full
Apache Secure
OpenSSH
As you can see, there are three profiles available for Apache:
Apache: This profile opens only port 80 (normal, unencrypted web traffic)
Apache Full: This profile opens both port 80 (normal, unencrypted web traffic) and port 443
(TLS/SSL encrypted traffic)
Apache Secure: This profile opens only port 443 (TLS/SSL encrypted traffic)
For our purposes, we will allow incoming traffic for the Apache Full profile by typing:
Output
Status: active
To Action From
-- ------ ----
OpenSSH ALLOW Anywhere
Apache Full ALLOW Anywhere
OpenSSH (v6) ALLOW Anywhere (v6)
Apache Full (v6) ALLOW Anywhere (v6)
When you have your server's IP address or domain, enter it into your browser's address bar (This is
through your Windows 7 /10 Client)
http://server_domain_or_IP or http://10.0.4.242
You should see the default Ubuntu 16.04 Apache web page, which should look something like this:
Cd /var/www
<html>
<body>
<h1>Welcome to my Apache Web Server</h1>
<p>Amasedgenalehu </p>
</body>
</html>
When you have your server's IP address or domain, enter it into your browser's address bar (This is
through your Windows 7 /10 Client)
http://10.0.4.242/home.html