Documentation Creating A Staging Server On Amazon Web Services Using VIP Quickstart

Creating A Staging Server On Amazon Web Services Using VIP Quickstart

Creating a staging server on Amazon’s AWS (other UNIX like hosting platforms should work similarly…in concept) using VIP Quickstart is fast and easy, assuming you have have some basic familiarity with Linux/CLI and DNS. Note, we’re also working to create an official AWS Marketplace AMI that will automate steps 3-7.

1. create a new AWS EC2 instance- this guide was tested with AWS Marketplace Ubuntu 12.04, but may work with other OS’es/versions.

2. ssh into your new EC2 instance using the keypair you setup in step 1 – tip: your ssh command will probably look something like:
$ ssh -i path/to/keyfile.pem ubuntu@public-address-of-aws-instance

Note: the permissions on your key file will need to be set to rw for user only.

3. $ sudo apt-get update && sudo apt-get upgrade
follow instructions, answer prompts, reboot if necessary

4. $ sudo apt-get install git puppet
follow instructions, answer prompts

5. $ cd /srv/ && sudo git clone https://github.com/Automattic/vip-quickstart .
tip: don’t forget the “.” at the end, or adjust your paths accordingly

6. $ sudo /srv/bin/vip-init --server --domain=FQDN
tip: replace FQDN with whatever addressable FQDN you want to reach your Quickstart install at. You may wish to use a distinct “staging” URL (eg: staging.yourdomain.com) here, OR use your production URL and toggle between staging/production via an /etc/hosts setup.

7. modify your AWS “Security Groups” settings to allow http (port 80) traffic

8. assuming you’ve configured either public facing DNS or private routing (eg: /etc/hosts/ or equivalent) you should be able to reach your site at the FQDN you specified in Step 6 above

Your cloud based VIP Quickstart staging environment is now ready. Our next guide will show how to get your production theme and content loaded into your staging environment.