20-CP-90 (Assignment No.01)
20-CP-90 (Assignment No.01)
TECHNOLOGY TAXILA
COMPUTER ENGINEERING DEPARTMENT
Assignment
For the Course of
System Programming
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 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.
Adding Ports:
SELinux Guards:
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:
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.
Results:
Website 2 on LAN Card 1 Port 7001
Result:
Website 3 on LAN Card 1 Port 7002
Result:
Result:
Website 2 on LAN Card 2 Port 7005
Result:
Result:
Website 1 on LAN Card 1 Name Based
Website 2 on LAN Card 1 Name Based
Explanation:
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:
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.
__________________________________________________