|
| 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:
memcached memory caching system
This article shows you how to install Web Stack on the OpenSolaris OS, a process that involves only a few simple steps.
Note:
Web Stack is an open-source project hosted at
opensolaris.org. To recommend or request new components in Web Stack, or to provide other feedback, participate in the project's
mailing lists.
| - | Download and Installation |
| - | Initialization |
| - | References |
| |
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.
To install
amp-dev, type:
% 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
opensolaris.org.
For ongoing tips, guidelines, and announcements on OpenSolaris, visit the Solaris Developer Center and The Observatory.
