Deploying Apache

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

This topic describes how to deploy Apache using BMC Server Automation.

Creating an Apache package for deployment

Use the following steps to create an Apache package for deployment.

  1. Depending on the OS that you wish to deploy Apache against, create a new Depot Object using the silent installation instructions below.
  2. After creating the Depot Object, create a Deploy Job and use it to test the deployment and rollback of Apache against one or more target servers.

Windows

Use the httpd-2.2.15-win32-x86-no_ssl.msi payload, as in the following command line:

No SSL:
msiexec /i "??SOURCE??"  /passive ALLUSERS=1 AgreeToLicense=Yes SERVERADMIN=admin@localhost SERVERNAME=??TARGET.HOST?? SERVERDOMAIN=localhost SERVERPORT=80



SSL:
msiexec /i "??SOURCE??"  /passive ALLUSERS=1 AgreeToLicense=Yes SERVERADMIN=admin@localhost SERVERNAME=??TARGET.HOST?? SERVERDOMAIN=localhost SERVERPORT=80 SERVERSSLPORT=443

Linux

Use the following packages.

Note

Certain paths require fewer packages, as some packages might already exist on your deploy target.

apr-1.2.7-11.x86_64.rpm              Linux RPM                           Jul 27, 2010 3:29:29 PM  Jul 27, 2010 3:29:29 PM  BLAdmins                BLAdmin
apr-util-1.2.7-7.el5.x86_64.rpm Linux RPM                           Jul 27, 2010 3:30:01 PM  Jul 27, 2010 3:30:01 PM  BLAdmins                BLAdmin
crypto-utils-2.3-2.el5.x86_64.rpm             Linux RPM                           Jul 27, 2010 3:27:44 PM  Jul 27, 2010 3:27:44 PM  BLAdmins                BLAdmin
distcache-1.4.5-14.1.x86_64.rpm              Linux RPM                           Jul 27, 2010 3:28:18 PM  Jul 27, 2010 3:28:18 PM  BLAdmins                BLAdmin
httpd-2.2.3-22.el5.x86_64.rpm  Linux RPM           Apache Jul 27, 2010 3:25:55 PM  Jul 27, 2010 3:25:55 PM  BLAdmins                BLAdmin
mod_ssl-2.2.3-22.el5.x86_64.rpm             Linux RPM                           Jul 27, 2010 3:27:02 PM  Jul 27, 2010 3:27:02 PM  BLAdmins                BLAdmin
newt-perl-1.08-9.2.2.x86_64.rpm             Linux RPM                           Jul 27, 2010 3:28:58 PM  Jul 27, 2010 3:28:58 PM  BLAdmins                BLAdmin
postgresql-libs-8.1.11-1.el5_1.1.x86_64.rpm       Linux RPM                           Jul 27, 2010 3:30:29 PM  Jul 27, 2010 3:30:29 PM                BLAdmins            BLAdmin

Use this external command:

Task

Command

Deploy

chkconfig httpd on
service httpd start

Rollback

service httpd stop
chkconfig httpd off

The order is: newt-perl, crypto-utils, distcache, apr, postgresql-libs, apr-util, httpd, mod_ssl.

Importing a Windows package

Note

The downloadable package in this section was exported from a BMC Server Automation version 8.2 environment.

To import the package

  1. Download the httpd install file from http://off.co.il/apache//httpd/binaries/win32/httpd-2.2.22-win32-x86-openssl-0.9.8t.msi
  2. Extract the zip file. You will have the exported package: Deploy httpd MSI with configuration.zip
  3. Import the package into the Job folders.
    The package contains:
    • BLPackage: httpd MSI in BLPackage with conf
    • Deploy Job: Deploy httpd MSI with configuration
  4. Adjust the settings in the Deploy Job:
    1. Select Windows Targets (to execute against).
    2. Supply values to the SOURCE parameter, where SOURCE is the nsh location of the install file binaries (downloaded in step 1).
    3. Supply values to the parameter HTTPD_ROOT, where HTTPD_ROOT is the Windows path in the target for the installation location.
  5. Execute the Deploy job.

Package Contents

  • MSI Software package
    Optionally, it can be modified, specifically the Cmd fields that can be modified with any required installation parameters.
  • The following three objects of the configuration file httpd.conf(optionally, they can be modified):
    • Listen
    • LogLevel
    • ServerAdmin
  • External commands (the response can be seen only when the Job logging level is All Information)
    • Pre install: echo the install dir.
    • Post configuration command:
      1. Verify the httpd.conf file syntax.
      2. Get the httpd version.

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

Comments