|
By Brian Leonard, with contributions from Marina Sum, October 6, 2008
|
|
|
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:
- Apache software
- MySQL database
- PHP scripting language
- Python programming language
- Tomcat servlet container
- Subversion version control system
- Concurrent Versions System (CVS)
- Squid caching proxy
memcached memory caching system
- NetBeans IDE
- Web Stack tools and UI
This article shows you how to install Web Stack on the OpenSolaris OS, a process that involves only a few simple steps.
Contents
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.
To install amp-dev, type:
% pfexec pkg install amp-dev
When installation is complete, the output looks like this:

Initialization
Next, initialize Web Stack:
- In the Applications menu, choose Developer Tools > Web Stack Initialize. See Figure 1.
Figure 1: Initializing Sun Web Stack
A terminal is displayed.
- Type your root password at the prompt. See Figure 2.
Figure 2: Running the Initialization Script Click here for a larger image.
When initialization is complete, the script posts a confirmation. See Figure 3.
Figure 3: Confirmation of Initialization Click here for a larger image.
The Developer Tools menu now includes a submenu for the Web Stack GUI tools, as in Figure 4.
Figure 4: Submenu for the Web Stack GUI Tools Click here for a larger image.
- Initialize the Service Management Facility (SMF) services for the Apache and MySQL servers. Type this command to restart the SMF manifest import service:
% svcadm restart manifest-import
Give the service a few seconds to load the new service descriptions as it restarts.
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).
Figure 5: Web Stack Options Dialog Box Click here for a larger image.
References
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.
|
Brian Leonard, a technology evangelist at Sun, has over 18 years of software development experience, evolving from the terminal to the desktop, to the Web, and back to the desktop. In his current role, Brian creates and fosters the community around the OpenSolaris OS. That background uniquely qualifies him to advocate for OpenSolaris, with features like ZFS and DTrace, as the ideal operating system for developers.
|
Marina Sum, is a staff writer for Sun Developer Network. She has been writing for Sun since 1989, mostly in the technical arena. Marina blogs on Sun products, technologies, events, and publications.
|
|