WPParra AWS

Post on 16-Jul-2015

487 views 1 download

Tags:

transcript

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

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)

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)

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.

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”

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!

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!

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.

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.

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.

So now we have a web server!

4. Get WordPress

Next we will download the latest version of

WordPress.

3. Install WordPress

Next we will download the latest version of

WordPress.

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!

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!

6. Make a MySQL user for WordPress

6. Make a MySQL user for WordPress

CREATE USER 'wordpress-

user'@'localhost' IDENTIFIED BY

'your_strong_password';

CREATE USER 'wordpress-

user'@'localhost' IDENTIFIED BY

'your_strong_password';

7. Move your WordPress to a better place

mv * /var/www/html/

8. Get rid of that default index.html

8. Get rid of that default index.html

We can’t see our WordPress site because

Apache is serving the “wrong” index file.

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.

Help?

• Amazon has great tutorials online, easy to

find.

• Many people have made third party

tutorials, search YouTube.

• Amazon is very responsive with 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.