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
- "useradd jaden"
- "passwd jaden"
- "usermod -aG wheel jaden"
Added web01-jaden to jaden.local
Logged into web01-jaden through wk02-jaden by using ssh
- ssh jaden@web01-jaden
- enter the password
I then used nslookup grep the hostname and target results
Installed HTTP
added ports 80 and 443 to the firewall
- firewall-cmd --permanent --add-port=80/tcp
- firewall-cmd --permanent --add-port=443/tcp
- firewall-cmd --reload
- 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
- cd /etc/httpd/conf.d
- 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