|By Brian Leonard, with contributions from Marina Sum, October 6, 2008, updated: January 9, 2009 and January 13, 2009|
In July, Sun shipped Sun Web Stack (henceforth, Web Stack), which contains popular, preconfigured tools for developing and running applications. Specifically, here are the components:
memcachedmemory caching system
This article shows you how to install Web Stack on the OpenSolaris OS, a process that involves only a few simple steps.
|-||Download and Installation|
Web Stack is available as part of the Image Packaging System (IPS) package
amp-dev. Take a look at the details by running the
pkg info command:
amp-dev is a large package (627 Mbytes in size) and takes several minutes to download and install. However, if you've already installed some of its packages, IPS recognizes that and does not download and install them again.
% pfexec pkg install amp-dev
When installation is complete, the output looks like this:
Next, initialize Web Stack:
A terminal is displayed.
When initialization is complete, the script posts a confirmation. See Figure 3.
The Developer Tools menu now includes a submenu for the Web Stack GUI tools, as in Figure 4.
% svcadm restart manifest-import
To verify that the installation is successful, query the Apache and MySQL services with the
svcs command. Here are the syntax and examples of the output.
You can now start Apache or MySQL from either the Start Apache2/MySQL Servers menu or from the Web Stack Options dialog box (Figure 5).
You can also start the servers from the command line:
% svcadm enable apache22
% svcadm enable mysql
For details on working with the Service Management Facility, see The Observatory blog What makes OpenSolaris interesting? Reason #2: SMF .
For more details, including those on the installed packages, see the OpenSolaris documentation
Setting Up Your AMP Development Environment
.You can also track the
Web Stack project at
More Systems Downloads