[AWS] setup a lamp with phpmyadmin on AWS ec2

launch ec2 with this ami

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

in mac

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

follow this to install LAMP-server by typing

sudo apt-get update

sudo tasksel install lamp-server

as for phpmyadmin

sudo apt-get install phpmyadmin




Include /etc/phpmyadmin/apache.conf

then restart server

sudo /etc/init.d/apache2 restart

trouble shooting:

RSA host key  has changed …

follow this to:

in mac

sblime ~/.ssh/known_hosts

delete the entry of problem ip



wget http://wordpress.org/latest.tar.gz
tar -xzvf latest.tar.gz

install things without ftp

add this to wp-config.php
define(‘FS_METHOD’, ‘direct’);

About these ads



WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 變更 )

Twitter picture

You are commenting using your Twitter account. Log Out / 變更 )


You are commenting using your Facebook account. Log Out / 變更 )

Google+ photo

You are commenting using your Google+ account. Log Out / 變更 )

連結到 %s