Top Banner
August 2013 Noah Slater & Ben Chapman Get Started with PHP on Engine Yard Cloud
91

Getting Started with PHP on Engine Yard Cloud

Jul 03, 2015

Download

Technology

Engine Yard

Topics Covered:

• How to deploy a PHP application to Engine Yard
• How to use Composer to automate dependency management
• The key differences between Orchestra and Engine Yard Cloud
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Getting Started with PHP on Engine Yard Cloud

August 2013Noah Slater & Ben Chapman

Get Started with PHP on Engine Yard Cloud

Page 2: Getting Started with PHP on Engine Yard Cloud

Introductions

Noah Slater PHP Product Manager (One of the original Orchestra developers)

Ben Chapman Deployment Engineer (Works on PHP on Engine Yard Cloud)

Page 3: Getting Started with PHP on Engine Yard Cloud

Housekeeping

Webcast Format1. Quick product overview2. Demo deploying a PHP app3. Q & A

QuestionsSubmit questions via WebEx chat (bottom right) or Twitter, mention @engineyard or use the #EYCloudPHP hashtag.

On-Demand WebcastWebcast will be recorded. We’ll send out a link to the recording and slides next week.

Page 4: Getting Started with PHP on Engine Yard Cloud

Audience & Format

This webcast is for PHP developers:

● Who may be familiar with Orchestra, and● Who are unfamiliar with EY Cloud

We hope to:

● Introduce you to EY Cloud,● Explain how it’s different from Orchestra,● Create a skeleton app with Composer,● Demonstrate what it’s like to deploy an app, and● Show how pricing, support, and free trial work

Page 5: Getting Started with PHP on Engine Yard Cloud

Orchestra End of Life (EOL)

What you need to know:

● Orchestra will be turned off on August 30th● Any running apps will be shut down● Any active add-ons will be deactivated (this includes our

shared MySQL and S3 add-ons)

If you have any running apps or active add-ons, you should migrate as soon as possible. Our support team are here to help! Tell us what you need.

Page 6: Getting Started with PHP on Engine Yard Cloud

PHP Expertise on EY Cloud

The original Orchestra team was a collection ofPHP experts, including Davey Shafik (technical author),and David Coallier (former PEAR president).

The whole PHP team is now working on EY Cloud.

Most of the PHP team are based in Dublin, Ireland.We host two dev meetups aweek. You should come alongand meet the team!

Page 7: Getting Started with PHP on Engine Yard Cloud

How EY Cloud is DifferentMore capabilities and more control.

Capabilities

Con

trol

Page 8: Getting Started with PHP on Engine Yard Cloud

More capabilities and more control.

Capabilities

Con

trol

How EY Cloud is Different

Page 9: Getting Started with PHP on Engine Yard Cloud

More capabilities and more control.

Capabilities

Con

trol

How EY Cloud is Different

Page 10: Getting Started with PHP on Engine Yard Cloud

Unsupported Features

EY Cloud does not support:

● Auto-scaling○ Can set this up with custom cookbooks.

● Auto-deploys○ Have to request each deploy.

● Subversion○ In practice, nobody was using this.

● In-app S3 or Redis support○ Can use AWS account or Redis DBaaS. Or set

these up with custom cookbooks.

Page 11: Getting Started with PHP on Engine Yard Cloud

Additional Features For PHP

EY Cloud supports:

● SSH access and root● Environment variables● Composer support● Custom cookbooks (Chef)● Stack and security management● Multiple instance types● App load balancing and cluster management● Health checks and failure recovery● Production DB, with replication, and failover● Configurable backups and snapshots● Large selection of third-party add-ons (e.g. New Relic)

Page 12: Getting Started with PHP on Engine Yard Cloud

Demo Time!

Page 13: Getting Started with PHP on Engine Yard Cloud

Composer

Composer is a dependency manager for PHP (similar to Bundler for Ruby apps). Composer allows you to:

● Specify project dependencies in a composer.json file● Keep vendor libraries out of your repo● Maintain the latest versions of all required libraries

To download, visit:https://getcomposer.org/download/

Installers available for major platforms.

Page 14: Getting Started with PHP on Engine Yard Cloud
Page 15: Getting Started with PHP on Engine Yard Cloud
Page 16: Getting Started with PHP on Engine Yard Cloud
Page 17: Getting Started with PHP on Engine Yard Cloud
Page 18: Getting Started with PHP on Engine Yard Cloud
Page 19: Getting Started with PHP on Engine Yard Cloud
Page 20: Getting Started with PHP on Engine Yard Cloud
Page 21: Getting Started with PHP on Engine Yard Cloud
Page 22: Getting Started with PHP on Engine Yard Cloud
Page 23: Getting Started with PHP on Engine Yard Cloud
Page 24: Getting Started with PHP on Engine Yard Cloud
Page 25: Getting Started with PHP on Engine Yard Cloud
Page 26: Getting Started with PHP on Engine Yard Cloud
Page 27: Getting Started with PHP on Engine Yard Cloud
Page 28: Getting Started with PHP on Engine Yard Cloud
Page 29: Getting Started with PHP on Engine Yard Cloud
Page 30: Getting Started with PHP on Engine Yard Cloud
Page 31: Getting Started with PHP on Engine Yard Cloud

Test Your App Locally

1. With PHP 5.4, you can run php -S localhost:88882. Otherwise:

a. Set up a local PHP environment. See http://php.net/manual/en/install.php for details.

b. Configure your web server to point to your skeleton app’s document root.

3. Visit your skeleton app in your browser.

