Lab 7.0: Apache
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
- setup like any other Linux box
vi /etc/ssh/sshd_config
find lime #PermitRootLogin yes
change yes
to no
and get rid of the #
sudo yum install httpd
- stall http service
- allow http and https throught the firewall
firewall-cmd --add-service=http --permanent
and firewall-cmd --add-service=https --permanent
- connect to webiste through
hostname
PHP setup
yum install -y php
- install php
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
sudo yum install realmd samba samba-common oddjob oddjob-mkhomedir sssd
realm join --user=your-domain-admin-username@yourdomain.local yourdomain.local realm list