Apache Lab - morgan-hanrahan/Tech-Journal GitHub Wiki
Apache Installation
Installation Process for CentOS 7 machine
- Steps:
- Install using: yum install httpd
- Run the following commands
systemctl enable httpd
This will enable the serve to auto-start on bootsystemctl start httpd
This will start the servicesystemctl status httpd
This will reload the current Apache configurationsystemctl 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 changesfirewall-cmd --list-services
This will allow you to see what services are allowed through the firewallfirewall-cmd --list-all
This will allow you to see what services are allowed through the firewall and portsfirewall-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.
-
Install realmd
sudo yum install realmd samba samba-common oddjob oddjob-mkhomedir sssd
-
Join the domain
realm join [email protected] morgan.local
-
Run the command
realm list
The realm join operation should add web01 to Active Directory Users and Computers on the Domain Controller.