Browsing articles in "Amazon"
Sep
1
2010

Remote debugging using Zend Studio 8 and EC2

Putty Session

Been looking at alternatives to PHPEd and thought I would install Zend Studio to see what it is like. After install I wanted to debug direct on a EC2 instance I had set up for testing purposes, however I was having great trouble with it, I kept getting errors such as it stalling on “testing communication with client host/IP” What was happening is that because I am at work the firewall was not allowing data [...]

Sep
1
2010

Could not stat /dev/sdf

Was playing aound with some Fedora 12 instances I had created on Amazon EC2. However I was coming across a problem where I created a volume, attached it in the Management Console but when I ran the following to format it, it didn’t work giving the error: could not stat /dev/sdf mkfs -t ext2 /dev/sdf To solve this, and this is just a workaround as far as I know, don’t use it for production servers [...]

Aug
5
2010

[RequestTimeTooSkewed] The difference between the request time and the current time is too large.

One of my auto backup scripts to S3 suddently stopped working with the error: [RequestTimeTooSkewed] The difference between the request time and the current time is too large. After a bit of digging around I noticed on the server if I issued the command: date I would get a wildly out of sync time. To solve this I used the following command as root: ntpdate us.pool.ntp.org After this the time was synced and the backup [...]

Jul
13
2010
EBS // S3

Mount EBS Volume on EC2

Mount S3

To mount a Elastic Block Store to your EC2 Instance open up your AWS Console at https://console.aws.amazon.com Click on “Volumes” and right click on an available Volume. Then attach this to the instance you want to use. It will ask you for a device name, you are prob using Linux so choose one you aren’t using from /dev/sdf through to /dev/sdp (we are going to use /dev/sdf for the rest of this article) It will [...]

Jul
13
2010
Amazon // EC2 // S3

Backup MySQL and Files on Amazon EC2 to S3

I was looking for a way to do daily and weekly backups from my EC2 Instances to Amazon’s fantastic S3 service. Finally worked out a way of getting it to all work, works pretty well if I say so myself To do this you will need to have set up a S3 account and got your key and secret handy. Step 1 – Download required Files I am using the S3 PHP class file from [...]

Jul
13
2010

Restarting Apache on EC2

To restart Apache from the command line from a Amazon EC2 Instance simply type: /sbin/service httpd restart