MongoDB php driver

Discussion in 'PHP' started by Voldron, May 21, 2012.

  1. Voldron

    Voldron New Member

    I've been trying for several days to get LSWS hooked up to the MongoDB driver and have had no such luck. I keep getting the following error in my application, "Fatal error: Class 'Mongo' not found" .

    Does LSWS even support Mongo? If so how can I get this wired in.

    Sorry if this makes me sound like a complete nub, never used LSWS before.

    BTW I'm on OS X 10.7 for my dev machine.

    Much thanks
  2. NiteWave

    NiteWave Administrator

  3. SuperBert

    SuperBert New Member

    This works for me:

    cd /usr/local/lsws
    unzip ~/mongo-php-driver-master.zip
    cd mongo-php-driver-master
    chmod +x /usr/local/lsws/phpbuild/php-5.3.28/scripts/*
    /usr/local/lsws/phpbuild/php-5.3.28/scripts/phpize
    ./configure --with-php-config=/usr/local/lsws/phpbuild/php-5.3.28/scripts/php-config
    make
    make install

    (obviously suit to your version of php)

Share This Page