VMware vFabric Web Server - 5.3 Installation Manual

vFabric Web Server Installation and
Configuration
VMware vFabric Web Server 5.3
VMware vFabric Suite 5.3
This document supports the version of each product listed and
supports all subsequent versions until the document is replaced by
a new edition. To check for more recent editions of this document,
see http://www.vmware.com/support/pubs.
You can find the most up-to-date technical documentation on the VMware Web site at: https://www.vmware.com/
support/.
The VMware Web site also provides the latest product updates.
If you have comments about this documentation, submit your feedback to: docfeedback@vmware.com
Copyright © 2013 VMware, Inc. All rights reserved. This product is protected by copyright and intellectual property laws in the United States and other countries as well as by international treaties. VMware products are covered by one or more patents listed at http://www.vmware.com/go/patents.
VMware is a registered trademark or trademark of VMware, Inc. in the United States and other jurisdictions. All other marks and names mentioned herein may be trademarks of their respective companies.
VMware, Inc., 3401 Hillview Avenue, Palo Alto, CA 94304
www.vmware.com

Table of Contents

1. About vFabric Web Server Installation and Configuration .............................................................................. 1
Intended Audience ......................................................................................................................... 1
2. Overview of vFabric Web Server ............................................................................................................ 3
Information for International Customers ............................................................................................... 3
Complete Packages and Modules in vFabric Web Server 5.3 ...................................................................... 3
Differences Between vFabric Web Server and vFabric ERS ....................................................................... 4
3. Installing vFabric Web Server ................................................................................................................ 7
Installation Note for vFabric Suite Customers ........................................................................................ 7
Available Distribution Packages ......................................................................................................... 7
RHEL: Install vFabric Web Server from an RPM ................................................................................... 7
Unix: Install vFabric Web Server from a Self-Extracting ZIP ...................................................................... 9
Windows: Install vFabric Web Server from a ZIP File ............................................................................ 11
Activate a vFabric Web Server Local License ...................................................................................... 12
Description of the vFabric Web Server Installation ................................................................................ 13
4. Upgrading vFabric Web Server ............................................................................................................. 15
RHEL: Upgrade Using the VMware RPM Repository ............................................................................. 15
Unix: Upgrade Using a Self-Extracting ZIP ......................................................................................... 15
Windows: Upgrade Using a Self-Extracting ZIP .................................................................................... 16
5. Migrating Enterprise Ready Server to vFabric Web Server ............................................................................ 19
Preparing to Migrate ..................................................................................................................... 19
Migration Procedure ..................................................................................................................... 23
6. Creating and Using vFabric Web Server Instances ...................................................................................... 25
Description of vFabric Web Server Instances ....................................................................................... 25
Create vFabric Web Server Instances ................................................................................................. 25
newserver Prompts and Command Reference ....................................................................................... 26
Unix: Start and Stop vFabric Web Server Instances ................................................................................ 30
Windows: Start and Stop vFabric Web Server Instances .......................................................................... 31
httpdctl Reference ........................................................................................................................ 32
Serve a Sample HTML File from Your vFabric Web Server Instance ........................................................... 33
7. Configuring vFabric Web Server Instances ............................................................................................... 35
Using Sample Configuration Files to Enable Features and Modify Configuration ............................................. 35
Configure Load Balancing Between Two or More tc Runtime Instances ........................................................ 36
Configure SSL Between vFabric Web Server and vFabric tc Server ............................................................. 39
Configure BMX for Monitoring vFabric Web Server Instances .................................................................. 43
Metrics ..................................................................................................................................... 44
8. Security Information .......................................................................................................................... 47
External Interfaces, Ports, and Services .............................................................................................. 47
Resources That Must Be Protected .................................................................................................... 47
Log File Locations ....................................................................................................................... 47
User Accounts Created at Installation ................................................................................................ 48
Obtaining and Installing Security Updates ........................................................................................... 48
9. Managing Planned and Unplanned Outages .............................................................................................. 49
Managing Planned Outages ............................................................................................................. 49
Managing Unplanned Outages ......................................................................................................... 49
Backing Up vFabric Web Server ...................................................................................................... 50
10. Additional Documentation ................................................................................................................. 53
VMware vFabric Suite 5.3 iii
iv vFabric Web Server
About vFabric Web Server Installation and Configuration

1. About vFabric Web Server Installation and Configuration

