Wednesday 11 January 2012

AWS simple steps

1.) new instance
2.) download the private key (enterprisedhosts.pem)
3.) ssh -i enterprisedhosts.pem ec2-user@ec2-175-41-160-86.ap-southeast-1.compute.amazonaws.com
4.)   sudo yum -y update
5.)    sudo yum -y install aspell aspell-en aspell-fr aspell-es cvs httpd mysql mysql-server php php-cli php-gd php-intl php-mbstring php-mysql php-pdo php-soap php-xml php-xmlrpc php-pspell
6.)    sudo yum list installed
7.) start services also when machine is restarts
sudo  /sbin/chkconfig httpd on
 sudo   /sbin/chkconfig mysqld on
 sudo  /sbin/service httpd start
 sudo   /sbin/service mysqld start

------------------------------------
change mysql pass:
/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h ip-10-128-194-183 password 'new-password'

--------------------------------------
If you need to edit httpd.conf it is in /etc/httpd/conf
8.)     sudo  /sbin/service httpd restart


9.) create new elasticIP address and associate it with an instance
10)go to security / groups and open port 80 (depends in witch groups belongs tour instance)

11.) open Public DNS: ec2-46-137-241-215.ap-southeast-1.compute.amazonaws.com

TARaaaaa :D


SOS:
NEXT TIME LOGIN TO:
ec2-46-137-241-215.ap-southeast-1.compute.amazonaws.com
because we change the ip:

msRoot:ssh -i enterprisedhosts.pem ec2-user@ec2-46-137-241-215.ap-southeast-1.compute.amazonaws.com



--install git and clone a repo
edit: sudo vim index.html
and:
http://ec2-46-137-241-215.ap-southeast-1.compute.amazonaws.com/git/html5boilerplate_t/

No comments:

Post a Comment