amazon-ec2

Port backend created in XAMPP to AWS server (EC2)

Hi I am using AWS EC2 to create a back end for my website. I already have an AWS account and EC2 subscription. I am familiar with LAMP and so am creating a database and some scripts locally using XAMPP. Now I want to know how I can port these to my AWS server. How do I upload script files to the server and how do I port the MySQL datab...

Hosting Static sites via EC2 ELB and Cloudfront

Hi Looking to host multiple static web sites by pointing DNS to an Elastic Load Balancer and serving the content via Cloudfront. Is this a plausible approach? Are there any gotchas we should look out for. How should we configure DNS for each site? Appreciate any thoughts on this Dom ...

Automating Amazon EBS snapshots anyone have a good script or solution for this on linux

I'd expect this to be fairly routine, but cannot find a simple approach for creating an managing EBS snapshots automatically. Was hoping there'd be a shceduler in the AWS console.. alas not yet. Would appreciate any suggestions as to how best to do this on from Ubuntu. Thanks ...

Open Source Amazon EC2?

Are there any open source applications that provide a set of features similar to that of Amazon EC2 or Rackspace Cloud? Basically, I want a tool that I can install on one or more servers that works with a virtual machine monitor like Xen and lets me create, destroy, and clone virtual machines on the fly using some sort of API. ...

How do I properly snapshot an EBS volume with a RabbitMQ instance running?

I'm using RabbitMQ on an EC2 instance and I have the Mnesia tables on an EBS volume, so when I snapshot it and try to launch another instance with the same data, it appears that the table is in use by another RabbitMQ instance. Is the only way to get around this to shut RabbitMQ down for the flush/snapshot and then start it back up once...

Speed up database inserts from ORM

I have a Django view which creates 500-5000 new database INSERTS in a loop. Problem is, it is really slow! I'm getting about 100 inserts per minute on Postgres 8.3. We used to use MySQL on lesser hardware (smaller EC2 instance) and never had these types of speed issues. Details: Postgres 8.3 on Ubuntu Server 9.04. Server is a "large"...

Tutorial On Deploying Rails Apps to the Amazon Cloud?

I'm looking for a solid beginning-to-end type tutorial for deploying a Rails application to the Amazon Cloud. Hopefully such a tutorial would include guidance on how, if at all, S3 should be used as well as managing all your persisted data collected in your database of choice. ...

MySQL can support Autoscaling when we use Amazon EC2

I don't know MySQL has autoscaling property when we use Amazon EC2. ...

How do I put my PHP files on a Linux AMI on EC2 - dreamweaver / FTP / SSH ?

I have launched an EC2 linux instance (a rightscale CentOS v 5.2 i386 image) and want have followed a tutorial (http://www.ardentsoft.com/blog/2009/3/4/lamp-on-ec2-part-6-configuring-apache.html) for configuring PHP and Apache. Now I need to know how to get my PHP files from my dedicated server up to the cloud. I usually use dreamweaver ...

Help with uploading images to EC2 instance (Flash -> PHP)

I have developed an image uploading application that uses Flash to load an image, resize the image and send the bytearray of the image data to a PHP file that outputs the resized file using the following code - $default_path = '/uploads/temp/'; $filename = $_GET["filename"]; $destination = $default_path . $filename; if(file_put_contents...

What user is PHP on my CentOS linux box? root?

Hi I am trying to troubleshoot why I cannot get files to upload to my CentOS machine running on EC2 and think it may be a permissions problem (as I have gleamed from previous questions). How do I check what privileges my PHP installation has for writing files. The directory that I want to write files to has been created in the same folde...

How do i fix my S3/memcache latency problem?

We have SERIOUS latency issues SOMETIMES on our server. We store 3 things of interest in S3 and stuff them into memcache as well. User avatars averaging ~25k text ~1.5k xml ~1.5k we have dedicated 128meg of ram for memcached as of right now... as of right now it is riding 74 meg of it doing some basic math we should easily be able ...

Port LAMP application to EC2

Any good resource on how to port a LAMP stack to Ec2? Mainly I'm concerned about storage, the MySQL part. The existing app works agains a single store. Do I need to port all my storage to S3? Will the EC2 instances be able to share a single MySQL database? Alternatively I can partition my data and have a single database for each EC2 ima...

Cannot connect to a modified (bundled and registered) Amazon AMI

Hi all, I am having problems connecting to an AMI that I created by modifying an existing linux ami, bundling it and registering it. Heres what I did - Launch existing CentOS AMI (ami-cb52b6a2) - this is a Rightscale LAMP image configured Apache, PHP etc and copied over some PHP scripts etc Tested it - all worked as I want it to I bun...

Help understanding Amazon Web Services pricing

Hi I am trying to understand Amazon's pricing for regional data transfer... I have an EC2 instance in a us-east region and an S3 bucket in the EU. I am also using a 3rd party service that uses an EC2 instance that is only available in the US. Can someone help to clarify what I am charged and where. Data can take one of 2 routes: 1GB...

How to create an Amazon EC2 AMI from an instance?

How to create an EC2 AMI from an instance? Ok, so I got an EC2 account. I launched an instance with Fedora 8, Apache, MySQL PHP. I also configured some things and installed Piwik. "Cool...", I thought, "... I should now be able to create an AMI with that custom configuration. Instead, all I can find are guides with 300 steps on how to c...

how to use a private yum repo on amazon-s3 to provision amazon-ec2 instances?

My fantasy is to be able to spin up a standard AMI, load a tiny script and end up with a properly configured server instance. Part of this is that I would like to have a PRIVATE yum repo in S3 that would contain some proprietary code. It seems that S3 wants you to either be public or use AMZN's own special flavor of authentication. Is...

In python, how do you launch an Amazon EC2 instance from within a Google App Engine app?

In python, what is the best way to launch an Amazon EC2 instance from within a Google App Engine app? I would like to keep my AWS keys as secure as possible and be able to retrieve the public DNS for the newly launched EC2 instance. ...

how do I use SonofMMM public AMI and BOTO to convert video in my existing PHP based web application

Hi all I have developed a web app that users can upload video to and have it converted. So far I have been using a LAMP based EC2 instance to upload videos to and then call a third party service to do the video conversion. The service is called using REST. The video is retrieved from the EC2 location and converted then output to an S3 b...

Best practices for developing scalable video transcoding server on Amazon Web Services?

What do people think are the most important issues when developing an application that is going to allow users to upload video and images to a server and have them transcoded by FFMPEG and stored in amazon S3? I have a couple of options; 1) install FFMPEG on the same server that handles file uploads, when a video is uploaded and stored ...