Revised May 6, 2013.
VMware vFabric Web Server Installation and Configuration describes product concepts and product-specific configuration tasks for VMware® vFabric™ Web Server. Fully compatible with Apache Web Server, vFabric Web Server is a dynamic load­balancing service that is available as a standalone product and as a part of VMware® vFabric Suite™ Standard and vFabric Suite Advanced editions. Read this documentation for an overview of vFabric Web Server features, installation instructions, and information on how to configure functionality that is specific to vFabric Web Server.

Intended Audience

vFabric Web Server Installation and Configuration is intended for experienced Windows and Unix developers and system administrators who want to install a Web Server to serve static Web content, act as a proxy, or load balance between application servers such as VMware® vFabric™ tc Server.
1
VMware vFabric Suite 5.3 1
2 vFabric Web Server
About vFabric Web Server Installation
2
and Configuration
Overview of vFabric Web Server 3

2. Overview of vFabric Web Server

vFabric Web Server is the Web server and load-balancing component of VMware vFabric Suite. vFabric Web Server 5.3 is based on Apache HTTP Server version 2.2.
In addition to the standard features of Apache HTTP Server, vFabric Web Server provides the following benefits:
• Ability to easily install multiple instances of vFabric Web Server running on a single computer.
• Scalable management of multiple Web sites and servers; you can run and manage hundreds of instances of vFabric Web
Server.
• Support for heterogeneous environments (32- and 64-bit architectures): Red Hat Enterprise Linux (RHEL), Solaris,
Ubuntu, and Microsoft Windows. vFabric Web Server can be updated and patched across all servers at once. See Supported
Configurations and System Requirements for details.
Subtopics
Information for International Users

Complete Packages and Modules in vFabric Web Server 5.3

Differences Between vFabric Web Server and vFabric ERS

Information for International Customers

If you require multi-byte character-set support, VMware recommends that you follow these guidelines for using multi-byte filenames and multi-byte characters in configuration files. These guidelines provide the most flexibility and most consistent results:
• Use the UTF-8 encoding when running a Unix terminal or Windows PowerShell. For example, to set this encoding on Unix,
you can use the following environment variable:
LANG=en_US.UTF-8
On Windows, you can run the following command in your PowerShell window:
PS prompt> chcp 65001
Important: The preceding Windows command does not always work as expected on pre-R2 versions of Windows 2008. For this reason, VMware strongly recommends that you install vFabric Web Server on Windows 2008 R2.
Setting your encoding to UTF-8 results in better display of httpctl output, easier examination of the log files, and so on.
• Edit and save all vFabric Web Server configuration files, such as conf/httpd.conf, in UTF-8 format. This improves the
legibility of the Web Server access and error log files.
Complete Packages and Modules in vFabric Web Server 5.3
This section lists the complete contents of vFabric Web Server 5.3.
This document describes features and functionality for vFabric Web Sever 5.3. For general information about new features in Apache HTTP Server 2.2, see the Apache Web site.
• Apache Web Server httpd 2.2.24
• Apache mod_ftp 0.9.6
VMware vFabric Suite 5.3 3
4 vFabric Web Server
• Apache mod_fcgid 2.3.7
• Apache mod_jk 1.2.37
• Apache APR Library 1.4.6
• Apache APR-util Library 1.3.12
• Apache tcnative connector
• cURL 7.29
• Expat 2.1.0
• GNU libiconv 1.11
• mod_bmx 0.9.4 (Hyperic plug-in for monitoring support)
• OpenSSL 1.0.1e
• OpenSSL/FIPS 2.0
• OpenLDAP 2.3.43
• PCRE 8.32
• zlib 1.2.7
You typically install vFabric Web Server from the vfabric-web-server-version-platform package, which contains all the preceding compiled modules. For your convenience, VMware also makes a vfabric-web-server-
devel-version-platform package available which you can use to build HTTPD modules. Typically, you install the ­devel package only on development computers, and not on production computers.

mod_fcgid Implementation of Connector to FastCGI

The mod_fcgid distributed with vFabric Web Server 5.3 is an implementation of the connector to FastCGI applications. This module allows the user to provision FastCGI providers such as PHP or Ruby on Rails from third parties, running out-of-process from the server itself.
Many applications can be built to support FastCGI; consult your language or application documentation for details. The application providing FastCGI services is launched by mod_fcgid on the initial request, and reused for subsequent requests to that application or language environment.
For details on configuring an application, including the number of persistent processes created, see Apache Module mod_fcgid.

