Virtual Guru's Blog – Home of Virtualization Workshops

December 8, 2009

WebStack (AMP) in OpenSolaris JeOS Prototype

Filed under: cloud, jeos, opensolaris, virtualbox, Virtualization — natiku @ 6:19 am

OpenSolaris 200906 JeOS Prototype is PURE CLI enviroment, so its small true command line only enviroment, as such is ideal install BASE for web services like is WebStack AMP = Apache MySQL PHP

In this example I will use a WebStack AMP repository in OpenSolaris repository and optional WebStack repository.

General Information – JeOS Prototype OpenSolaris project

Download OpenSolaris 200906 JeOS Prototype VM for one 10+ most popular Virtualization Formats:

JeOS: Just enough OS Project Homepage

OpenSolaris 2009.06 JeOS Prototype VM Images Download

OpenSolaris 2009.06 JeOS Prototype 10 Simple Usage Samples

Discussion (Main page)

Discussion (Archives)

Part 1: Check JeOS readiness as user root

1. Switch to root

pfexec su - root

2a. Check, if PKG will clean download cache on SUCCESS

root@osol-jeos:~# pkg property flush-content-cache-on-success
PROPERTY                       VALUE
flush-content-cache-on-success True

2b. Check, then we increase PKG download patience for slowest networks

root@osol-jeos:~# set | grep PKG

2c. Check, then we use right main repository for

root@osol-jeos:~# pkg publisher
PUBLISHER                             TYPE     STATUS   URI          (preferred)  origin   online
contrib                               origin   online

2d. Check, then we can access these repositories

root@osol-jeos:~# pkg refresh --full

2e. Check, download speed of whole repository catalog

root@osol-jeos:~# curl >/dev/null
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
Dload  Upload   Total   Spent    Left  Speed
100 1333k  100 1333k    0     0  93491      0  0:00:14  0:00:14 --:--:--  126k

2f. Check, if we have enought memory and activated swap (I recommend if possible to have VM with 768MB-1GB RAM configured)

root@osol-jeos:~# top | grep Memory
Memory: 1024M phys mem, 1025M free mem, 512M total swap, 512M free swap

Part2: Install WebStack AMP on OpenSolaris JeOS Prototype

I will install amp cluster with PHPMyAdmin and optionally we can install over a webstack-ui cluster

root@osol-jeos:~# pkg install -nv amp | tee /tmp/eval.log
Before evaluation:
After evaluation:
None -> pkg:/amp@0.5.11,5.11-0.111:20090508T164640Z
None -> pkg:/SUNWmysql51@5.1.30,5.11-0.111:20090508T162307Z
None -> pkg:/SUNWmysql-base@0.5.11,5.11-0.111:20090508T162240Z
None -> pkg:/SUNWapch22m-security@2.5.9,5.11-0.111:20090508T153200Z
None -> pkg:/SUNWphp52@5.2.9,5.11-0.111:20090508T162708Z
None -> pkg:/SUNWlibmcrypt@2.5.8,5.11-0.111:20090508T161810Z
None -> pkg:/SUNWltdl@1.5.22,5.11-0.111:20090508T161904Z
None -> pkg:/SUNWtidy@1.0.0,5.11-0.111:20090508T163844Z
None -> pkg:/SUNWapch22@2.2.11,5.11-0.111:20090508T153131Z
None -> pkg:/SUNWapr13@1.3.3,5.11-0.111:20090508T153209Z
None -> pkg:/SUNWapu13-ldap@1.3.4,5.11-0.111:20090508T153216Z
None -> pkg:/SUNWapu13@1.3.4,5.11-0.111:20090508T153214Z
None -> pkg:/SUNWapch22m-dtrace@0.3.1,5.11-0.111:20090508T153154Z
None -> pkg:/SUNWphp52-mysql@5.2.9,5.11-0.111:20090508T162714Z
None -> pkg:/SUNWmysql51lib@5.1.30,5.11-0.111:20090508T162330Z
None -> pkg:/SUNWapch22m-fcgid@2.2,5.11-0.111:20090508T153156Z
None -> pkg:/SUNWapch22m-php52@5.2.9,5.11-0.111:20090508T153159Z
restart_fmri: svc:/system/manifest-import:default
root@osol-jeos:~# cat /tmp/eval.log | grep "None -"| sed -e s'\/\ \g'| sed -e s'\@\ \g'| awk '{print $4}' | xargs -n1 pkg list -Hsa
amp                            Cluster containing an AMP (Apache, MySQL, PHP) deployment kit
SUNWmysql51                    MySQL 5.1 - MySQL Database Management System (root component)
SUNWmysql-base                 MySQL Database Management System (Base)
SUNWapch22m-security           Mod Security plugin for Apache Web Server V2.2
SUNWphp52                      PHP Server 5.2
SUNWlibmcrypt                  Libmcrypt Encryption Algorithms Library
SUNWltdl                       libltdl - GNU libtool dlopen wrapper
SUNWtidy                       The HTML Tidy Library
SUNWapch22                     Apache Web Server V2.2
SUNWapr13                      Apache Portable Runtime (APR) 1.3 development header files and libraries
SUNWapu13-ldap                 Apache Portable Runtime Utility (APR-util) 1.3 LDAP's stub
SUNWapu13                      Apache Portable Runtime Utility (APR-util) 1.3 development header files and libraries
SUNWapch22m-dtrace             DTrace plugin for Apache Web Server V2.2
SUNWphp52-mysql                PHP 5.2 module for MySQL
SUNWmysql51lib                 MySQL 5.1 - MySQL Database Management System (library component)
SUNWapch22m-fcgid              FastCGI plugin for Apache Web Server V2.2
SUNWapch22m-php52              PHP Server 5.2 module for Apache Web Server V2.2

