Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am just starting off with amazon webs services.

I do have an aws account and using Windows as Client.

I am unable to find some good start up tutorials regarding using EC2 services. All I want to do is to start an EC2 server an upload some php files.

Please guide.

share|improve this question

closed as too broad by mdpc, Ward, Tim Brigham, EEAA, TheCleaner Mar 18 at 13:21

There are either too many possible answers, or good answers would be too long for this format. Please add details to narrow the answer set or to isolate an issue that can be answered in a few paragraphs.If this question can be reworded to fit the rules in the help center, please edit the question.

Read the Getting Started guide. If you will be running a linux instance, get PuTTY setup, and use WinSCP to transfer files - use the AWS web console to launch your instances. You will need to install a web server (e.g. Apache/Nginx/Lighttpd), as well as PHP (and possibly MySQL) - and will need to open port 80 in your security group. Alternatively, you could try the Bitnami AMIs, which include an already configured LAMP stack. –  cyberx86 Mar 14 '12 at 8:07
Thanks for the prompt reply . Followed the steps and was finally able to upload my php script and access it from browser. I had another query. Suppose more than one ec2 instances are running, and if i change some file in any one of the instance, can the change be reflected/propagate through all of the running instances. Basically what I am trying to achieve , is running several instances which have the common php script. But I do not want to upload/modify it separately in each of them. Is this possible ? Thanks once again. –  user113981 Mar 14 '12 at 10:01
Few things are outright impossible. Setting up what you want is a bit more challenging than a basic LAMP stack though. Rsync, incron, post-commit hooks, or distributed file systems (e.g. GlusterFS) would be good starting points. Take a look at this answer for some details. You could also use something like s3fs, although the merits of that are debatable. A server that pulls the latest code from a repository when it launches and is updated by a post-commit hook would work well with autoscaling. –  cyberx86 Mar 14 '12 at 10:13
Thanks. Will be going through these and update my findings. Meanwhile, I was playing with the loadbalancer option in the aws console. Started 2 linux instances, and created a new loadbalancer with these 2 instances running. The rest params were kept default as in the docs (for http). Still , it always shows "Status: 0 of 2 instances in service" and both instances show up "Out of Service- instance registration is still in progress". Can you please point out what could have went wrong? Thanks. –  user113981 Mar 14 '12 at 12:29
At a guess, I'd suggest a mis-configured health check, but you'd need to provide more information to be sure. See if you can retrieve the path you setup for your health check from a remote computer/browser and check your web-server error logs for more clues. –  cyberx86 Mar 14 '12 at 21:12