migrate to git.charlotte.sh
This commit is contained in:
commit
fbd588721e
412 changed files with 13750 additions and 0 deletions
41
sysadmin-i-sys255/lab08-apache.md
Normal file
41
sysadmin-i-sys255/lab08-apache.md
Normal file
|
@ -0,0 +1,41 @@
|
|||
---
|
||||
description: In this lab, we set up an Apache web server on WEB01
|
||||
---
|
||||
|
||||
# Lab08 - Apache
|
||||
|
||||
## Apache Server Installation & Configuration
|
||||
|
||||
### Configure WEB01
|
||||
|
||||
* `nmtui`
|
||||
* IP address is 10.0.5.10
|
||||
* setting alternate DNS to 8.8.8.8 made initial connectivity work (idk why)
|
||||
* remember to add A and PTR records to DNS server
|
||||
|
||||
### Install httpd
|
||||
|
||||
```bash
|
||||
sudo yum install httpd
|
||||
sudo firewall-cmd --add-service=http --permanent
|
||||
sudo firewall-cmd --add-service=https --permanent
|
||||
sudo firewall-cmd --reload
|
||||
sudo systemctl start httpd
|
||||
sudo systemctl enable httpd
|
||||
```
|
||||
|
||||
* comment out all lines in `/etc/httpd/conf.d/welcome.conf`
|
||||
* add _index.html_ file to `/var/www/html/`
|
||||
* the contents of _index.html_ should be what searching `http://web01-nathan` in a browser will give you
|
||||
|
||||
### Install PHP
|
||||
|
||||
* `yum install -y php`
|
||||
* `systemctl restart httpd`
|
||||
* add _index.php_ file to `/var/www/html/`
|
||||
|
||||
## Linux Domain Join
|
||||
|
||||
* `sudo yum install -y realmd samba samba-common oddjob oddjob-mkhomedir sssd`
|
||||
* `sudo realm join --user=nathan.croce-adm@nathan.local nathan.local`
|
||||
* `realm list`
|
Loading…
Add table
Add a link
Reference in a new issue