How to? Install Apache Server on CentOS…
What is Apache Server
Apache Server provides secure, efficient and extensible server that provides HTTP services.
Apache Server is available in Cent OS repository.
sudo yum update httpd
Once packages are up-to date
sudo yum install httpd -y
Once apache is installed, it is time to open the port 80 to allow apache server request over HTTP.
To allow apache server request over HTTPS open port 443 by enabling https service.
sudo firewall-cmd --permanent --add-service=http
sudo firewall-cmd --permanent --add-service=https
Now reload the services
sudo firewall-cmd --reload
sudo systemctl start httpd
sudo systemctl enable httpd
sudo systemctl status httpd
That is it. Apache is successfully installed and services are allowed in firewall.
Confirm the same by landing the Apache default page in a Webpage. First find your system local IP address in which Apache is configured.
Use the following command,
hostname -I
If multiple IP addresses are displayed try them in different pages in your browser.
http://your_local_server_ip
You should see the below default Apache Webpage:

That is it, Apache has been configured successfully in your server…
Additional httpd service commands are,
Check Apache status,
sudo systemctl status httpd
Stop Apache Webs Server
sudo systemctl stop httpd
Start Apache Webs Server
sudo systemctl start httpd
Restart Apache Webs Server
sudo systemctl restart httpd
Reload Apache Webs Server
sudo systemctl reload httpd
Disable Apache Webs Server
sudo systemctl disable httpd
Enable Apache Webs Server
sudo systemctl enable httpd