Hi@akhtar,
To install httpd web server in CentOS/RHEL machine, follow the below given steps.
$ yum install httpd
$ systemctl start httpd
$ systemctl enable httpd
If you are using Ubuntu system, then follow the below given steps to install httpd web server.
$ sudo apt install apache2
$ sudo service apache2 start