SYS‐255‐Apache‐Lab - ConnorEast/Tech-Journal GitHub Wiki

Apache Lab:

Setting up

First I used the nmtui command in order to change the IP of my network. I then changed the name using the same command. From there I confirmed I had an IP address and added it to the pointers section of my AD. After this had been completed I logged into my webserver using the "ssh connor@web01-connor" command and logging in as connor. Connor is a wheel user. Below is my first deliverable:
image
image

Adding firewall ports.

I used the command "firewall-cmd --zone=public --add-port=80/tcp --permanent" and "firewall-cmd --zone=public --add-port=443/tcp --permanent" in order to allow http and https through my device. I then used the "systemctl restart firewalld" and the "systemctl restart httpd" command in order to allow for my firewall and ports to be updated. Below is my **second deliverable. ** image

Navigating to my webserver on web01.

I returned to VSphere and logged into wks01. Then I went to google and typed into the address bar 10.0.5.10. This led me to the apache HTTP server test page. and recieved the following page for** deliverable 3: ** image

Removing the default page:

I went to /etc/httpd/conf.d and deleted "Welcome.conf" Then I went to /var/www/html/ and created a document titled index.html. Below is Deliverable 4: image
image

PHP.

I downloaded PHP and by using the "yum install php" command. I then went and reedited my index.html file with the following information:
image
**Deliverable 5: ** image

Joining the Linux Domain!

I ran the "sudo yum install -y realmd samba samba-common oddjob oddjob-mkhomedir sssd" command on my web01 system. Then I used the "realm join --user=[email protected] connor.local" command. This allowed me to log in as my administrative level account. Once it was connected, I used the "realm list" command to see what domain I had been configured too. below is an image of said command. image

Logging into an AD account:

On my AD device I used the command "ssh [email protected]@web01-connor" Then I inserted the password associated with the alice account located in week 7. From there I then checked her ID, name, and pwd as seen in ** Deliverable 6** below.
image

Deliverable 7:

image

Deliverable 8 & Deliverable 9