Installing mnoGoSearch PHP module

Starting from the version 3.3.x, the mnoGoSearch PHP module is included into the main source distribution.

In order to install the module, please install the main mnoGoSearch components, then follow these steps:

  1. Go to the /php subdirectory of the unpacked mnoGoSearch sources:

    cd mnogosearch-3.3.x/php

  2. phpize

  3. ./configure --with-mnogosearch=/usr/local/mnogosearch

    Note: Change the directory if you installed mnoGoSearch into a different location.

  4. make

  5. As user root:

    make install

  6. As user root, go to the /etc/php.d directory and create a new file mnogosearch.ini with this content:

    
; Enable mnogosearch extension module
    extension=mnogosearch.so
    

    Note: The location of the php.d directory may differ, depending on your system layout.

  7. To make sure PHP has detected the mnoGoSearch PHP module, run this command from shell:

    echo "<?php phpinfo();?>" | php | grep -i mnogosearch

    The command output is expected to have these lines:

    
mnoGoSearch Support => enabled
    mnoGoSearch library version => 30305 (or a newer version number)
    

  8. If you use PHP as an Apache module, restart Apache (as root):

    service httpd restart

    or

    /etc/init.d/httpd restart

    or

    /usr/local/etc/rc.d/apache22 restart

    Note: The exact command depends on your operating system.