Lab 9 - JadenGil/Jaden-Tech-Journal GitHub Wiki

Apache Lab

The first step is to not make the silly mistake of forgetting that the default password is in canvas causing you to waste 10 minutes figuring out what the default password is :)

Using nmtui I changed the hostname to web01-jaden

I added user "jaden", changed the password, and gave it sudo privileges

  1. "useradd jaden"
  2. "passwd jaden"
  3. "usermod -aG wheel jaden"

Added web01-jaden to jaden.local

Logged into web01-jaden through wk02-jaden by using ssh

  1. ssh jaden@web01-jaden
  2. enter the password

I then used nslookup grep the hostname and target results

Installed HTTP

added ports 80 and 443 to the firewall

  1. firewall-cmd --permanent --add-port=80/tcp
  2. firewall-cmd --permanent --add-port=443/tcp
  3. firewall-cmd --reload
  4. firewall-cmd --list-all

Started HTTP and went to 10.0.5.4 on google to check if it was running (it was!)

removed welcome.conf

  1. cd /etc/httpd/conf.d
  2. rm welcome.conf

added index.html to /var/www/html using vi and tested it on chrome

I then installed PHP on web01-jaden with wk02-jaden via SSH and created index.php in /var/www/html

Used SSH to log into [email protected]@web01-jaden