I wanted to install litespeed with oracle support under my home directory on a solaris server. Thought I will share with the user community.
Assumptions
1. Oracle client is installed on the server with the following environments
LD_LIBRARY_PATH=/export/home/rawlog/oracle/lib
ORACLE_HOME=/oracle/g01/software/rdbms/9.2.0.6
2. Downloaded and installed the instantclient. Note I unzipped instantclient-basic, instantclient-sdk and
instantclient-sqlplus under $HOME/oracle/
http://www.oracle.com/technology/tech/oci/instantclient/index.html
3. under the $HOME/oracle/instantclient, create this soft link. Not sure why, but the installation was looking for this file.
ln -s libclntsh.so.10.1 libclntsh.so
4. Ensure you have GNU make, gnu m4, libxml2 and autoconf packages. The ones that come with solaris donot work. I spent too much time trying to figure this out.
5. litespeed is installed under $HOME/lsws
bash-2.05$ pwd
/export/home/rawlog
bash-2.05$ echo $HOME
/export/home/rawlog
bash-2.05$ tar -xf php-5.1.4.tar
--> downloaded from wget
bash-2.05$ cd php-5.1.4/sapi/
bash-2.05$ cp ../../PHPProject/php-litespeed-2.4.tgz ./
--> downloaded from wget
bash-2.05$ gunzip php-litespeed-2.4.tgz
bash-2.05$ tar -xf php-litespeed-2.4.tar
bash-2.05$ cd ..
bash-2.05$ touch ac*
bash-2.05$ ./buildconf --force
Forcing buildconf
using default Zend directory
buildconf: checking installation...
buildconf: autoconf version 2.60 (ok)
buildconf: Your version of autoconf likely contains buggy cache code.
Running cvsclean for you.
To avoid this, install autoconf-2.13.
rebuilding configure
aclocal.m4:2056: PHP_PROG_LEX is expanded from...
rebuilding acconfig.h
rebuilding main/php_config.h.in
autoheader: WARNING: Using auxiliary files such as `acconfig.h', `config.h.bot'
autoheader: WARNING: and `config.h.top', to define templates for `config.h.in'
autoheader: WARNING: is deprecated and discouraged.
autoheader:
autoheader: WARNING: Using the third argument of `AC_DEFINE' and
autoheader: WARNING: `AC_DEFINE_UNQUOTED' allows one to define a template without
autoheader: WARNING: `acconfig.h':
autoheader:
autoheader: WARNING: AC_DEFINE([NEED_FUNC_MAIN], 1,
autoheader: [Define if a function `main' is needed.])
autoheader:
autoheader: WARNING: More sophisticated templates can also be produced, see the
autoheader: WARNING: documentation.
aclocal.m4:2056: PHP_PROG_LEX is expanded from...
**************** or tar -xf php-5.1.4_ora.tar
bash-2.05$./configure '--prefix=/export/home/rawlog/php-5.1.4' '--with-litespeed' '--with-config-file-path=../conf'
'--with-oci8=instantclient,/export/home/rawlog/oracle'
.
.
.
config.status: creating sapi/cli/php.1
config.status: creating main/php_config.h
config.status: executing default commands
bash-2.05$make
.
.
Build complete.
(It is safe to ignore warnings about tempnam and tmpnam).
bash-2.05$ make install INSTALL_ROOT=/export/home/rawlog/php-5.1.4
cd $HOME/lsws/fcgi-bin
mv lsphp lsphp.old
cp /export/home/rawlog/php-5.1.4/sapi/litespeed/php lsphp
$HOME/lsws/bin/lswsctrl stop
$HOME/lsws/bin/lswsctrl start
1. Go to Admin window
2. Click on Server Configuration
3. Click on External App
4. Edit "LSAPI App" and add the following to the Environment
LD_LIBRARY_PATH=/export/home/rawlog/oracle/lib
ORACLE_HOME=/oracle/g01/software/rdbms/9.2.0.6
Assumptions
1. Oracle client is installed on the server with the following environments
LD_LIBRARY_PATH=/export/home/rawlog/oracle/lib
ORACLE_HOME=/oracle/g01/software/rdbms/9.2.0.6
2. Downloaded and installed the instantclient. Note I unzipped instantclient-basic, instantclient-sdk and
instantclient-sqlplus under $HOME/oracle/
http://www.oracle.com/technology/tech/oci/instantclient/index.html
3. under the $HOME/oracle/instantclient, create this soft link. Not sure why, but the installation was looking for this file.
ln -s libclntsh.so.10.1 libclntsh.so
4. Ensure you have GNU make, gnu m4, libxml2 and autoconf packages. The ones that come with solaris donot work. I spent too much time trying to figure this out.
5. litespeed is installed under $HOME/lsws
bash-2.05$ pwd
/export/home/rawlog
bash-2.05$ echo $HOME
/export/home/rawlog
bash-2.05$ tar -xf php-5.1.4.tar
--> downloaded from wget
Code:
http://us3.php.net/get/php-5.1.4.tar.gz/from/us2.php.net/mirror
bash-2.05$ cp ../../PHPProject/php-litespeed-2.4.tgz ./
--> downloaded from wget
Code:
http://www.litespeedtech.com/packages/lsapi/php-litespeed-2.x.tgz
bash-2.05$ tar -xf php-litespeed-2.4.tar
bash-2.05$ cd ..
bash-2.05$ touch ac*
bash-2.05$ ./buildconf --force
Forcing buildconf
using default Zend directory
buildconf: checking installation...
buildconf: autoconf version 2.60 (ok)
buildconf: Your version of autoconf likely contains buggy cache code.
Running cvsclean for you.
To avoid this, install autoconf-2.13.
rebuilding configure
aclocal.m4:2056: PHP_PROG_LEX is expanded from...
rebuilding acconfig.h
rebuilding main/php_config.h.in
autoheader: WARNING: Using auxiliary files such as `acconfig.h', `config.h.bot'
autoheader: WARNING: and `config.h.top', to define templates for `config.h.in'
autoheader: WARNING: is deprecated and discouraged.
autoheader:
autoheader: WARNING: Using the third argument of `AC_DEFINE' and
autoheader: WARNING: `AC_DEFINE_UNQUOTED' allows one to define a template without
autoheader: WARNING: `acconfig.h':
autoheader:
autoheader: WARNING: AC_DEFINE([NEED_FUNC_MAIN], 1,
autoheader: [Define if a function `main' is needed.])
autoheader:
autoheader: WARNING: More sophisticated templates can also be produced, see the
autoheader: WARNING: documentation.
aclocal.m4:2056: PHP_PROG_LEX is expanded from...
**************** or tar -xf php-5.1.4_ora.tar
bash-2.05$./configure '--prefix=/export/home/rawlog/php-5.1.4' '--with-litespeed' '--with-config-file-path=../conf'
'--with-oci8=instantclient,/export/home/rawlog/oracle'
.
.
.
config.status: creating sapi/cli/php.1
config.status: creating main/php_config.h
config.status: executing default commands
bash-2.05$make
.
.
Build complete.
(It is safe to ignore warnings about tempnam and tmpnam).
bash-2.05$ make install INSTALL_ROOT=/export/home/rawlog/php-5.1.4
cd $HOME/lsws/fcgi-bin
mv lsphp lsphp.old
cp /export/home/rawlog/php-5.1.4/sapi/litespeed/php lsphp
$HOME/lsws/bin/lswsctrl stop
$HOME/lsws/bin/lswsctrl start
1. Go to Admin window
Code:
http://hostname:<admin port>
3. Click on External App
4. Edit "LSAPI App" and add the following to the Environment
LD_LIBRARY_PATH=/export/home/rawlog/oracle/lib
ORACLE_HOME=/oracle/g01/software/rdbms/9.2.0.6
Last edited by a moderator: