0% found this document useful (0 votes)
12 views56 pages

20-CP-90 (Assignment No.01)

System programming about server
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views56 pages

20-CP-90 (Assignment No.01)

System programming about server
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 56

UNIVERSITY OF ENGINEERING AND

TECHNOLOGY TAXILA
COMPUTER ENGINEERING DEPARTMENT

Assignment
For the Course of
System Programming

APACHE Web Hosting Server


SUBMITTED TO:
Dr. Zahid Mehmood
SUBMITTED BY:
Aleena Shafiq: 20-CP-90

DATE: 18 - Feb - 2024


Assignment No:01
ApAche Web hosting server
Question no:01
You need to configure the Apache web hosting server in the RedHat Enterprise
CENTOS LINUX platform for the following scenarios below.
a) Set the hostname of your CENTOS LINUX platform PC as your name along with UET
e.g. aliuet.
Command:

Output:

b) Install four LAN cards in your CENTOS LINUX/Debian platform PC and set up IP
addresses for each LAN card.
LAN Card 1:
LAN Card IP Address:

LAN Card 2:

LAN Card IP Address:


LAN Card 3:

LAN Card IP Address:

LAN Card 4:
LAN Card IP Address:

c) Verify that the Apache web hosting server is installed and running on your PC at system
startup automatically (install the Apache server if it is not installed after verifying).
Checking Server:

System Startup:
d) Create 16 port-based virtual hosts for web hosting of 16 different websites that listen on
16 different ports and test that it all works.

Creating Website on LAN Card -1

Adding Ports:

SELinux Guards:

Creating Four Websites on LAN-1:


Enabling Websites:

Service Restart and WGET:


Testing Websites
1st Website:

2nd Website:

3rd Website:

4th Website:
At Client Browser
Stop Firewall:

1st Website:

2nd Website:

3rd Website

4th Website:
Creating Website on LAN Card -2

Adding Ports:

SELinux Guards:

Creating Four Websites on LAN-2:


Enabling Websites:
Testing Websites
5th Website:

6th Website:

7th Website:

8th Website:
At Client Browser
5th Website:

6th Website:

7th Website:

8th Website:
Creating Website on LAN Card -3

Adding Ports:

SELinux Guards:
Creating Four Websites on LAN-3

Enabling Websites:
Testing Websites
9th Website:

10th Website:

11th Website:

12th Website:
At Client Browser
9th Website:

10th Website:

11th Website:

12th Website:
Creating Website on LAN Card -4

Adding Ports:

SELinux Guards:
Creating Four Websites on LAN-4:

Enabling Websites:
Testing Websites
13th Website:

14th Website:

15th Website:

16th Website:
At Client Browser
13th Website:

14th Website:

15th Website:

16th Website:

Explanation:
In this way, 16 websites are created on 4 LAN Cards each having a different port number. The websites are
also accessible by the client's computer.
e) Create 16 named-based virtual hosts for web hosting of 16 different websites that all
listen on port 80 and test that it all works.
Creating Website on LAN Card -1
Configurations:

Name Resolutions:

Creating Websites:
Enabling Websites:
Testing Websites
1st Website:

2nd Website:

3rd Website:

4th Website:
Creating Website on LAN Card -2
Configurations:

Name Resolutions:

Creating Websites:
Enabling Websites:
Testing Websites
5th Website:

6th Website:

7th Website:

8th Website:
Creating Website on LAN Card -3
Configurations:

Name Resolutions:

Creating Websites:

Enabling Website:
Testing Websites
9th Website:

10th Website:

11th Website:

12th Website:
Creating Website on LAN Card -4
Configurations:

Name Resolutions:

Creating Websites:
Enabling Website:
Testing Websites
13th Website:

14th Website:

15th Website:

16th Website:

Explanation:
In this way, 16 websites are created on 4 LAN Cards each having a name.
f) The first 8 websites will ask for authentication of username and password before displaying their
website contents while the rest 8 websites will not ask for authentication for displaying their
website contents.

Website 1 on LAN Card 1 Port 7000

Results:
Website 2 on LAN Card 1 Port 7001

Result:
Website 3 on LAN Card 1 Port 7002

Result:

Website 4 on LAN Card 1 Port 7003


Result:

Website 1 on LAN Card 2 Port 7004

Result:
Website 2 on LAN Card 2 Port 7005

Result:

Website 3 on LAN Card 2 Port 7006


Result:

Website 4 on LAN Card 2 Port 7007

Result:
Website 1 on LAN Card 1 Name Based
Website 2 on LAN Card 1 Name Based

Website 3 on LAN Card 1 Name Based


Website 4 on LAN Card 1 Name Based

Website 5 on LAN Card 2 Name Based


Website 6 on LAN Card 1 Name Based
Website 7 on LAN Card 1 Name Based

Website 8 on LAN Card 1 Name Based

Explanation:

In this way, the websites are password-protected.


g) You need to generate and configure private SSL certificates for each name-based and
port-based website individually.

Port-Based SSL Certified Websites


Output:

Explanation:

In this way, all the port-based websites are certified. I’ve attached the screenshot of one certificate-
secured website.
Name-Based SSL Certified Websites

Output:

Explanation:

In this way, all the name-based websites are certified. I’ve attached the screenshot of one
certificate-secured website.
Question no:02
Implement the following tasks.
a) Verify whether gcc, sudo, and wine are installed if not, install these packages.
GCC Package:
SUDO Package:
Wine Package:
Check:

Install Development Tools:

Wget Wine:
Extract Wine:

Install Wine:
b) Use yum or aptitude to search for and install the scp, tmux, and man-pages
packages. Did you find them all?
SCP Package:

TMUX Package:
MAN-PAGES Packages:

c) Search the internet for “webmin” and figure out how to install it.
Access:
d) Search for and install samba including the samba docs and pdf files (thousands of pages
in two pdf's).

e) Install Open Office and all the packages in the entertainment group of the Centos
LINUX and Debian platforms.

Installation of Office Package


Installing Java JRE in Linux:
Downloading Apache OpenOffice:

Removing Old OpenOffice Version:

Extracting Open OpenOffice Package:

Installing OpenOffice in Linux:


Open Application:

__________________________________________________

You might also like