Installing Apache via IPS/pkg(5) with GlassFish Web Stack 1.5

One of the key features in GlassFish Web Stack 1.5 is the ability to install the software through IPS/pkg(5). IPS stands for Image Packaging System. It is a relatively new packaging system which originated with OpenSolaris but has since been ported to many other platforms and is used by Sun and third-party products. IPS gives Web Stack graphical (bin/updatetool) and CLI (bin/pkg) tools to manage packages, those that come with Web Stack as well as ones available from other IPS repositories. In addition to providing a simplified download and install mechanism, the Web Stack packages delivered through IPS/pkg(5) are fully relocatable, support multiple installs per system, and simplify the software update procedure.

In order to install Apache and other Web Stack components through IPS, first download a small image file which contains the packaging tools, unpack the image file to create an initiall installation, then use the packaging tools to install the desired components. In the following screenshots, I'll walk through an IPS installation of Web Stack 1.5's Apache from start to finish.

First, go to http://www.sun.com/webstack/ and press the orange "Get it!" button:

Next, select the desired platform and log in with your Sun Connection id (no charge):

Next, be sure to select the IPS download (the other download files are in native package format):


Now that the initial image has been downloaded, unzip the image, rename the "webstack1.5" directory if desired, and start the graphical install tool:

Click on "Available Add-ons" to display the list of packages, then select the ones to install:

After you click the green install icon, the next panel allows you to confirm installation of the chosen components. Note that any dependencies have been automatically selected (Apache depends on the MySQL client libraries):

The licenses of the open source packages are displayed next:

Oops, when the graphical install tool exits on Solaris 10 we can see some harmless noise (described in the IPS/pkg(5) release notes):

As this is a non-root install, Apache listens on port 10080 by default. See that in the conf file, and start Apache:

Use the pkg CLI to display the packages which are installed.  This includes the packages we chose to install (plus the MySQL client library dependency), as well as the pre-installed IPS tools in the original image.

Here is the command-line alternative to the graphical install tool. Note that bin/setup-webstack has to be run manually any time a package is installed via the CLI.


Comments:

Post a Comment:
Comments are closed for this entry.
About

Jeff Trawick

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today