Amazon EC2 で LAMP

small で運用 community におちてる AMI CentOS 5.5

passwd root
cp -p /usr/share/zoneinfo/Japan /etc/localtime
chkconfig anacron off
chkconfig avahi-daemon off
chkconfig bluetooth off
chkconfig cups off
chkconfig gpm off
chkconfig hidd off
chkconfig ip6tables off
chkconfig irda off
chkconfig isdn off
chkconfig rpcgssd off
chkconfig rpcidmapd off
chkconfig portmap off
chkconfig readahead_early off
chkconfig pcscd off
chkconfig yum-updatesd off
cd /usr/local/src
wget http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
rpm -Uvh remi-release-5*.rpm epel-release-5*.rpm
yum --enablerepo=remi,epel install php-devel php php-mysql php-mcrypt php-mbstring  gd-devel libpng-devel libjpeg-devel php-gd php-xml php-pear
yum install httpd httpd-devel
wget http://pecl.php.net/get/APC-3.1.3p1.tgz
tar zxvf APC-3.1.3p1.tgz
cd APC-3.1.3p1
phpize
./configure && make && make install

Volumes から EBS 追加、available になったら
yes | mkfs -t ext3 /dev/sdf
mkdir /vol
mount /dev/sdf /vol