Configure Apache web server on Linux

Procedure
  1. Update the yum package.

    yum -y update

  2. Install Apache on Linux.

    yum -y install httpd

  3. Start the Apache service.

    systemctl start httpd

    Restart the Apache service if there was configuration changes.

    systemctl restart httpd
  4. To verify that the web server has been installed correctly, open the Apache server using a web browser with IP (http) address.