Unsupported content

 

This version of the documentation is no longer supported. However, the documentation is available for your convenience. You will not be able to leave comments.

Deploying LAMP

This topic was edited by a BMC Contributor and has not been approved.  More information.

LAMP stands for Linux, Apache, MySql, and PHP — the principal components to build a viable, general-purpose web server. This page presents an effective way to create individual packages in BMC Server Automation for the deployment of such web servers.

Note

It makes more sense to use a Patch Analysis Job in 'Install Mode' to push out the RPMs so you make sure to get all the dependencies.  If you don't include all the dependencies (which may vary for each target), you will end up with a failed Deploy Job and/or a broken installation.  After that installation is done, you can use BLPackages to put out the configurations for each of the components.

To deploy a LAMP web server

  1. In the Depot, create a new RPM for each application and all of the dependent RPMs that need to be deployed.
    For more information, see Deploying files and applications using packages and depot objects.
  2. For each application, create a BLPackage that includes all of the required RPMs, listed in the order that ensures all dependencies are covered.
    For more information, see Adding a BLPackage to the Depot.
  3. Create a Deploy Job of each BLPackage for each application.
    For more information, see Creating and modifying Software and BLPackage Deploy Jobs.
  4. Optionally, create a Batch Job of each of the Deploy Jobs that make up the entire LAMP stack.
    For more information, see Creating and modifying Batch Jobs.

RPM Dependencies

The following is a list of the dependent RPMs for deploying each member of the LAMP stack.

LAMP member

Dependencies

Apache

  • postgresql-libs-8.1.23-4.el5_8.x86_64.rpm
  • apr-1.2.7-11.el5_6.5.x86_64.rpm
  • apr-util-1.2.7-11.el5_5.2.x86_64.rpm
  • httpd-2.2.3-63.el5_8.1.x86_64.rpm

PHP

  • gmp-4.1.4-10.el5.x86_64.rpm
  • php-common-5.1.6-34.el5_8.x86_64.rpm
  • php-cli-5.1.6-34.el5_8.x86_64.rpm
  • php-5.1.6-34.el5_8.x86_64.rpm

MYSQL

  • perl-DBI-1.52-2.el5.x86_64.rpm
  • mysql-5.0.95-1.el5_7.1.x86_64.rpm
  • perl-DBD-MySQL-3.0007-2.el5.x86_64.rpm
  • mysql-server-5.0.95-1.el5_7.1.x86_64.rpm

Sample importable BLPackage

The attached sample Install LAMP.zip includes a Batch Job that contains the following elements.

Note

This BLPackage was exported from a BMC Server Automation 8.1 environment.

Was this page helpful? Yes No Submitting... Thank you

Comments