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_configfind lime#PermitRootLogin yeschangeyestonoand get rid of the#sudo yum install httpd- stall http serviceallow http and https throught the firewall
firewall-cmd --add-service=http --permanentandfirewall-cmd --add-service=https --permanentconnect to webiste through
hostname
PHP setup
yum install -y php- install phpvi /var/www/html/index.phpthis allows you to edit thehostname/index.phppagethe
/var/www/htmlis where all website-related documents are stored
Join Linux to domain
sudo yum install realmd samba samba-common oddjob oddjob-mkhomedir sssdrealm join --user=your-domain-admin-username@yourdomain.local yourdomain.local realm list
Last updated