Note: Please go to docs.rightscale.com to access the current RightScale documentation set. Also, feel free to Chat with us!
Home > ServerTemplates > Infinity > ST > PHP App Server (v14 Infinity)

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


© 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.