Deploy Apache for Windows and Linux

Version 2
    Share:|

    Windows

    Steps to use the package:

    • 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
    • Extract the zip file attached to this document. You will have the exported package.
    • Import the package into the Job folders The package contains:
      • BLPackage: “httpd MSI in BLPackage with conf”
      • Deploy Job: “Deploy httpd MSI with configuration”
      • In the Deploy job you will need to do:
        • Select Windows Target's (or execute against)
          • Supply values to the parameter SOURCE, where SOURCE is the nsh location of the install file binaries(downloaded in step #1).
          • Supply values to the parameter HTTPD_ROOT, where HTTPD_ROOT is the Windows path in the target for the installation location.
          • Execute the Deploy job.  

     

    The mandatory properties in the Deploy Job:

    1. HTTPD_ROOT

    2. SOURCE

    mandatory.png

    The package contains:

    • MSI Software package
      • Optionally, it can be modified, specifically the Cmd fields that can be modified with any required installation parameters.
    • 3 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:
      • Verify the httpd.conf file syntax.                                    
      • Get the httpd version.

    package.png

     

    Silent Installation Info - manually re-create package in BSA

    Windows

    Use this payload: httpd-2.2.15-win32-x86-no_ssl.msi

     

    Use this Command line:

    msiexec /i "??SOURCE??"  /passive ALLUSERS=1 SERVERADMIN=admin@localhost SERVERNAME=localhost SERVERDOMAIN=localhost SERVERPORT=80

     

    Linux

    Use these packages: (there are paths that require fewer packages, some packages may already exist on your deploy target):

    apr-1.2.7-11.x86_64.rpm

    apr-util-1.2.7-7.el5.x86_64.rpm

    crypto-utils-2.3-2.el5.x86_64.rpm

    distcache-1.4.5-14.1.x86_64.rpm

    httpd-2.2.3-22.el5.x86_64.rpm

    mod_ssl-2.2.3-22.el5.x86_64.rpm

    newt-perl-1.08-9.2.2.x86_64.rpm

    postgresql-libs-8.1.11-1.el5_1.1.x86_64.rpm

     

    And these external commands for Deploy:

    chkconfig httpd on

    service httpd start

     

    And for Rollback:

    service httpd stop

    chkconfig httpd off