This article describes how to create an Apache web server installation that you can use for local testing.
Apache is a popular open-source web server. It is used on many A2 Hosting servers, and is a good choice for your own testing environments.
To install Apache on your virtual machine, follow these steps:
yum install httpd
After installation completes, type the following command to start Apache:
systemctl start httpd
To confirm Apache is running, type the following command:
systemctl status httpd
You should see Active: active (running) in the output.
To make Apache start automatically on system boot, type the following command:
systemctl enable httpd