Lab 7.0: Apache
Summary
Commands
vi /etc/ssh/sshd_config
- about to change the SSH settingssudo yum install httpd
- install httpd servicefirewall-cmd --add-service="service" --permanent
- to allow a service through the firewallyum install -y php
- install php
Steps
Get http service
setup like any other Linux box
vi /etc/ssh/sshd_config
find lime#PermitRootLogin yes
changeyes
tono
and get rid of the#
sudo yum install httpd
- stall http serviceallow http and https throught the firewall
firewall-cmd --add-service=http --permanent
andfirewall-cmd --add-service=https --permanent
connect to webiste through
hostname
PHP setup
yum install -y php
- install phpvi /var/www/html/index.php
this allows you to edit thehostname/index.php
pagethe
/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
Last updated