SYS-255: System Admin & Network Services I
HomeTech JournalsPersonal ProjectsSysadmin Wiki
  • SYS-255: System Admin & Network Services I
  • Week Breakdown
    • Week Breakdown
    • Course Overview
  • Labs
    • Lab 1.0: Firewall and Work Station
    • Lab 2.0: Active Directory DNS
    • Lab 3.0: CentOS Intro
    • Lab 4.0: DHCP Server
    • Lab 5.0: ADDS Group Policy
    • Lab 6.0: Server Core & Remote Administrator Tools
    • Lab 7.0: Apache
  • Assignments
    • Assignment 1.0: File Permissions & User Groups
    • Assignment 2.0: DHCP is Down!
    • Assignment 3.0: Securing SSH
  • Notes
    • Page 2
Powered by GitBook
On this page
  • Summary
  • Commands
  • Steps
  1. Labs

Lab 7.0: Apache

Summary

Commands

  • vi /etc/ssh/sshd_config - about to change the SSH settings

  • sudo yum install httpd - install httpd service

  • firewall-cmd --add-service="service" --permanent - to allow a service through the firewall

  • yum install -y php - install php

Steps

Get http service

  1. setup like any other Linux box

  2. vi /etc/ssh/sshd_config find lime #PermitRootLogin yes change yes to no and get rid of the #

  3. sudo yum install httpd - stall http service

  4. allow http and https throught the firewall firewall-cmd --add-service=http --permanent and firewall-cmd --add-service=https --permanent

  5. connect to webiste through hostname

PHP setup

  1. yum install -y php - install php

  2. vi /var/www/html/index.php this allows you to edit the hostname/index.php page

    • the /var/www/html is where all website-related documents are stored

Join Linux to domain

  1. sudo yum install realmd samba samba-common oddjob oddjob-mkhomedir sssd

  2. realm join --user=your-domain-admin-username@yourdomain.local yourdomain.local realm list

PreviousLab 6.0: Server Core & Remote Administrator ToolsNextAssignment 1.0: File Permissions & User Groups

Last updated 2 years ago