Differences Between vFabric Web Server and vFabric ERS

The vFabric Cloud Application Platform includes two HTTP server and load-balancing products: vFabric Web Server and vFabric Enterprise Ready Server (ERS). vFabric ERS is nearing its end-of-life and VMware highly recommends that ERS customers migrate to vFabric Web Server. The following table describes the major differences between the two products and provides high-level actions that existing ERS customers can take as they prepare for the migration.
Table 2.1. Differences Between vFabric Web Server and vFabric ERS
vFabric Web Server vFabric ERS Customer Action
Available as part of vFabric Suite (Standard and Advanced) or as a standalone product.
Strictly an Apache HTTPD Server-based product. vFabric tc Server, a separate
Not included in vFabric Suite. Originally designed for only physical computers.
Includes both Apache HTTPD and Apache Tomcat packages.
Select licensing based on vFabric integration or dedicated hardware.
Migrate ERS Apache HTTPD instances to vFabric Web Server. Separately migrate ERS Tomcat instances to vFabric tc Server.
4 Overview of vFabric Web Server
Overview of vFabric Web Server 5
vFabric Web Server vFabric ERS Customer Action
product, is strictly an Apache Tomcat-based product.
Runs on current, vendor-supported 32­and 64-bit releases of RHEL, Microsoft Windows, Solaris, and AIX. See Supported
Configurations and System Requirements for
the exact versions.
Includes the current enterprise-ready release of Apache HTTPD Server 2.2.
During installation or upgrade, the Apache HTTPD binaries are written to a path in the format vfabric-web-server/ httpd-2.2.xx.x-32. This preserves any existing Apache HTTPD binaries without overwriting them.
Includes the most commonly-used modules. See Complete Packages and Modules in
vFabric Web Server 5.3.
Closely tracks Apache Software Foundation (ASF) naming and directory layout conventions. In particular:
install-dir/httpd-2.2/modules/ directory contains the loadable modules
• Binaries and configuration file names use httpd prefix
install-dir/newserver creates new instances
instance-dir/bin/httpdctl controls each deployed instance
instance-dir/conf/extras/ offers feature-based small config templates
Runs on now-unsupported, or "twilighted", versions of RHEL, Windows, Solaris, AIX, and HPUX. See ERS Supported Platforms for the exact versions.
Includes the current release of Apache HTTPD Server 2.2, as well as the now­deprecated 2.0 and 1.3 versions.
During installation or upgrade, the Apache HTTPD binaries are always written to the same directory (ers-install-path/ apache2.2-64), which means on upgrade any existing binaries are overwritten.
Included additional modules, such as mod_perl, mod_php, and mod_snmp.
Has a number of now-stale, legacy file and path conventions. In particular:
install-dir/apache2.2/modules/ standard directory contains the loadable modules
• Binaries and configuration file names use httpsd prefix
install-dir/ers-server.pl creates new instances
install-dir/servers/instance-
dir/bin/apache_startup.sh|bat
controls each deployed instance
install-dir/servers/instance- dir/conf/httpsd.conf is one large, monolithic configuration template.
Upgrade to a vendor-supported operating system version for all vFabric Web Server instances, and apply all patch releases (such as service packs) issued by that vendor no later than 12 months from their vendor release.
Migrate all Apache HTTPD 2.0 and 1.3 instances to vFabric Web Server 2.2 instances. The migration requires updates to the *.conf file.
Point all server instances to the common symlink vfabric-web-server/ httpd-2.2, modify it to revert/roll back/ change 32-64 bit modes.
Migrate PHP and Perl applications to the supported, and more optimal, mod_fcgid environment.
Create a new vFabric Web Server instance, then migrate customizations from your existing vFabric ERS instance. Alternatively, modify a copy of the deployed vFabric ERS instance tree to use vFabric Web Server path and file name conventions. Use smaller functional .conf snippets to make the configuration more organized and maintainable.
VMware vFabric Suite 5.3 5
6 vFabric Web Server
6 Overview of vFabric Web Server
Installing vFabric Web Server 7

3. Installing vFabric Web Server

