Home > ServerTemplates > Infinity > ST > PHP App Server (v14 Infinity)

MindTouch
Copyright (c) 2006-2014 MindTouch Inc.
http://mindtouch.com

This file and accompanying files are licensed under the MindTouch Master Subscription Agreement (MSA).

At any time, you shall not, directly or indirectly: (i) sublicense, resell, rent, lease, distribute, market, commercialize or otherwise transfer rights or usage to: (a) the Software, (b) any modified version or derivative work of the Software created by you or for you, or (c) MindTouch Open Source (which includes all non-supported versions of MindTouch-developed software), for any purpose including timesharing or service bureau purposes; (ii) remove or alter any copyright, trademark or proprietary notice in the Software; (iii) transfer, use or export the Software in violation of any applicable laws or regulations of any government or governmental agency; (iv) use or run on any of your hardware, or have deployed for use, any production version of MindTouch Open Source; (v) use any of the Support Services, Error corrections, Updates or Upgrades, for the MindTouch Open Source software or for any Server for which Support Services are not then purchased as provided hereunder; or (vi) reverse engineer, decompile or modify any encrypted or encoded portion of the Software.

A complete copy of the MSA is available at http://www.mindtouch.com/msa

PHP App Server (v14 Infinity)

Table of Contents    

Infinity

Leading edge features

   ►   Overview

Description

Configures a dedicated PHP application server with Apache. The ServerTemplate contains scripts and inputs that allow a PHP application server to connect to MySQL database servers as well as allowing connections from load balancing server solutions such as Amazon's Elastic Load Balancing (ELB), Rackspace's Cloud Load Balancers (CLB), or a server launched with RightScale's 'Load Balancer with HAProxy' ServerTemplate. The ServerTemplate is one of the core ServerTemplates in a typical a three-tier website architecture.

Note: For a complete list of the ServerTemplate's features and support, view the detailed description under its Info tab.

Software Application Versions

  • Apache v2.2
  • PHP v5.3
  • MySQL Client (5.1 or 5.5)

Technical Overview

The PHP App Server ServerTemplate install Apache with PHP on a single instance. The application code is downloaded from a git repository and placed into the webserver directory to be hosted. There are recipes to set up tags so the PHP App Server can be found by a Load Balancer and to request that a Load Balancer find it. The PHP App Server can be used in a RightScale autoscaling application server array. Below are descriptions of the various scripts avaiable in the PHP App Server ServerTemplate.

Boot Sequence:

  • ephemeral_lvm::default - This recipe sets up available ephemeral devices to be an LVM device, formats it, and mounts it.
  • rightscale_tag::default - Sets the standard machine tags for a RightScale server which are server:uuid, server:public_ip_X, server:private_ip_X (where X is 0, 1, etc.)
  • rs-application_php::default - Installs PHP and required dependencies and deploys the application code.

Operational Scripts:

  • rs-application_php::default - Installs PHP and required dependencies and deploys the application code.
  • rs-application_php::tags - Adds machine tags to the application server with application server tags used in setting up a 3-tier architecture in a RightScale environment.
  • rs-application_php::collectd - This recipe sets up collectd monitoring for the application server by installing the collectd package for Apache.
  • rs-application_php::application_backend - This recipe attaches the application server to the load balancer servers serving the same application name as that of the application server and existing in the same deployment. This recipe schedules the execution of the recipe specified in node['rs-application_php']['remote_attach_recipe'] attribute on the load balancer servers matching the machine tag ‘load_balancers:active_<application_name>=true’. This remote recipe execution is achieved by the rs_run_recipe utility.
  • rs-application_php::application_backend_detached - This recipe detaches the application server from the load balancer servers serving the same application name as that of the application server and existing in the same deployment. This recipe schedules the execution of the recipe specified in node['rs-application_php']['remote_detach_recipe'] attribute on the load balancer servers matching the machine tag ‘load_balancers:active_<application_name>=true’. This remote recipe execution is achieved by the rs_run_recipe utility.

Retrieval of Application Code

The ServerTemplate contains scripts that support the retrieval of application code from the following locations:

  • ROS Container (*.zip, *.tgz)
  • SVN Repository
  • Git Repository
  • FTP Server
  • Specified URL (http://www.example.com/myapp.zip)
  • rsync

 

The application code will be placed on the local instance in a location that is based upon the values specified for the following inputs. 

  • Project App root - text: /home/webapps   (default)
  • Application Name - text: myapp


In the example above, the root directory for the application code will be stored in: /home/webapps/myapp

 

 

You must to post a comment.
Last Modified
10:00, 28 Jul 2014

Tags

Classifications

This page has no classifications.

Announcements

None

Glossary | 用語용어 Site Map | Site Help Community Corporate Site Get Support Dashboard Login
Doc Feedback Product Feedback Resources MultiCloud Marketplace Forums

Dashboard Status


© 2006-2014 RightScale, Inc. All rights reserved.
RightScale is a registered trademark of RightScale, Inc. All other products and services may be trademarks or servicemarks of their respective owners.