First of all, launch an EC2 with this AMI (for cost effective, this blog uses spot micro instance for example)

Launch Instance

"ubuntu/images/ebs/ubuntu-precise-12.04-amd64-server-20120616 (ami-5965401c)"

you can easily find this AMI by searching the AMI ID: ami-5965401c

Connect to remote server

In your mac, open the terminal

ssh -i [security_key.pem] ubuntu@[ec2_public_DNS]

Trouble shooting

if you get into trouble with some error message like “RSA host key has changed …" when you try to connect to remote server,

follow this to delete some text in .ssh/known_hosts file on your local machine:

For example in my mac

open .ssh/known_hosts file by (where sb is my self-defined command for sblime text 2, you might just open it with your favorite editor)

sb ~/.ssh/known_hosts

delete the whole entry of problem ip

Install LAMP

Follow this to install LAMP-server by typing

sudo apt-get update
sudo tasksel install lamp-server

Install phpmyadmin

sudo apt-get install phpmyadmin




Include /etc/phpmyadmin/apache.conf

Then restart server

sudo /etc/init.d/apache2 restart


Install WordPress

it should be pretty easy when you done this far
root to blog directory and download latest wordpress file, unzip it then open your browser on http://your_domain/blog

cd /var/www/blog
tar -xzvf latest.tar.gz

Config wordpress install themes/plugins without ftp: add this to wp-config.php

define('FS_METHOD', 'direct');


comments powered by Disqus