vFabric Web Server has several options for installation and setup. Installation options vary according to whether you install Web Server standalone or as part of vFabric Suite installation and whether your operating system is Unix, Windows, or another supported platform.
Subtopics

Installation Note for vFabric Suite Customers

Available Distribution Packages

RHEL: Install vFabric Web Server from an RPM

Unix: Install vFabric Web Server from a Self-Extracting ZIP
Windows: Install vFabric Web Server from a Self-Extracting ZIP File
Activate a vFabric Web Server Local License
Description of the vFabric Web Server Installation
Installation Note for vFabric Suite Customers
If you will be installing vFabric Web Server as part of a vFabric Suite Standard package, complete the procedures for installing vFabric License Server and activating vFabric Suite licenses in Getting Started with vFabric Suite. You may also want to read the other vFabric licensing sections in that guide, to understand how licensing works with vFabric Suite.
Available Distribution Packages
vFabric Web Server is split into the following two distribution packages to simplify the installation and deployment to your datacenter:
vfabric-web-server: Base package entirely sufficient for all production environments.
vfabric-web-server-devel: Supplemental package that developers can use to compile and link http modules with the same headers and libraries as httpd itself using the httpd-2.2/bin/apxs tool. This package requires that you also install the base package.
RHEL: Install vFabric Web Server from an RPM
VMware recommends that you install vFabric Web Server on a Red Hat Linux Enterprise (RHEL) computer by first installing the VMware RPM repository and then using yum to perform the actual installation. See Install vFabric Web Server from the
VMware RPM Repository.
You can also download the RPM from the VMware Download page and install it on your RHEL computer using the rpm command, as described in Install vFabric Web Server from a Downloaded RPM. This installation option is necessary if you are installing a version of Web Server that is not yet certified for vFabric Suite, which means that it has not yet been added to the VMware RPM repository.

Install vFabric Web Server from the VMware RPM Repository

VMware recommends that you install Web Server on RHEL computers using the VMware RPM repository.
Prerequisites
• Verify that your system meets the supported configurations and installation requirements. See Supported Configurations and
System Requirements.
VMware vFabric Suite 5.3 7
8 vFabric Web Server
• Install the vFabric repository RPM, which makes it easier for you to browse the vFabric RPMs, including the vFabric Web Server RPM. The vFabric repository contains all RPMs that are certified with this release of vFabric Suite. You install the vFabric repository RPM on each RHEL computer on which you want to install one or more vFabric components, such as vFabric Web Server.
1. On the RHEL computer, start a terminal as the root user.
2. Install the vFabric repository RPM using the following wget command, passing it the appropriate URL. The URL differs
depending on the version of RHEL you are using.
Important: You must run the entire wget command on a single line. Be sure you include the | sh at the end, or the RPM installation will not work.
For RHEL 5:
prompt# wget -q -O - http://repo.vmware.com/pub/rhel5/vfabric/5.3/vfabric-5.3-suite-installer | sh
For RHEL 6:
prompt# wget -q -O - http://repo.vmware.com/pub/rhel6/vfabric/5.3/vfabric-5.3-suite-installer | sh
The command performs the following tasks:
• Imports the vFabric GNU Privacy Guard (GPG) key.
• Installs the vFabric 5.3 repository RPM.
• Launches the VMware End User License Agreement (EULA) acceptance and repository configuration script.
• Outputs the EULA for you to read; you must answer yes to accept the terms and continue.
3. Use the yum search vfabric or yum search vmware command to view the list of vFabric components that you
can install from the VMware repository. For example (output truncated for clarity):
prompt# yum search vfabric ... ======================================== Matched: vfabric ======================================== vfabric-rabbitmq-java-client-bin.noarch : The RabbitMQ Java Client Library vfabric-rabbitmq-server.x86_64 : The RabbitMQ server vfabric-tc-server-standard.noarch : VMware vFabric tc Server Standard vfabric-web-server.x86_64 : VMware vFabric Web Server ...
The vFabric Web Server RPM is called vfabric-web-server.
Procedure
1. From the RHEL computer on which you will install vFabric Web Server, log in as the root user and start a terminal.
2. Execute the following yum command:
prompt# yum install vfabric-web-server
The yum command begins the install process, resolves dependencies, and displays the packages it will install.
The yum command automatically chooses the appropriate RPM package based on your architecture (32- or 64-bit).
To install the developer's package:
prompt# yum install vfabric-web-server-devel
8 Installing vFabric Web Server
Installing vFabric Web Server 9
3. Enter y at the prompt to begin the actual installation.
If the installation is successful, you see a Complete! message at the end.
What the yum install command does
The yum install command:
• Installs vFabric Web Server into the /opt/vmware/vfabric-web-server directory.
• Sets the owner of installation directory, along with all child directories and files, to root:root.
What to do next
• If you installed Web Server standalone, activate a local Web Server license as described in Activate a vFabric Web Server
Local License.
If you installed vFabric Web Server as part of vFabric Suite, you should have already activated licensing as described in the procedures for installing vFabric License Server and activating vFabric Suite licenses in Getting Started with vFabric Suite. (You may also want to read the other vFabric licensing sections in that guide, to understand how licensing works with vFabric Suite.)
• Read Description of the vFabric Web Server Installation for a brief tour of what was installed.
• Create and start using a vFabric Web Server as described in Creating and Using vFabric Web Server Instances.

