How to set up AWS EC2 with apache

amazon ec2amazon-dynamodbamazon-web-servicesapache-2.2

I am new to AWS and I have some basic set up questions that I can't find answers to.

1) I have created an EC2 instance using the default Amazon Linux AMI. How can I install apache? Then how can I confirm what is installed?

2) I have downloaded the Eclipse toolkit and SDK for the aws products. I have written some code that can take data and push it into my dynamoDB table. I can connect and run this successfully from my local PC. How will this work on the cloud? What do I need to do to get my application working on my EC2 instance?

Thank you in advance

Best Answer

1) The package manager for Linux AMI is yum, the same one you use on RHEL/CentOS. So if you run something like that:

sudo yum install -y httpd php php-pear mysql mysql-server perl php-common php-dba php-pdo php-mysql php-xml php-xmlrpc

This will install all the LAMP stack. Check the console if was installed properly.

To start the service run:

service httpd start

Before doing that make sure to check the config file.

2) Eh the best think to try how it will work it to actually try ? :)

Related Topic