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 > LAMP All-In-One Trial with MySQL 5.5 (v13 Infinity) > LAMP All-In-One Trial with MySQL 5.5 (v13 Infinity) - Tutorial

LAMP All-In-One Trial with MySQL 5.5 (v13 Infinity) - Tutorial

Table of Contents    

Infinity

Leading edge features

   ►   Tutorial

Objective

To quickly set up an example LAMP (Linux, Apache, MySQL, PHP) all-in-one server in a public or private cloud (designed for demonstration purposes only).

Note: If you want to launch your own all-in-one LAMP stack with your own application and database, see LAMP All-In-One with MySQL 5.5 (v13 Infinity) or LAMP All-In-One with MySQL 5.1 (v13 Infinity).

Prerequisites

The following are prerequisites for completing this tutorial:

  • Required user roles: 'actor' and 'library'
  • For Amazon EC2, CloudStack, and other clouds that support security groups, you must have a security group defined with TCP port 22 open for SSH access and port 80 for client HTTP access. If you need to create a new security group, you will need 'security_manager' user role privileges.

Overview

This tutorial describes how you can use the "trial" ServerTemplate to launch a test LAMP server in the cloud in less than 15 minutes. The ServerTemplate is designed to easily set up and launch a test LAMP server (with a MySQL and Apache installation) in a cloud without requiring any additional configuration or user defined inputs.

diag-LAMP_Stack-v3.png

Steps

Add a Server

Follow these steps to add a new trial LAMP server to a deployment.

  1. Create a new deployment. See Create a New Deployment.
  2. Go to Design > MultiCloud Marketplace > ServerTemplates. Import the "LAMP All-In-One Trial with MySQL 5.5" ServerTemplate. (Note: This ServerTemplate was deprecated from the MultiCloud Marketplace and can no longer be imported.)
  3. Add a server to the new deployment using the imported ServerTemplate. Since the ServerTemplate supports multiple clouds, you will need to select any cloud-specific resources that are required to create the server for the chosen cloud. See Add Server Assistant for details. 
    Note: If you cannot select and use existing cloud resources, you may need to create them. To create a security group, you will need 'security_manager' user role privileges.

Launch the Server

  1. Under the deployment's Servers tab, click the Launch icon (Launch_icon.png) for the server that you just added. 
  2. Next, you will see an input confirmation page. Because the ServerTemplate was published with acceptable values predefined for any of the ServerTemplate's boot scripts, there are no missing inputs to define. Scroll to the bottom of the screen and click Launch.


When you launch a server, it enters the "pending" state as RightScale makes a request to the cloud on your behalf. You can track the status of the server as it transitions through the pending, booting, and operational states in the Events pane in the left-hand panel, which provides real-time push notifications. You can also track the status of the server under its Info tab. However, you will need to periodically click the Info tab or refresh the browser window to update the information displayed below the tabs. 

screen-ServerPending-v1.png

Test the Server

After the server enters the operational state, you can test it to ensure that it was properly configured. To test your server, go to the server's Info tab. You can either copy and paste the server's public IP address into a web browser or click the public DNS name or IP address link (if available).

  • For an Amazon EC2 server, click the "Public DNS name" link (see below)
  • For servers launched in other clouds, use the "(Public) IP Address" link
     

screen-ServerOperational-v1.png

When you navigate to your running LAMP server in a web browser, the Apache HTTP Server displays a test page with contents that differ depending on the operating system that you are running.

screen-ApacheHomepage-v2.png

Troubleshooting 
If the server is operational but you cannot view the test page in a browser window, make sure that your server's security group has port 80 open. 

 

You should also click on the server's Monitoring tab to view real-time monitoring graphs and check out the detailed server information under the Audit Entries tab.

Terminate the Server

When you are finished with your testing, terminate the server by clicking its Terminate button.

Next Steps

If you're interested in launching a LAMP server with your own application and database, see LAMP All-In-One with MySQL 5.5 (v13 Infinity) or LAMP All-In-One with MySQL 5.1 (v13 Infinity).

You must to post a comment.
Last modified
09:22, 28 Apr 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.