Install vFabric Web Server From a Downloaded RPM

You can install vFabric Web Server on RHEL by downloading the RPM from the VMware download center and executing the rpm command. This procedure is necessary if you want to install a version of Web Server that has not yet been certified for vFabric Suite.
Prerequisites
• Verify that your system meets the supported configurations and installation requirements. See Supported Configurations and
System Requirements.
Procedure
1. Log in to the RHEL computer on which you will install vFabric Web Server as the root user.
2. Browse to the VMware Download page and download the Web Server RPM file to a directory on your computer. The RPM
file is called vfabric-web-server-version.architecture.rpm.
3. Start a terminal and change to the directory in which you downloaded the RPM.
4. Execute the following rpm command to install Web Server:
prompt# rpm -ivhf vfabric-web-server-version.architecture.rpm
5. In the previous section, see What the yum install command does for post-installation information, such as the installation
directory. (The yum install command corresponds to the rpm command in this procedure.)
See What to do next for the suggested next steps.

Unix: Install vFabric Web Server from a Self-Extracting ZIP

You can install vFabric Web Server on Unix computers with a self-extracting ZIP file that you download from the VMware Web site. Self-extracting zip files expand themselves, or you can use unzip if your platform supports it. Using unzip explicitly enables you to specify options in addition to what is executed by default when the ZIP self-extracts.
VMware vFabric Suite 5.3 9
10 vFabric Web Server
Prerequisites
• Verify that your system meets the supported configurations and installation requirements. See Supported Configurations and
System Requirements.
• If you want to use unzip so you can specify additional options, but your platform does not support unzip, obtain an unzip
command.
• If your operating system is configured to support only 64-bit operation, an external unzip utility is required. Do not use the jar utility to unpack these zip files, because the file system permissions will not be unpacked correctly.
• Be sure you have installed Perl on your computer, and that it is at least version 5.8. VMware recommends that you run the Perl script (described in the procedure) in multibyte character encoding such as UTF-8, especially if you are an international customer.
Procedure
1. Log in as the root user on to the Unix computer on which you want to install vFabric Web Server.
2. Create the directory in which you will install vFabric Web Server. For example:
prompt# mkdir /opt/vmware
3. Download the appropriate vFabric Web Server self-extracting ZIP from the VMware Download Web site and place it in the
directory you created.
Be sure to choose the correct Unix operating system and chip architecture. For example, the file to install vFabric Web Server on a 64-bit Linux platform is vfabric-web-server-version-x86_64-linux-glibc2.zip.sfx.
4. From your terminal window, change to the directory in which you downloaded the ZIP file:
prompt# cd /opt/vmware
5. If necessary, change the permissions of the downloaded ZIP file to make it executable:
prompt# chmod 755 vfabric-web-server-version-x86_64-linux-glibc2.zip.sfx
6. Self-extract the files from the downloaded ZIP by using the file name as a command. For example:
prompt# ./vfabric-web-server-version-x86_64-linux-glibc2.zip.sfx
When it completes, the vFabric Web Server files are located in the vfabric-web-server subdirectory.
7. Change to the vfabric-web-server directory and run the fixrootpath.pl Perl script to correct the root paths. For
example:
prompt# cd vfabric-web-server prompt# perl fixrootpath.pl
What to do next
• If you installed Web Server standalone, activate a local Web Server license as described in Activate a vFabric Web Server
Local License.
If you installed vFabric Web Server as part of vFabric Suite, you should have already activated licensing as described in the procedures for installing vFabric License Server and activating vFabric Suite licenses in Getting Started with vFabric Suite. (You may also want to read the other vFabric licensing sections in that guide, to understand how licensing works with vFabric Suite.)
10 Installing vFabric Web Server
Installing vFabric Web Server 11
• Read Description of the vFabric Web Server Installation for a brief tour of what was installed.
• Create and start using a vFabric Web Server as described in Creating and Using vFabric Web Server Instances.

