Installing Oracle support for litespeed

Discussion in 'PHP' started by reshu1596, Feb 14, 2007.

  1. reshu1596

    reshu1596 Member

    I wanted to install litespeed with oracle support under my home directory on a solaris server. Thought I will share with the user community.

    1. Oracle client is installed on the server with the following environments

    2. Downloaded and installed the instantclient. Note I unzipped instantclient-basic, instantclient-sdk and

    instantclient-sqlplus under $HOME/oracle/

    3. under the $HOME/oracle/instantclient, create this soft link. Not sure why, but the installation was looking for this file.
    ln -s

    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
    bash-2.05$ echo $HOME
    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/
    autoheader: WARNING: Using auxiliary files such as `acconfig.h', `'
    autoheader: WARNING: and `', to define templates for `'
    autoheader: WARNING: is deprecated and discouraged.
    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: WARNING: AC_DEFINE([NEED_FUNC_MAIN], 1,
    autoheader: [Define if a function `main' is needed.])
    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'


    config.status: creating sapi/cli/php.1
    config.status: creating main/php_config.h
    config.status: executing default commands

    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 http://hostname:<admin port>
    2. Click on Server Configuration
    3. Click on External App
    4. Edit "LSAPI App" and add the following to the Environment
  2. mistwang

    mistwang LiteSpeed Staff

    Thanks for the tutorial, will add it to our wiki.

Share This Page