53
WORDPRESS ON AMAZON AWS #WPPARRA

WPParra AWS

Embed Size (px)

Citation preview

Page 1: WPParra AWS

W O R D P R E S S O N

A M A Z O N A W S

# W P P A R R A

Page 2: WPParra AWS

W H A T I S A W S ?

Amazon Web Services - aws.amazon.com

Hosting in the cloud!

Virtual Private Server

Free! (kind of…. and not really)

Page 3: WPParra AWS

I N S T A L L I N G W O R D P R E S S O N

A W S

This tutorial already exists! Check out:

http://docs.aws.amazon.com/AWSEC2/latest/User

Guide/hosting-wordpress.html

(Or just Google amazon aws wordpress)

Page 4: WPParra AWS

B E F O R E Y O U C A N S T A R T T H E

T U T O R I A L

1. Sign up for AWS

Go to aws.amazon.com and click on “Try

AWS for free” or “Sign in to the console” if

you have an account already.

Page 5: WPParra AWS

B E F O R E Y O U C A N S T A R T T H E

T U T O R I A L

1. Sign up for AWS

Go to aws.amazon.com and click on “Try

AWS for free”

Page 6: WPParra AWS

2. Create an instance

In the EC2 Dashboard, click on “Launch

Instance”

What kind of instance? I prefer Ubuntu as

I’ve found there’s more tutorials for when

things go wrong!

Page 7: WPParra AWS
Page 8: WPParra AWS
Page 9: WPParra AWS
Page 10: WPParra AWS
Page 11: WPParra AWS
Page 12: WPParra AWS
Page 13: WPParra AWS
Page 14: WPParra AWS
Page 15: WPParra AWS

So now we have a virtual server dedicated

to just our WordPress site and our site

alone.

But it’s not ready yet - it’s not a web server

yet!

Page 16: WPParra AWS

3. Install Apache and MySQL

We need to install the software to allow our

server to actually serve websites.

Telnet into our server and get it up and

running.

Page 17: WPParra AWS

3. Install Apache and MySQL

We need to install the software to allow our

server to actually serve websites.

Telnet into our server and get it up and

running.

Page 18: WPParra AWS

3. Install Apache and MySQL

We need to install the software to allow our

server to actually serve websites.

Telnet into our server and get it up and

running.

Page 19: WPParra AWS
Page 20: WPParra AWS
Page 21: WPParra AWS
Page 22: WPParra AWS
Page 23: WPParra AWS
Page 24: WPParra AWS
Page 25: WPParra AWS
Page 26: WPParra AWS
Page 27: WPParra AWS
Page 28: WPParra AWS

So now we have a web server!

Page 29: WPParra AWS

4. Get WordPress

Next we will download the latest version of

WordPress.

Page 30: WPParra AWS

3. Install WordPress

Next we will download the latest version of

WordPress.

Page 31: WPParra AWS

5. Unzip WordPress

Next we will download the latest version of

WordPress.

This will give us a tarball, which is like a zip

file. Unzip the file!

Page 32: WPParra AWS

3. Install WordPress

Next we will download the latest version of

WordPress.

This will give us a tarball, which is like a zip

file. Unzip the file!

Page 33: WPParra AWS

6. Make a MySQL user for WordPress

Page 34: WPParra AWS

6. Make a MySQL user for WordPress

Page 35: WPParra AWS

CREATE USER 'wordpress-

user'@'localhost' IDENTIFIED BY

'your_strong_password';

Page 36: WPParra AWS

CREATE USER 'wordpress-

user'@'localhost' IDENTIFIED BY

'your_strong_password';

Page 37: WPParra AWS
Page 38: WPParra AWS
Page 39: WPParra AWS
Page 40: WPParra AWS

7. Move your WordPress to a better place

mv * /var/www/html/

Page 41: WPParra AWS
Page 42: WPParra AWS
Page 43: WPParra AWS

8. Get rid of that default index.html

Page 44: WPParra AWS

8. Get rid of that default index.html

We can’t see our WordPress site because

Apache is serving the “wrong” index file.

Page 45: WPParra AWS
Page 46: WPParra AWS
Page 47: WPParra AWS
Page 48: WPParra AWS
Page 49: WPParra AWS
Page 50: WPParra AWS
Page 51: WPParra AWS

And there you go, Bob’s yer uncle.

Next steps:

• Set your file permissions

• Set up your DNS so your website isn’t

something ugly like http://54.153.163.128/

• Using Route 53 from Amazon, this is

pretty easy.

Page 52: WPParra AWS

Help?

• Amazon has great tutorials online, easy to

find.

• Many people have made third party

tutorials, search YouTube.

• Amazon is very responsive with AWS.

Page 53: WPParra AWS

Help from AWS?

• I’ve received quite a bit of help from AWS over Twitter

and email for issues.

• In fact, I screwed up bad when started playing, racked up

$39 in charges by turning the wrong service on. Amazon

looked into it, realised I made a mistake and cleared the

debt. While helping me on another matter entirely!

• I’m a Canadian, I screwed up, I don’t like to bother

people. I figured it was my blunder, I’d eat the cost.

• They fixed it up for me.

• I was very impressed.