Aws

From Wiki2
Revision as of 00:13, 6 January 2012 by Tim (talk | contribs)

most current on top

AMI: turnkey-lamp-11.3-lucid-x86.ebs (ami-c5458eac

to connect to bitnami wordpress instance i-98cebbfa AMI: bitnami-wordpress-3.3-2-linux-ubuntu-10.04-ebs (ami-8139ece8)

ssh -i .ssh/hpkey.pem bitnami@107.21.243.191

to connect to phpMyAdmin

ssh -v -N -L 8080:127.0.0.1:80 -i .ssh/hpkey.pem bitnami@107.21.243.191

name, webserver

mckenna.tim

user, bitnami


ami, server hpkey.pem for cygwin hpkey.ppk for winscp ssh -i .ssh/hpkey.pem ec2-user@ec2-50-17-136-39.compute-1.amazonaws.com


setting up accounts

useradd -d/home/sitebuil sitebuil
passwd sitebuil

create a publichtml and set permissions

[root@openeyeworld home]# chmod 711 /home/sitebuil
[root@openeyeworld home]# cd sitebuil/
[root@openeyeworld sitebuil]# chmod ugo+rx -R public_html

apache etc/httpd.conf setup

<IfModule mod_userdir.c>
	#
	# UserDir is disabled by default since it can confirm the presence
	# of a username on the system (depending on home directory
	# permissions).
	#
	#UserDir disable

	#
	# To enable requests to /~user/ to serve the user's public_html
	# directory, remove the "UserDir disable" line above, and uncomment
	# the following line instead:
	#
	UserDir public_html

</IfModule>

#
# Control access to UserDir directories.  The following is an example
# for a site where these directories are restricted to read-only.
#
<Directory /home/*/public_html>
	AllowOverride FileInfo AuthConfig Limit
	Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
	<Limit GET POST OPTIONS>
		Order allow,deny
		Allow from all
	</Limit>
	<LimitExcept GET POST OPTIONS>
		Order deny,allow
		Deny from all
	</LimitExcept>
</Directory>


cname

at http://namecheap.com mckennatim nanj. Set cname for www to load balancer address and then redirect the 'apex' (wrec.us) to the www...

@ 	 http://www.wrec.us 	URL Redirect
0www 	 loadBalancer-1126309168.us-east-1.elb.amazonaws.com  CNAMe