Note: Today I would recommend using Quercus on GlassFish 3 instead of using pure PHP. Please see Quercus PHP 3.2.1 on GlassFish 2.1 as an example of how to implement it.
1. Set the path as follows:
export PATH=/opt/csw/bin:/usr/sfw/bin:/usr/sbin:/usr/bin: \
/usr/openwin/bin:/usr/dt/bin:/usr/ccs/bin
2. Install the following packages from blastwave.org
pkg-get -U
pkg-get -i autoconf
pkg-get -i automake
pkg-get -i gsed
pkg-get -i libxml2
2. Check software revision levels
which autoconf && autoconf --version | head -2
/opt/csw/bin/autoconf
autoconf (GNU Autoconf) 2.59
Written by David J. MacKenzie and Akim Demaille.
which automake && automake --version | head -2
/opt/csw/bin/automake
automake (GNU automake) 1.9.6
Written by Tom Tromey
which gsed && gsed --version | head -2
/opt/csw/bin/gsed
GNU sed version 4.1.4
Copyright (C) 2003 Free Software Foundation, Inc.
which gcc && gcc --version | head -2
/usr/sfw/bin/gcc
gcc (GCC) 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
Copyright (C) 2004 Free Software Foundation, Inc.
which gmake && gmake --version | head -2
/opt/sfw/bin/gmake
GNU Make 3.80
Copyright (C) 2002 Free Software Foundation, Inc.
which flex && flex --version | head -2
/usr/sfw/bin/flex
flex version 2.5.4
which bison && bison --version | head -2
/usr/sfw/bin/bison
bison (GNU Bison) 1.875
Written by Robert Corbett and Richard Stallman.
#which gm4 && gm4 --version | head -2
/opt/csw/bin/gm4
GNU M4 1.4.5
Written by Rene' Seindal.
which perl && perl -v | head -2
/opt/csw/bin/perl
This is perl, v5.8.8 built for sun4-solaris-thread-multi
which gunzip && gunzip -V | head -2
/usr/bin/gunzip
gunzip 1.3.3-patch.1
(2002-03-08)
which gtar && gtar --version | head -2
/opt/csw/bin/gtar
tar (GNU tar) 1.15.91
Copyright (C) 2006 Free Software Foundation, Inc.
4. Use the following build script
./configure \
--enable-so \
--with-apxs2=/usr/apache2/bin/apxs \
--enable-fastcgi \
--enable-debug \
--with-zlib \
--with-bz2 \
--enable-calendar \
--enable-dba=shared \
--with-flatfile \
--enable-dbase \
--enable-ftp \
--with-openssl \
--with-ldap \
--with-ldap-sasl \
--enable-soap \
--with-oci8=/opt/oracle/app/oracle/product/10.2.0/db_1 \
--with-libxml-dir=/opt/csw \
--enable-mbstring \
--with-mycrpt
5. Run make all
6. Run make install
what php version do you use?
ReplyDeleteI believe that this was 5.1, but that was a long time ago.
ReplyDelete