Join our Discussion Boards - Here

How to build subversion 1.7.2 on a Amazon ami from source

Get the source code

wget http://mirror.nus.edu.sg/apache/subversion/subversion-1.7.2.tar.gz

extract it

tar xvfz subversion-1.7.2.tar.gz

then go into directory

cd subversion-1.7.2

I need to get Sqlite since the one installed did not play nice, I followed the error instructions;

get the sqlite 3.7.6.3 amalgamation from:

http://www.sqlite.org/sqlite-amalgamation-3.7.6.3.tar.gz

unpack the archive using tar/gunzip and copy sqlite3.c from the . . . → Read More: How to build subversion 1.7.2 on a Amazon ami from source

Linux AMI and Nginx with PHP-FPM and APC for Magento 1.4.1

These notes are not complete but were about 99% there.

Install Nginx

sudo yum install make bison flex gcc patch autoconf subversion locate

sudo yum install libxml2-dev libbz2-dev libpcre3-dev libssl-dev zlib1g-dev libmcrypt-dev libmhash-dev libmhash2 libcurl4-openssl-dev libpq-dev libpq5 libsyck0-dev

sudo yum install mysql mysql-devel mysql-server

sudo yum install pcre-devel httpd-devel

wget http://nginx.org/download/nginx-0.8.53.tar.gz

tar xvfz nginx-0.8.53.tar.gz

. . . → Read More: Linux AMI and Nginx with PHP-FPM and APC for Magento 1.4.1

Nginx, PHP-FPM and APC on Ubuntu 10.10

Launch a ami-68136d3a ami on ec2 – I used a micro instance

Need to login at the ubuntu user

ssh -i /Users/gary/SG2.pem ubuntu@175.41.174.248

install php

sudo apt-get install php5-cli apache2 php5-mysql libapache2-mod-php5 mysql-server libipc-sharedcache-perl tinyca mailx

sudo /etc/init.d/apache2 restart

check that it works

php.info

Now install APC

sudo apt-get install apache2-dev php5-dev . . . → Read More: Nginx, PHP-FPM and APC on Ubuntu 10.10

How to Install a Puppet Master and Client Server on Centos 5.2

Puppet is an open-source next-generation server automation tool. It is composed of a declarative language for expressing system configuration, a client and server for distributing it, and a library for realizing the configuration.

Setup the EPEL repos for Centos – choose the correct package depending on  your installation.

rpm -Uvh http://download.fedora.redhat.com/pub/epel/5Server/x86_64/epel-release-5-3.noarch.rpm

rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm

. . . → Read More: How to Install a Puppet Master and Client Server on Centos 5.2

AttributeError: CHECKSUM_VALUE Error with Rightscale Centos AMI Creation Script

Rightscale created a great script to build an AMI from scratch – see http://blog.rightscale.com/2007/09/26/rightimages-changelog/

I got this error when trying to build the image from YUM.

AttributeError: CHECKSUM_VALUE rightscale

This worked for me;

rpm -qa | grep yum-metadata-parser rpm -ev –nodeps yum-metadata-parser-VERSIONFROMABOVECMD

cd /tmp wget ftp://ftp.univie.ac.at/systems/linux…8.fc6.i386.rpm rpm -iv ./yum-metadata-parser-1.0-8.fc6.i386.rpm  yum check-update

See - http://www.linuxforums.org/forum/redhat-fedora-linux-help/122580-solved-yum-update-fails-attributeerror-checksum_value.html

How To Create a Centos 5.2 EC2 Amazon Machine Image – AMI

Create the disk image dd if=/dev/zero of=my-image.fs bs=1M count=1024 Create root file system inside file mke2fs -F -j my-image.fs Mount it mkdir /mnt/ec2-fs mount -o loop my-image.fs /mnt/ec2-fs Create /dev mkdir /mnt/ec2-fs/dev Populate /dev with a minimal set of devices /sbin/MAKEDEV -d /mnt/ec2-fs/dev/ -x console /sbin/MAKEDEV -d /mnt/ec2-fs/dev/ -x null /sbin/MAKEDEV -d /mnt/ec2-fs/dev/ -x . . . → Read More: How To Create a Centos 5.2 EC2 Amazon Machine Image – AMI

Two Great Firefox Extensions for Amazon EC2 and S3

These are great tools to get started on Amazon’s EC2 and S3 products.

Elasticfox - http://developer.amazonwebservices.com/connect/entry.jspa?externalID=609

S3fox - https://addons.mozilla.org/en-US/firefox/addons/policy/0/3247/41288

Anyone know of any better/alternative tools, let me know.

How To Install EC2 Automatic Scaling App Scalr on Centos 5.2

Scalr is a fully redundant, self-curing and self-scaling hosting environment utilizing Amazon’s EC2.

It allows you to create server farms through a web-based interface using prebuilt AMI’s for load balancers (pound or nginx), app servers (apache, others), databases (mysql master-slave, others), and a generic AMI to build on top of. (see http://code.google.com/p/scalr/)

Install the necessary . . . → Read More: How To Install EC2 Automatic Scaling App Scalr on Centos 5.2

How to Setup Amazon EC2 AMI Tools on Vista

Download the zip package – http://s3.amazonaws.com/ec2-downloads/ec2-ami-tools.zip

Unzip it and put it in C:\ec2

Set your environment variables, there are 2 ways to do this. 

1. Control Panel – System – Advanced System Settings – Environment Variables – User Variables

2. In the cmd application

This are the cmd.exe commands to set variables.

Set Java . . . → Read More: How to Setup Amazon EC2 AMI Tools on Vista