make it so
The mnoGoSearch-Client for PHP:
(http://www.mnogosearch.org/download.html)
cd /usr/src && \
wget http://www.mnogosearch.org/Download/php/mnogosearch-php-extension-1.96.tar.gz
tar xvfz mnogosearch-php-extension-1.96.tar.gz
Fix some lines in the mnogosearch-php-extension-file "php_mnogo.c"
search for
&(Agent->Conf->Synonyms)
and replace with
Agent->Conf->Synonym.Item
(should be on lines 920 and 1721)
The mnoGoSearch-Debian-Packages:
apt-get install mnogosearch-common mnogosearch-mysql mnogosearch-dev
The build-tree
apt-get build-dep php5
apt-get source php
apt-get source php5
Apply Debian-Patches
cd /usr/src/php5-5.2.5/ && ./debian/rules patch
Move the mnoGoSearch to the PHP-Build-Tree
mv ../1.96 ext/mnogosearch
Edit debian/rules and add "
--with-mnogosearch=shared,/usr \" somewhere in the configure-rules
vi debian/rules
Edit debian/modulelist and append "
mnogosearch mnoGoSearch" at the end
Let Debian do the rest (... wait ...)
./debian/rules binary
If done there should be a so-file avaliable:
cp ./apache2-build/modules/mnogosearch.so /usr/lib/php5/20060613+lfs/mnogosearch.so
Then add the PHP5-INI-File here:
vi /etc/php5/conf.d/mnogosearch.ini
Content of the INI-File:
extension=mnogosearch.so
Restart your Apache and a phpinfo() should give you the info about the loaded mnoGoSearch-DSO.