How do I install and compile PHP with PECL's Mongo DB extension in Litespeed GUI

Discussion in 'Install/Configuration' started by bzerangue, Oct 29, 2011.

  1. bzerangue

    bzerangue New Member

    How do I install and compile PHP with PECL's Mongo DB extension, http://pecl.php.net/package/mongo, in Litespeed Admin GUI? Can someone give me the steps I need to take to get this up and running.

    I've compiled PHP through the GUI, I just don't know how to compile with the PECL extension.

    I tried installing it this way...

    Code:
    sudo /usr/local/lsws/lsphp5/bin/pecl install -f mongo
    and I get the following error message...

    Code:
    /usr/local/lsws/lsphp5/bin/pecl: line 28: /usr/local/lsws/lsphp5/bin/php: No such file or directory
    /usr/local/lsws/lsphp5/bin/pecl: line 28: exec: /usr/local/lsws/lsphp5/bin/php: cannot execute: No such file or directory
    My directory (/usr/local/lsws/lsphp5/bin/) has the following items...
    lsphp pear peardev pecl phar phar.phar php-config php.dSYM phpize
  2. mistwang

    mistwang LiteSpeed Staff

    you can try make a symbolic of lsphp as php under that directory.
    or, copy over the cli build of php from /usr/local/lsws/phpbuild/php-xxxx/ directory.

Share This Page