Wednesday, December 25, 2019

Install httpd webserver on Linux RedHat, CentOS or AWS Linux instance

1. Install HTTPD on AWS Linux:
sudo yum -y install httpd

2. Start HTTPD service:
sudo service httpd start

3. Check status:
sudo service httpd status
Active: active (running) since Wed 2019-12-25 23:27:19 UTC; 1s ago


4. Default webfolder is under:
cd /var/www/html

5. Create a sample hmtl file:
touch index.html

vi index.html

Add Test:
Hello dtechie!

Save.

5. Under AWS Security Group, add the following inbound rule:











6. Test by navigating to instance public IP/DNS: 

No comments:

Post a Comment