Page 32: Getting Started with PHP on Engine Yard Cloud
Page 33: Getting Started with PHP on Engine Yard Cloud
Page 34: Getting Started with PHP on Engine Yard Cloud
Page 35: Getting Started with PHP on Engine Yard Cloud
Page 36: Getting Started with PHP on Engine Yard Cloud
Page 37: Getting Started with PHP on Engine Yard Cloud
Page 38: Getting Started with PHP on Engine Yard Cloud
Page 39: Getting Started with PHP on Engine Yard Cloud
Page 40: Getting Started with PHP on Engine Yard Cloud
Page 41: Getting Started with PHP on Engine Yard Cloud
Page 42: Getting Started with PHP on Engine Yard Cloud
Page 43: Getting Started with PHP on Engine Yard Cloud
Page 44: Getting Started with PHP on Engine Yard Cloud
Page 45: Getting Started with PHP on Engine Yard Cloud
Page 46: Getting Started with PHP on Engine Yard Cloud
Page 47: Getting Started with PHP on Engine Yard Cloud
Page 48: Getting Started with PHP on Engine Yard Cloud
Page 49: Getting Started with PHP on Engine Yard Cloud
Page 50: Getting Started with PHP on Engine Yard Cloud
Page 51: Getting Started with PHP on Engine Yard Cloud
Page 52: Getting Started with PHP on Engine Yard Cloud
Page 53: Getting Started with PHP on Engine Yard Cloud
Page 54: Getting Started with PHP on Engine Yard Cloud
Page 55: Getting Started with PHP on Engine Yard Cloud
Page 56: Getting Started with PHP on Engine Yard Cloud
Page 57: Getting Started with PHP on Engine Yard Cloud
Page 58: Getting Started with PHP on Engine Yard Cloud
Page 59: Getting Started with PHP on Engine Yard Cloud
Page 60: Getting Started with PHP on Engine Yard Cloud
Page 61: Getting Started with PHP on Engine Yard Cloud
Page 62: Getting Started with PHP on Engine Yard Cloud
Page 63: Getting Started with PHP on Engine Yard Cloud
Page 64: Getting Started with PHP on Engine Yard Cloud
Page 65: Getting Started with PHP on Engine Yard Cloud
Page 66: Getting Started with PHP on Engine Yard Cloud
Page 67: Getting Started with PHP on Engine Yard Cloud
Page 68: Getting Started with PHP on Engine Yard Cloud
Page 69: Getting Started with PHP on Engine Yard Cloud
Page 70: Getting Started with PHP on Engine Yard Cloud
Page 71: Getting Started with PHP on Engine Yard Cloud
Page 72: Getting Started with PHP on Engine Yard Cloud
Page 73: Getting Started with PHP on Engine Yard Cloud
Page 74: Getting Started with PHP on Engine Yard Cloud
Page 75: Getting Started with PHP on Engine Yard Cloud
Page 76: Getting Started with PHP on Engine Yard Cloud
Page 77: Getting Started with PHP on Engine Yard Cloud
Page 78: Getting Started with PHP on Engine Yard Cloud
Page 79: Getting Started with PHP on Engine Yard Cloud
Page 80: Getting Started with PHP on Engine Yard Cloud
Page 81: Getting Started with PHP on Engine Yard Cloud
Page 82: Getting Started with PHP on Engine Yard Cloud
Page 83: Getting Started with PHP on Engine Yard Cloud
Page 84: Getting Started with PHP on Engine Yard Cloud
Page 85: Getting Started with PHP on Engine Yard Cloud
Page 86: Getting Started with PHP on Engine Yard Cloud

Wrap Up

Page 87: Getting Started with PHP on Engine Yard Cloud

Further Reading

Orchestra Migration Guideshttp://goo.gl/y34Pgr

Deploy Your PHP Application on Engine Yard Cloudhttp://goo.gl/8ZbQCs

Use Composer for PHPhttp://goo.gl/k5kg21

Coming soon: guides for apps like WordPress, Magento, Drupal, etc. Let us know what you want to see!

Page 88: Getting Started with PHP on Engine Yard Cloud

EY Cloud Pricing

Old Orchestra pricing:

● 6 cents p/h for a micro instance (or ELB)● $43.20 p/m for basic (one micro instance), $129.60 p/m

for elastic (two micros and an ELB)

New EY Cloud pricing:

● 5 cents p/h for a small instance● $36 p/m starting cost (one small instance)

Note: a micro is ~0.6 GB RAM and a small is 1.7 GB RAM. So EY Cloud starting cost is ⅓ the price, by memory.

Page 89: Getting Started with PHP on Engine Yard Cloud

EY Cloud Support

● Legendary support team● Stellar feedback record (98-99% monthly)● Standard support comes free● Live chat, tickets, email, phone, forums and IRC● Monitoring & alerts, with pro-active tickets● DBA assistance● Follow the sun across 3 regions (24h coverage)● Professional services (migration, security audits, app

analysis, app dev, HA/DR, load testing)

Page 90: Getting Started with PHP on Engine Yard Cloud

Trial

Free trial available to all new Cloud customers.

Features of the free trial:● 500 compute hours for free● Start and stop as needed● Access to most of the platform● Zero lock-in and no long-term contract● Full access to support team● PANDAs! (our on-boarding teaming)

Page 91: Getting Started with PHP on Engine Yard Cloud

Questions?

We’ll answer questions during the time remaining.

Submit questions via:● WebEx chat (bottom right)● Twitter, mention @engineyard● Twitter, use #EYCloudPHP hashtag

After the webcast, you can contact me at:● [email protected]

Once the webcast is over, you will be sent to a survey. We’d love to hear what you think about PHP on Cloud!