View Source

[Setting Up Your Development Environment on OpenSolaris]
{toc:style=none|indent=20px}

h2. Complete Web Development Stack

The OpenSolaris OS offers complete support for developing and deploying applications for the web. The most commonly used open source applications, servers, and frameworks are available for the OpenSolaris OS. These Web Stack applications include several open source applications that are optimized for the OpenSolaris OS.

Following are some of the most popular tools that are available in Web Stack:
# *Server Software* - Apache Web Server, Squid Proxy Server
# *Database Software* - MySQL Server, PostgreSQL Server
# *Programming Environment* - PHP, Perl, Ruby, Python
# *Caching Software* - Memcached

h3. Installing Web Stack

Web Stack is not included on the OpenSolaris Live CD. You need to download the package separately from the IPS repository. Two different packages provide clusters of tools, or you could download and install each tool separately.

The AMP runtime components cluster ({{amp}}) includes Apache, MySQL, and PHP.

The AMP developer cluster ({{amp-dev}}) includes Apache, MySQL, PHP, the Web Stack user interface, NetBeans, Python, Tomcat, Squid, memchached, and other open source tools and servers, and the Mercurial, CVS, and Subversion source management systems.

To download and install a package by using the OpenSolaris Package Manager:
# Select System > Administration > Package Manager from the desktop menu bar on your OpenSolaris system.
# To find all the AMP packages, do one of the following steps:
** Select a Repository to search, select Web Services from the category menu, and select All Packages from the Show menu.
** Select a Repository to search, select Development from the category menu, select the Integrated Development Environments sub-category, and select All Packages from the Show menu.
** Select a Repository to search, type {{amp}} or {{web}} in the Search field, and press the Enter key.
** Select All Repositories from the Search menu, type {{amp}} or {{web}} in the Search field, and press the Enter key.
# A check mark in the Status column of the package list means that package is already installed on your system. If the package is not already installed, or if you want to update that package, select the checkbox to the left of the package name and then select the Install/Update button or the Package > Install/Update menu option at the top of the Package Manager window.

To install Web Stack components individually, use the Search field to find the packages you need to install. For example, enter "postgres" or "apache" into the Search field.

To use the IPS command line interface to install the AMP runtime components, enter the following command. This cluster does not include any development environment packages.
{code}$ pfexec pkg install amp{code}
To install the AMP developer cluster, enter the following command:
{code}$ pfexec pkg install amp-dev{code}

h3. Using the Web Stack IPS Repository

See the [Web Stack repository|http://pkg.opensolaris.org/webstack/en/catalog.shtml] for additional Web Stack tools you can install, such as Drupal or PHPMyAdmin. The applications that are available in the Web Stack repository are configured to work well with other components in the Web Stack.

To add this repository to the Package Manager:
# Select Add from the Repository menu or select the File > Manage Repositories menu option at the top of the Package Manager window.
# Enter the Name "webstack". This name will appear in the Repository menu.
# Enter the URL "http://pkg.opensolaris.org/webstack/".
# Select the Add button.
# Quit and restart the Package Manager to see this new repository in the list.

To add this repository using the IPS command line interface, use the {{pkg set-publisher}} command. See the [_OpenSolaris 2009.06 Image Packaging System Guide_|http://dlc.sun.com/osol/docs/content/2009.06/IMGPACKAGESYS/gentextid-410.html#gijmo] for more information.

h3. Web Stack Information Resources

For more information about Web Stack, refer to the following documents and web sites:
* [Deploying Web 2.0 Applications on Sun Servers and the OpenSolaris Operating System|http://www.sun.com/offers/docs/820-7729.pdf] \[PDF\]
* [Web Stack Release Notes|WebStack:Sun Web Stack Release Notes] What's new in the latest Web Stack release.
* [Web Stack Documentation|WebStack:Browse Documentation] See the tabs for Ruby, Squid, and other tools.
* [Web Stack Installation and Configuration Guide|WebStack:Sun Web Stack Installation and Configuration Guide]
* [Web Stack Getting Started Guide|WebStack:Web Stack Getting Started Guide]
* [Web Stack Home|WebStack:Web Stack Home] See child pages for Integrating Components into SFW, FastCGI, Lighttpd, Python Frameworks, memcached, SquidCache, and many other tools.
* [DTrace and Web Stack|WebStack:DTrace and Web Stack]
* [Web Stack OpenSolaris Project|http://opensolaris.org/os/project/webstack/]

The individuals who post here are part of the extended Sun Microsystems community and they might not be employed or in any way formally affiliated with Sun Microsystems. The opinions expressed here are their own, are not necessarily reviewed in advance by anyone but the individual authors, and neither Sun nor any other party necessarily agrees with them.

Copyright 1994-2009 Sun Microsystems, Inc.
Powered by Atlassian Confluence
Sun Guidelines on Public Discourse Privacy Policy Terms of Use Trademarks Site Map Employment Investor Relations Contact