Instructions currently incomplete, as I work on making sure my environment works. Please ask questions on the mailing list.

About this Guide

The installation instructions worked on a Solaris 10 Sparc server. They should work for other Solaris flavors and hardware. Primary sources include the BigAdmin SAMP article and the Blastwave How-to-Guide.

This guide will focus on getting Apache, MySQL and PHP5 installed from packages rather than source. Source compilation will be necessary however for some PHP5 extensions and YAZ.

SAMP Installation

Perform all steps as root.

Prepare Blastwave

#pkgadd -d http://www.blastwave.org/pkg_get.pkg
Note: Blastwave cleanly installs everything in /opt/csw.
#vi /opt/csw/etc/pkg-get.conf

Uncomment the line: url=http://ibiblio.org/pub/packages/solaris/csw/unstable (other mirrors are available via the Blastwave mirror site)

#/opt/csw/bin/pkg-get -i wget
#vi /etc/default

change PATH and SUPATH

PATH=/opt/csw/bin:/usr/sbin:/usr/bin:/usr/dt/bin:/usr/openwin/bin:/usr/ccs/bin
SUPATH=/opt/csw/bin:/usr/sbin:/usr/bin:/usr/dt/bin:/usr/openwin/bin:/usr/ccs/bin

repeat above step for /etc/default/su

#source /etc/default/su 

Confirm these steps worked (and save yourself from vi)

#pkg-get -i nano

MySQL Install

#pkg-get -i mysql5 mysql5client mysql5devel mysql5rt

Apache Install

#pkg-get -i apache2

PHP5 Install

#pkg-get -i php5 php5_curl php5_devel php5_ldap php5_mysql php5_xsl ap2_modphp5 php5_pspell

PDO-OCI Install

  • Download oracle instant client libraries for solaris from oracle site. You'll need both the sdk and basic packages. Uncompress and execute the self extracting file into /usr/lib/instantclient.
  • Download php5 source and uncompress. You'll need to compile a shared module to then add to your existing install.
# ./configure --prefix=/usr/local/php --with-pear --with-ldap --with-xsl --with-pspell --with-pdo-oci=shared,instantclient,/usr/lib/instantclient,10.2.0.3
# make
# make install

This should create the pdo_oci.so file you need in /usr/local/php/lib/php/extensions/no-debug-non-zts-20060613.

  • Copy pdo_oci.so and pdo_oci.a to /opt/csw/php5/lib/php/extensions/no-debug-non-zts-20060613/.
  • Edit /opt/csw/php5/lib/php/php.ini and add this line in the extensions section:
extension=pdo_oci.so
 
installation_solaris.txt · Last modified: 2008/05/30 11:35 by abarrera