# Install Apache
yum install httpd

# Configure Apache
vim /etc/httpd/conf/httpd.conf
##### Change port
NameVirtualHost 127.0.0.1:8080
Listen 127.0.0.1:8080
#####
#### Set DocumentRoot
DocumentRoot "/var/www/kimconnect"
#####

# Install PHP5
yum install php
# Create phpinfo() page
echo "<?php phpinfo(); ?>" | sudo tee /var/www/kimconnect/info.php

# Configure firewall
firewall-cmd --permanent --zone=public --add-port=8080/tcp
firewall-cmd --reload

# Set security context for Apache
setsebool -P httpd_can_network_connect on

systemctl enable httpd
systemctl start httpd
systemctl status httpd