Saturday, 18 July 2020

install apache on EC2 instance

This post will answer the questions:
---------------------------------------------------------------------------------------------------------------------------- 
  1. install apache on EC2 instance?
  2. How to convert EC2 instance into web based server?

-----------------------------------------------------------------------------------------------------------------------------


apache basically turn our EC2 instance in to web server.
  • issue the command yum install httpd -y
  • Navigate to /var/www/html
  • whatever the html code, we keep in directory /var/www/html  will be accessible  to port 80.
  • To start httpd service > service httpd start
  • issue the command :chkconfig on 
                 to avoid inconsistency of starting the service, due to server reboot.
Thats all for apache server configuration.

To cross check the configuration, paste public ip of EC2 instance in google chrome.The expected result would be html code in /var/www/html

No comments:

Post a Comment