Windows: Install vFabric Web Server from a ZIP File

You install vFabric Web Server on Windows computers using a self-extracting ZIP file (*.zip.exe) that you download from the VMware Web site.
Prerequisites
• Verify that your system meets the supported configurations and installation requirements. See Supported Configurations and
System Requirements.
• As of version 5.3 of vFabric Web Server, you must use Windows PowerShell 2.0 to execute the vFabric Web Server scripts on Windows computers. Most recent Windows versions, such as Windows 7, have PowerShell installed by default, but some older versions of Windows do not. To check whether your version of Windows has PowerShell installed, go to Start > All Programs > Accessories and check for Windows PowerShell in the list.
If Windows PowerShell 2.0 is not installed on your Windows computer, download and install it from the Windows
Management Framework (Windows PowerShell 2.0, WinRM 2.0, and BITS 4.0) Web page on the Microsoft Support.
• If necessary, enable Windows PowerShell for script processing; by default, script processing is disabled.
1. Start PowerShell from the Start Menu as an Administrator by opening Start > All Programs > Accessories > Windows
PowerShell, then right-clicking on Windows PowerShell and selecting Run as Administrator. A PowerShell window starts.
2. Check the current PowerShell setting by executing the following command:
PS prompt> Get-ExecutionPolicy
If the command returns Restricted, it means that PowerShell is not yet enabled. Enable it to allow local script processing at a minimum by executing the following command:
PS prompt> Set-ExecutionPolicy RemoteSigned
You can choose a different execution policy for your organization if you want, as well as enable PowerShell using Group and User policies. Typically, only the Administrator will be using the vFabric Web Server scripts, so the RemoteSigned execution policy should be adequate in most cases.
Procedure
1. From the Windows computer on which you want to install vFabric Web Server, log in as the Administrator user.
2. Start PowerShell from the Start Menu as an Administrator by opening Start > All Programs > Accessories > Windows
PowerShell, then right-clicking on Windows PowerShell and selecting Run as Administrator. A PowerShell window starts.
3. Create the directory into which you will install vFabric Web Server. Do not create a directory name that contains spaces. For
example:
PS prompt> mkdir c:\opt\vmware
4. Download the appropriate vFabric Web Server self-extracting ZIP from the VMware Download Web site and place it in the
directory you created.
Be sure to choose the correct architecture (32- or 64-bit). For example, the file to install vFabric Web Server on a 64-bit Windows platform is vfabric-web-server-version-x64-windows.zip.exe.
VMware vFabric Suite 5.3 11
12 vFabric Web Server
5. Execute the downloaded *.zip.exe file to self-extract the files into the directory you created. You can do this, for example, by opening Window Explorer, navigating to the directory, and double-clicking on the *.zip.exe file.
When the extraction completes, the vFabric Web Server files are located in the vfabric-web-server subdirectory.
6. From your command window, change to the main vFabric Web Server directory:
PS prompt> cd c:\opt\vmware\vfabric-web-server
7. Run the fixrootpath.ps1 PowerShell script to correct the root paths:
PS prompt> .\fixrootpath.ps1
8. Create a symbolic link from the existing httpd-2.2.version directory to one called httpd-2.2, where version refers to the minor version and architecture of vFabric Web Server.
PowerShell does not include mklink intrinsically, so you must use the command cmd /c mklink. For example, to use the 64-bit edition of vFabric Web Server, run the following command:
PS prompt> cmd /c mklink /d httpd-2.2 httpd-2.2.23.0-64
What to do next
• If you installed Web Server standalone, activate a local Web Server license as described in Activate a vFabric Web Server
Local License.
If you installed Web Server as part of vFabric Suite, you should have already activated licensing as described in the procedures for installing vFabric License Server and activating vFabric Suite licenses in Getting Started with vFabric Suite. (You may also want to read the other vFabric licensing sections in that guide, to understand how licensing works with vFabric Suite.)
• Read Description of the vFabric Web Server Installation for a brief tour of what was installed.
• Create and start using a vFabric Web Server as described in Creating and Using vFabric Web Server Instances.

