LAMP stack on Amazon EC2
This post lists down the high level steps and useful links to get started with EC2
Tools:
- Elasticfox- Firefox Add-On, to manage your instance via Firefox.
- S3Fox- Firefox Add-On, to manage your S3 buckets, ACL and files via Firefox. Only issue is that I cannot set the expire time using S3Fox … you can go for BucketExplorer, costs $30. I use S3Fox to upload / download files from my desktop
- s3sync- Ruby based command line utility to manage your buckets, files etc. I have it installed on my instance, to sync up my datafiles etc to S3 on a daily / weekly basis
To Sync the entire folder – use s3sync
./s3sync.rb -r /directory/to/sync bucket-name:directory/path
To Upload one file – use s3cmd
./s3cmd.rb put bucket-name:path/to/file/file-name /path/to/source/ - Putty – to ssh or scp to the instance, if on windows. Refer to the amazon for details on setup
Setup:
- Create the credentials for Amazon for EC2, S3, EBS, Cloudfront
- Create the security group in EC2
- Launch the instance with the preferred AMI
- Setup EBS of desired size
- Configure MySQL, Apache to run from EBS
- setup s3sync
Excellent post on this topic: “Tutorial: Running a php/mySQL server on EC2 with EBS”
