Step 1 — Installing the Apache Web Server sudo yum install httpd sudo systemctl start httpd to know your server’s public IP ip addr show eth0 | grep inet | awk '{ print $2; }' | sed 's/\/.*$//'