xref: /plugin/sphinxsearch-was/INSTALL (revision 29:b5b6c2cbe037)
1=== Requirements ===
2
31. Sphinx Search (http://www.sphinxsearch.com/downloads.html)
4
52. PHP5 with SQLite extension (it is enabled by default as of PHP 5)
6
7
8=== Installation ===
9
101. Unpack plugin files into lib/plugins directory of your DokuWiki installation.
11
122. Run Sphinx Search indexer to index your DokuWiki data for the first time.
13Note: you have to run it from lib/plugins/sphinxsearch directory. e.g.:
14	$cd {Your_DokuWiki_Path}/lib/plugins/sphinxsearch
15	$indexer -c sphinx.conf dk_main
16
173. After indexer completes it's job, run searched, e.g.:
18	$searchd -c sphinx.conf
19By default searchd port is 3313, so make sure this port is free (if you have sphinx on other port, see #5).
20
214. To have your search results up-to-date, setup cronjob to periodically re-index your DokuWiki data, e.g.:
22    1 10 * * * root {Your_DokuWiki_Path}/lib/plugin/sphinxsearch/indexer.php
23
245. You can fine-tune the search behavior by editing the configuration file conf/default.php
25
26
27=== Troubleshooting ===
28
29PHP allocate memory problem.
30This is solved by increasing PHP memory limit - you can use one of the following ways:
31	a) using php.ini
32		memory_limit = 1024M
33	b) inside php script
34		ini_set('memory_limit', '1024M');
35	c) using .htaccess file
36		php_value memory_limit "1024M"
37
38
39