Posts

Showing posts with the label Installing apache in EC2 instance

Content

                                                  Content How to create an AWS free Account? Lab 1: To launch amazon Linux EC2 instance Lab 2: To Connect to the instance from Linux client Operating System Lab 3:To Launch amazon windows instance Lab 4: Installing apache in EC2 instance Lab 5: Installing Nginx in EC2 instance Lab 6: Changing Host Name Lab 7: Creating a user and making as a sudoer Lab 8:Assigning an Elastic ip Lab 9:Creating ebs,attach and detach the volumn to the instance Lab 10:Creating an S3 Bucket and creating cross replication in another region Lab 11:Load Balancer Lab 12:Two instances with Application Load Balancer Lab 13:Launching two instances with load Balancer Lab:14 Creating Own VPC  Lab 15: Two instances which classic load Balance with own VPC Lab 16:Two instances with Application load Balancer with own VPC Lab 17: Relational Data B...

Lab 4: Installing apache in EC2 instance

Image
                                                Lab 4: Installing apache in EC2 instance Refer above how to launch an instance an and how to connect to the instance in git bash. Pem file copied to server Now connect to the ec2 user #ssh -i <pemfile>ec2-user@ipaddress Now change the pem file permissions #chmod 400<pemfile> Now check the weather pem file is there or not in the server #ls Now switch to root user #sudosu Now install the apache in the server #yum install httpd -y After installing start the apache #systemctl start httpd After installing check wheather apache installed or not #ps-ef|grep httpd Apache installed now start the apache And check wheather apache start or not #ps-ef|gerp httpd Now go the instance add inbound rule port 80 in security group and save it. Apache will run on port 80 so if we want to access the apache page .We need add http po...