Apache Lab - morgan-hanrahan/Tech-Journal GitHub Wiki

Apache Installation

Installation Process for CentOS 7 machine

  • Steps:
  1. Install using: yum install httpd
  2. Run the following commands
    • systemctl enable httpd This will enable the serve to auto-start on boot
    • systemctl start httpd This will start the service
    • systemctl status httpd This will reload the current Apache configuration
    • systemctl restart httpd This will restart the Apache server

Firewall-cmd Configuration

Working on CentOS 7 machine

  • firewall-cmd --add-service=http --permanent This will add a firewall rule to port 80 (HTTP).
  • firewall-cmd --add-service=https --permanent This will add a firewall rule for port 443 (HTTPS).
  • firewall-cmd --reload This will update the firewall to apply the changes
  • firewall-cmd --list-services This will allow you to see what services are allowed through the firewall
  • firewall-cmd --list-all This will allow you to see what services are allowed through the firewall and ports
  • firewall-cmd --add-port=80/tcp --permanent This would be a different way to do the first command. Instead of adding the service, it specifies the port.

Linux Domain Join

Steps

First, make sure your Windows and Linux machines are in the same time zone.

  1. Install realmd

    • sudo yum install realmd samba samba-common oddjob oddjob-mkhomedir sssd
  2. Join the domain

  3. Run the command

    • realm list

The realm join operation should add web01 to Active Directory Users and Computers on the Domain Controller.