Installing an Apache Web Server on CentOS 7 server
1. Required items:
a. Root (sudo) access
b. Server IP address
c. Public internet access
2. Check for available updates (packages) for installed version Update all packages on the server
sudo yum check update
3. Download and install the package(s) (Utilize the password for cloud_user)
sudo yum install update
4. Installation complete:
5. Install Apache HTTP Webserver (Utilize the password for cloud_user)
sudo yum install httpd
6. Start Apache Webserver HTTP Service (Utilize the password for cloud_user)
systemclt start httpd
7. Enable Apache webserver HTTP service (Utilize the password for cloud_user)
systemctl enable httpd
The systemctl enable httpd command also prompts the user to reload the systemd state, basically performing a “refresh” of the system and services manager and requires a password.
8. Check the status of the Apache server’s HTTP service
systemctl status httpd
9. To test the Apache HTTP web server installation. Open a browser and enter the IP address that was initially provided: (ex: http://3.231.169.212)
http://34.231.169.212
If after entering your IP address, you reach a landing page similar to the above screen shot, you have successfully installed an Apache HTTP server on a CentOS server. If you do are reach the above landing page please continue with the below steps.