SYS255 Lab 7 - Robertsegee/TechJournals GitHub Wiki
10/20/20 Lab 7 Apache Lab: In this lab we configured a new VM called web01 which is a linux server. For the most part in this lab it was easy to make my way through, however there were minor issues that I was able to fix. One of these issues was wks not connecting to the internet. I fixed this by using a static IP rather than dynamic. The root of the issue is from the fact that the DHCP vm is gone therefore wks will no longer be able to use a dynamic IP for the time being.
Linux Domain Join:
For this part of the lab we had to have the linux server join the windows domain "robert.local". The first step was to install realmd, this would allow for me to have them in the same realm. the command I used to install was:
sudo yum install realmd samba samba-common oddjob oddjob-mkhomedir sssd
And the command I used for the server to join the domain was:
realm join --user=[email protected] robert.local
I was able to verify that it worked by using the realm list command. Following that I further verified I was on the right path by logging in as a domain user on web01 and using the commands whoami, id, and pwd. Then I checked to make sure that web01-robert was in the active directory computers folder.
Apache installation and Firewall configuration
To install apache I used the command:
yum install httpd
Then in order to access the web server from browser I had to add HTTP and HTTPS to the firewall. This was done through the following commands:
- firewall-cmd --add-service=http --permanent
- firewall-cmd --add-service=https --permanent
- firewall-cmd --reload
And then checked that it was there via the command:
firewall-cmd --list-all
After that I was able to successfully access the server from the browser.