xref: /plugin/sphinxsearch-was/INSTALL (revision 27:fbc14c95b41d)
1* Requirements
21. Sphinx Search (www.sphinxsearch.com)
32. SQLite (Plus the PHP SQLite extension. It is enabled by default as of PHP 5.)
4
5
6* Installation
71. Download latest sphinxsearch plugin package and unpack it into lib/plugins directory of your DokuWiki installation.
82. Run Sphinx Search indexer to index your DokuWiki data for the first time. Note: you have to run it from lib/plugins/sphinxsearch directory. e.g.:
9   $cd {Your_DokuWiki_Path}/lib/plugins/sphinxsearch
10   $indexer -c sphinx.conf dk_main
113. After indexer completes it's job, run searchd, e.g.:
12   $searchd -c sphinx.conf
13   By default searchd port is 3313, so make sure this port is free (if you have sphinx on other port, see #6).
144. To have your search results up-to-date, setup cronjob to periodically re-index your DokuWiki files, e.g.:
15    1 10 * * * root {Your_DokuWiki_Path}/lib/plugin/sphinxsearch/indexer.php
165. You can fine-tune the search behavior by editing the configuration file conf/default.php
17
18
19* Troubleshooting
201. PHP allocate memory problem.
21This is solved by increasing PHP memory limit - you can use one of the following ways:
22   a) through php.ini
23        memory_limit = 1024M
24   b) through php script
25        ini_set('memory_limit', '1024M');
26   c) through .htaccess file
27        php_value memory_limit "1024M"
28
29
30