Sun Web Stack Installation and Configuration Guide

Version 89 by kunaldeo
on May 17, 2009 04:33.

compared with
Current by frankjen
on May 18, 2009 23:05.

(show comment)
Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (48)

View page history
h1. Sun GlassFish Web Stack Installation and Configuration Guide

This document describes how to install and configure Sun Web Stack and its components on Solaris, OpenSolaris and Linux platforms.



{section}



{column:width=35%}
Sun Web Stack is available for Solaris, OpenSolaris and Red Hat Enterprise Linux.
h2. Understanding Sun GlassFish Web Stack

Sun Web Stack can be deployed in many ways. Here is one example.
!UnderStanding_WebStack.png|align=center!
h3. Sun GlassFish Web Stack Components

The table lists the primary components bundled with Sun Web Stack.
|| Component Name \\ || Applicable Platform\\ || Component Type \\ || Component Version \\ || Component Homepage \\ ||
| Apache Server\\ | Solaris/OpenSolaris/Linux \\ | HTTP Server\\ | 2.2.11 2.2.9 | [http://httpd.apache.org/|http://httpd.apache.org/] |
| lighttpd | Solaris/OpenSolaris/Linux  \\ | HTTP Server\\ | 1.4.21 1.4.19 | [http://www.lighttpd.net/|http://www.lighttpd.net/] |
| Squid\\ | Solaris/OpenSolaris/Linux  \\ | Proxy Server\\ | 2.7.STABLE6\\ 2.6.STABLE17 \\ | [http://www.squid-cache.org/|http://www.squid-cache.org/] |
| MySQL \\ | Solaris/OpenSolaris/Linux  \\ | Database Server\\ | 5.1.30\\ 5.0.67 \\ | [http://www.mysql.com/|http://www.mysql.com/] |
| PHP | Solaris/OpenSolaris/Linux  \\ | Language \\ | 5.2.96 | [http://www.php.net/|http://www.php.net/] |
| Ruby | Solaris/OpenSolaris \\ | Language | 1.8.76 | [http://www.ruby-lang.org/en/|http://www.ruby-lang.org/en/] |
| Python | Solaris \\ | Language | 2.6.1 2.5.2 | [http://www.python.org/|http://www.python.org/] |
| memcached | Solaris/OpenSolaris/Linux  \\ | Caching System\\ | 1.2.5 | [http://www.danga.com/memcached/|http://www.danga.com/memcached/] |
| Apache Tomcat\\ | Solaris/OpenSolaris/Linux  \\ | Application Server\\ | 6.0.18 5.5.27 | [http://tomcat.apache.org/|http://tomcat.apache.org/] |
| Sun GlassFish Web Stack Enterprise \\
Manager\\ | Solaris/Linux\\ | Administration Tool\\ | 1.5\\ | [http://www.sun.com/software/solaris/amp/|http://www.sun.com/software/solaris/amp/|http://www.sun.com/software/solaris/amp/]\\ |
 
h3. Sun GlassFish Web Stack Default Network Ports
 
Sun GlassFish Web Stack utilizes several network ports by default for regular component operation. The following table lists the ports by component.
|| Component || Default Port Number \\ ||
| Apache HTTP Server\\ | 80 |
In order to install Sun Web Stack, the user must be logged in as system administrator or root.
h2. Installing Sun GlassFish Web Stack
 
This section discusses the installation of Sun GlassFish Web Stack on Solaris, OpenSolaris and Linux platforms.
 
h3. Installing Sun GlassFish Web Stack on Solaris and Linux Platforms
 
Perform following steps to install Sun GlassFish Web Stack
# Extract the tar.gz file containing the Sun GlassFish Web Stack installer.
{code}
gunzip -c xxx.tar.gz | tar xf -
h4. Additional Package Dependencies
Platform specific dependencies exist on Solaris and Red Hat Linux platforms. Install the dependent packages first. The following table summarize the dependencies for various Sun GlassFish Web Stack components.
{quote}
This is not a complete dependency list. Only important packages are listed here.
{quote}
|| Sun GlassFish Web Stack Component \\ || Important Solaris Dependencies \\ || Important RedHat Linux Dependencies ||
| Sun GlassFish Web Stack Installer  \\ | SUNWPython\\ | Python version 2.4 or higher |
| Apache HTTP Server\\ | SUNWlexpt, SUNWpr, SUNWtls, SUNWlibsasl, SUNWcry, SUNWpostgr-82-libs \\ | OpenSSL 0.9.8b or higher, OpenLDAP 2.3.27 or higher, sqlite 3.3.6 or higher, postgresql-libs 8.1.11 or higher   \\ |
| lighttpd \\ | \\ | pcre 3.1 or higher \\ |
| Apache Tomcat Server\\ | SUNWj5rt, SUNWj5dev  \\ | JDK 5.0 or higher \\ |
h3. Installing Sun GlassFish Web Stack on OpenSolaris Platform
 
For information on installing Sun GlassFish Web Stack on OpenSolaris platform, see [Web Stack Getting Started Guide for OpenSolaris 2008.11|Web Stack Getting Started Guide]
 
h2. Sun GlassFish Web Stack File Layout
 
This section discusses the file layout of Sun GlassFish Web Stack components on Solaris and Linux platforms. For information on the file layout on OpenSolaris, see [Web Stack Getting Started Guide for OpenSolaris 2008.11|http://wikis.sun.com/display/WebStack/Web+Stack+Getting+Started+Guide#WebStackGettingStartedGuide-FileLayoutofWebStackComponents] 

h3. Apache HTTP Server Files
The following list describes the file structure for the MySQL Database Server.
|| On Solaris\\ || On Linux \\ || Description ||
| /opt/webstack/mysql/5.10/bin | /opt/sun/webstack/mysql/5.0/bin | Contains the binaries and scripts. |
| /opt/webstack/mysql/5.10/lib | /opt/sun/webstack/mysql/5.0/lib | Contains the libraries for the client API. |
| /opt/webstack/mysql/5.10/include | /opt/sun/webstack/mysql/5.0/include  \\ | Contains the header files for the client API. |
| /opt/webstack/mysql/5.10/man/man1 | /opt/sun/webstack/mysql/5.0/man/man1 | Manual pages for client programs. |
| /opt/webstack/mysql/5.10/man/man8 | /opt/sun/webstack/mysql/5.0/man/man8 | Manual pages for server programs. |
| /opt/webstack/mysql/5.10/share | /opt/sun/webstack/mysql/5.0/share  \\ | Shared data: locale, time zone. |
| /opt/webstack/mysql/5.10/docs | /opt/sun/webstack/mysql/5.0/docs | Contains HTML documentation. |
| /opt/webstack/mysql/5.10/mysql-test | /opt/sun/webstack/mysql/5.0/mysql-test | Contains MySQL test programs. |
| /opt/webstack/mysql/5.10/sql-bench | /opt/sun/webstack/mysql/5.0/sql-bench | SQL benchmark test. |
| /opt/webstack/mysql/5.10/share/mysql | /opt/sun/webstack/mysql/5.0/share/mysql | Contains internationalization (I18N) files, sample configuration files, and utility scripts. |
| /var/opt/webstack/mysql/5.10/data | /var/opt/sun/webstack/mysql/5.0/data | Default database data directory. |
| /etc/opt/webstack/mysql/5.10 | /etc/opt/sun/webstack/mysql/5.0 | Contains the MySQL configuration file. |
| /opt/webstack/mysql/5.10/bin/mysql | /opt/sun/webstack/mysql/5.0/bin/mysql | Client executable. |
| /opt/webstack/mysql/5.10/bin/mysqld | /opt/sun/webstack/mysql/5.0/bin/mysqld \\ | Server executable. |

h3. PHP Files
| /etc/opt/webstack/squid/squid.conf | /etc/opt/sun/webstack/squid/squid.conf | The main configuration file. Modify this file for Squid Proxy Server to work. |
h2. Extending Sun GlassFish Web Stack
 
Sun GlassFish Web Stack can be easily extended using by using various third party extensions. This enables you to add new features to the existing software.

h3. Installing PHP extensions
h4. Installing setuptools (easy_install)
Use the following commands to download and install setuptools. You need have Sun Studio installed in your system to compile setuptools package. Also, verify that Sun GlassFish Web Stack location is present in the system PATH variable. This will avoid any conflict with the existing installation of python.
# Download and extract the python setuptools source package from [http://pypi.python.org/pypi/setuptools#downloads]. Download the tar.gz file (setuptools-0.6c9.tar.gz).
# Run the following command to compile and install the setuptools package. 
Ruby extensions are supported by RubyGems. RubyGems is a package manager for the Ruby programming language that provides a standard format for distributing Ruby programs and libraries (in a self-contained format called a "gem"), a tool designed to easily manage the installation of gems, and a server for distributing them.
Use the following command to install the ruby extension (gem). Make sure that you have Sun GlassFish Web Stack in PATH variable.
{code}
# gem install <gem name>
h2. Advanced Configuration
Sun GlassFish Web Stack can take advantage of Solaris OS specific features like Solaris Zones and DTrace. For more information, see:
* [Using Memcached with Solaris Zones |http://wikis.sun.com/display/WebStack/Memcached+On+Zones]
* [DTrace and Sun GlassFish Web Stack |http://wikis.sun.com/display/WebStack/DTrace+and+Web+Stack]

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