Linux Assessment - Isaiah-River/SYS-255-02-SYSAdmin GitHub Wiki
Main Lab
Overview
Web02 has been replaced with Blog01. My job is to a new server and install blogging or content management software of my choice on it.
Objectives
- Configure Blog01
- Install a blogging or content management software on Blog01.
Part 01 - Configuring Blog01
With my Web02 VM gone, I had to configure my new Blog01 VM. In order to do this I started by first wiring my ethernet for my VM. I then booted the computer up and used the command nmtui to open the Network Manager. Here I set the hostname of my computer(blog01-isaiah), the IPv4 Address(10.0.5.20/24), the default gateway (10.0.5.2), the DNS server(10.0.5.6), and the search domain(isaiah.local).
After configuring these, I created a new administrator user using the command useradd isaiah to create the user 'isaiah'. I then use the command passwd isaiah to set a password for the account. I then needed to give the account administrative privlages with the command usermod -aG wheel isaiah.
After this I logged into the adm02-isaiah VM, launched DNS manager, and created A and PTR records for web-01-isaiah.
I then restarted my VM and confirmed that I had connectivity to the server.
I then went to disable the ability SSH into root. I used the command sudo vi /etc/ssh/sshd_config, and then finding the #PermitRootLogin yes and changing the yes to no.
Part 02 - Joining the domain
To start I installed the some several packages with the command sudo yum install -y realmd samba samba-common oddjob oddjob-mkhomedir sssd
After this I joined the domain with the command realm join [email protected] isaiah.local, and then used the command realm list to show the realms that my computer is currently connected to.
Part 03 - Installing Apache, PHP, and MYSQL
After configuring my web01-isaiah VM I had to install apache. I started by installing the httpd packet using the command sudo yum install httpd
After this I had to open up the ports 80/tcp and 443/tcp in my firewall. To do this I used the commands firewall-cmd --zone=public --add-port=80/tcp --permanent & firewall-cmd --zone=public --add-port=443/tcp --permanent
I then used sudo yum install -y php to install PHP, and then used sudo yum install mysql to install MySQL, sudo yum install mariadb-server to install the mariadb software package. I then use the command sudo systemctl enable mariadb.service to start these services.