Installing Apache
Apache is a popular open-source web server. It is used on many hosting.com servers, and is a good choice for your own testing environments. To install Apache on your virtual machine, follow these steps:- Start the virtual machine, if you haven’t already.
- Log in to the virtual machine as the root user.
-
At the command prompt, type the following command to install Apache:
👍 Tip httpd is short for “HTTP daemon” — don’t worry, you are installing Apache.
-
At the Is this ok prompt, type
yand then press Enter. The installation process begins. -
After installation completes, type the following command to start Apache:
-
To confirm Apache is running, type the following command:
-
To make Apache start automatically on system boot, type the following command:
- You are now ready to configure the web server. For information about how to do this, you can view the official online Apache documentation at https://httpd.apache.org/docs.