When configuring a LAMP server on CentOS 7, do I need to to setup first a public IP address before my website to be accessible on the browser?
I already tried configuring the /etc/sysconfig/network-scripts/ifcfg-eth0 and adding the following items:
IPADDR, NETMASK, GATEWAY, DNS1, DNS2
But I'm not sure if I added the right IPADDR, NETMASK, GATEWAY, DNS1 and DNS2, because when I tried to access my IP to the browser it doesn't show the apache page that I already installed. I also already allowed it to the firewall by typing
firewall-cmd --zone=public --permanent --add-service=http firewall-cmd --zone=public --permanent --add-service=https firewall-cmd --reload