Activate a vFabric Web Server Local License

When you purchase a local production vFabric Web Server license, your account manager provides you with one or more serial numbers. This section describes how to activate this local license.
Important: This section does not apply if you purchased vFabric Web Server as part of vFabric Suite. To activate licensing for vFabric Suite (including vFabric Web Server), complete the procedures for installing vFabric License Server and activating vFabric Suite licenses in Getting Started with vFabric Suite. You may also want to read the other vFabric licensing sections in that guide, to understand how licensing works with vFabric Suite.
Procedure
1. On the computer on which you installed Web Server, paste the serial number into a file named vf.ws-serial­numbers.txt.
2. Save this file to the directory appropriate to your operating system:
• Windows: %ALLUSERSPROFILE%\VMware\vFabric\
• Unix: /etc/opt/vmware/vfabric/
3. Ensure that the file is readable by the user who runs the Web Server instance. Because this user is typically root, no additional steps are typically required on Unix. Windows users who adjust the vFabric Web Server service to run as an account other than LocalSystem will need to verify these permissions.
12 Installing vFabric Web Server
Installing vFabric Web Server 13

Description of the vFabric Web Server Installation

The main vFabric Web Server directory structure, although similar in many ways to the standard Apache HTTP directory layout, differs from it in a very fundamental way: vFabric Web Server separates the runtime binaries from the configuration data.
To implement this separation, you use the newserver command to create a vFabric Web Server instance that lives in a subdirectory of the main vFabric Web Server home directory. The name of the instance is the name of the new subdirectory. You then configure this instance as you want, using the standard Apache httpd files in the server-name/conf directory, such as httpd.conf.
Perform all configuration work inside the server instance (server-name/conf) directory. Never modify any files under the binary directory (such as httpd-2.2).
Keeping the runtime binary files apart from the files that are configured by administrators or end users makes it easier to upgrade or apply patches to the code without the risk of overwriting or corrupting user data. It also enables administrators to run multiple server instances independently.
Directly after installing vFabric Web Server, you see the following files and directories:
httpd-2.2/ : Symbolic link to a sibling directory that actually contains the Apache 2.2 binary runtime files.
httpd-2.2.version/ : Directory that contains the actual Apache 2.2 binary runtime files. The 2.2.version string specifies the Apache HTTP version, such as 2.2.23.0 or 2.2.23.0-64.
licenses/ : EULA and open source license files.
newserver : (Unix) Perl script for creating vFabric Web Server instances.
newserver.ps1 : (Windows) PowerShell script for creating vFabric Web Server instances.
fixrootpath.pl : (Unix) Perl script for fixing root paths; run only once.
fixrootpath.ps1 : (Windows) PowerShell script for fixing root paths; run only once.
After you use newserver to create a new vFabric Web Server instance, the command creates a new directory that contain a separately configurable instance of vFabric Web Server. An instance is a complete, discrete server configuration. You can create multiple instances. You can run multiple instances at the same time if you are careful not to use the same ports in two different instances. For example, the default HTTP listening port is 80, and only one instance on any computer is allowed to communicate on port 80 at any one time. So if you wanted to have two vFabric Web Server instances running at the same time on the same computer, you would configure one instance to use a port other than 80.
Each instance directory contains subdirectories that contain all the data required to run a given vFabric Web Server instance. This includes configuration data as well as all other data that is associated with that instance's configuration. For example, assume you installed vFabric Web Server in /opt/vmware/vfabric-web-server and create an instance called myserver:
prompt$ cd /opt/vmware/vfabric-web-server/myserver prompt$ ls bin cgi-bin conf ftpdocs htdocs logs proxy ssl var
The conf directory contains the vFabric Web Server configuration files, such as httpd.conf. The bin directory contains the startup script used to start and stop the myserver instance (httpdctl. Each of these directories is specific to the myserver instance. Each instance that you create has a similar set of directories.
VMware vFabric Suite 5.3 13
14 vFabric Web Server
14 Installing vFabric Web Server
Loading...
+ 40 hidden pages