Creating a LAMP on RHEL 6.3 service offering
This topic describes the tasks that you must perform in BMC Cloud Lifecycle Management to create the service offering that the end user can then use to provision the application infrastructure (for example, an OS and an application package). It includes the following topics:
To create the service and the service offering
In the BMC Cloud Lifecycle Management Administrator console, you must add a service and a service offering.
For LAMP service blueprint, create a service and service offering based on the available deployment model. The LAMP service blueprint supports the following service deployment models:
Deployment model | Description |
---|---|
Single-tier | In the single-tier deployment model, Apache, PHP, and MySQL are installed on a single instance of a server. |
Multi-tier | In the multi-tier deployment model, Apache and PHP are installed on one instance of a server and MySQL is installed on a separate instance of a server. |
To create a service
To create a service offering
To make the provisioning request
- Access Workspaces > Service Instances to display the Service Instances workspace, and click New Service Request.
- In the New Service Request dialog box, click the server provisioning service you want to display the Submit Request dialog box.
- Enter the data in the required fields to complete the request for an instance of the service request. You can click Next to review the details.
- Click Submit. The request is added to the Pending Activity list in the Service Instances window.
The request status is displayed in the Pending Activity list of the Service Instances window. You can double-click on the service request to see its detailed information.
For more detailed procedures, see Requesting-cloud-services.
To validate the provisioned components
After provisioning the blueprint, you can validate the LAMP components setup in your environment.
Component name | How to verify | Results |
---|---|---|
Apache installation | To check whether Apache has been installed, run the following command. rpm -qa | grep -i httpd | The command displays the following output: httpd-tools-2.2.15-15.el6_2.1.x86_64 httpd-2.2.15-15.el6_2.1.x86_64 |
Apache port | To verify Apache port, run the following command. netstat -atpn | grep -i httpd or grep -i "^Listen" /etc/httpd/conf/httpd.conf | The command displays the port number where Apache is running. |
Verify httpd service status | To verify httpd service status, run the following command. service httpd status | The command displays the following output: httpd (pid xxxx) is running Note: If httpd is not running, check whether MySQL is running. |
httpd service restart | To restart httpd service, run the following command. service httpd restart | The httpd service restarts. |
MySQL Installation | To check whether MySQL has been installed, run the following command. rpm -qa | grep -i mysql-server | The command displays the following output: MySQL-server-5.6.13-1.rhel5 |
Verify MySQL service | To verify MySQL service status, run the following command. service mysqld status
| The command displays the following output: mysqld ( pid xxxxx ) is running. |
Restart MySQL service | To restart MySQL service, run the following command. service mysqld restart | The MySQL service restarts. |
PHP Installation | To check whether PHP has been installed, run the following command. rpm -qa | grep -i php
| If PHP is installed, the command displays the following output: php-5.3.3-3.el6_2.8.x86_64 php-gd-5.3.3-3.el6_2.8.x86_64 php-xml-5.3.3-3.el6_2.8.x86_64 php-cli-5.3.3-3.el6_2.8.x86_64 php-pdo-5.3.3-3.el6_2.8.x86_64 php-pear-1.9.4-4.el6.noarch php-common-5.3.3-3.el6_2.8.x86_64 php-mysql-5.3.3-3.el6_2.8.x86_64 php-pecl-apc-3.1.9-2.el6.x86_64 php-intl-5.3.3-3.el6_2.8.x86_64 |
Where to go next
After you have created the service offering, the cloud end user can request a service offering from the My Cloud Services console. To view a list of tasks that the cloud end user can perform to manage your cloud services, see Managing cloud services.