amp cluster will download 105MB, so I will decompose it to smaller chunks

root@osol-jeos:~# pkg install  amp
DOWNLOAD                                    PKGS       FILES     XFER (MB)
SUNWmysql51                                 1/19      0/1744   0.00/105.41^C

1. Install Apache WebServer

root@osol-jeos:~# pkg install SUNWapch22 SUNWapch22d
DOWNLOAD                                    PKGS       FILES     XFER (MB)
Completed                                    5/5   1745/1745     7.55/7.55
PHASE                                        ACTIONS
Install Phase                              2010/2010
Deleting content cache

2. Install BASE MySQL stuff

root@osol-jeos:~# pkg install SUNWmysql51  SUNWmysql-base
DOWNLOAD                                    PKGS       FILES     XFER (MB)
Completed                                    2/2     335/335   84.19/84.19
PHASE                                        ACTIONS
Install Phase                                427/427
Deleting content cache

3. Install rest of amp cluster (PHP and various libs/modules)

root@osol-jeos:~# pkg install amp
DOWNLOAD                                    PKGS       FILES     XFER (MB)
Completed                                  13/13     517/517   16.78/16.78
PHASE                                        ACTIONS
Install Phase                                878/878
Deleting content cache

4. Install PHPMyAdmin from webstack repository

root@osol-jeos:~# pkg set-publisher -O webstack
root@osol-jeos:~# pkg install phpmyadmin
DOWNLOAD                                    PKGS       FILES     XFER (MB)
Completed                                    4/4     630/630     2.86/2.86
PHASE                                        ACTIONS
Install Phase                                686/686
Deleting content cache

Note: amp-dev will try to install on on JeOS 58 packages and to download 368MB !

root@osol-jeos:~# pkg install  amp-dev
DOWNLOAD                                    PKGS       FILES     XFER (MB)
SUNWphp52-pear                              1/58     0/21874   0.00/368.13^C

Part 3: Configure and use AMP WebStack

Web Stack Getting Started Guide

Sun Web Stack Installation and Configuration Guide

WebStack OpenSolaris Home


1 Comment »

  1. […] WebStack (Apache,MySQL,PHP) in OpenSolaris JeOS Prototype […]

    Pingback by OpenSolaris JeOS (Main Page) « Virtual Guru's Blog – Home of Virtualization Workshops — February 7, 2010 @ 3:49 pm

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

Create a free website or blog at

%d bloggers like this: