Important: Sphinx is mainly used on UNIX based systems. We are providing instructions for Windows for development and testing purposes. We cannot guarantee that it will work in a live environment.
|1||Sphinx is available through its official Web site at http://sphinxsearch.com/|
|2||Download the sphinx package (minimum version is 2.1.1-beta), extract the content and follow the instructions in the doc/sphinx.txt|
Note the installation folder and replace below with it where it says <shpinx_root>. Do not add the trailing slash.
|3||Do not install the service yet!|
|4||If you installed the service, run the following commands from the Command line:|
net stop SphinxSearch
<shpinx_root>\bin\searchd --delete --servicename SphinxSearch
|5||Make sure the following directories are created in your sphinx install (<shpinx_root>): log & data. Using the command line:|
|1||Upload the contents of the upload folder to the vbulletin root directory.|
|2||At the end of your vBulletin core/includes/config.php file, add the following:|
/* * Sphinx configuration parameters */ $config['Misc']['sphinx_host'] = '127.0.0.1'; $config['Misc']['sphinx_port'] = '9306'; $config['Misc']['sphinx_path'] = '<shpinx_root>'; //no trailing slash $config['Misc']['sphinx_config'] = $config['Misc']['sphinx_path'] . '/etc/vbulletin_sphinx.conf';
|3||Upload vbulletin-sphinx.php to <shpinx_root>/etc/|
|4||Edit <shpinx_root>/etc/vbulletin-sphinx.php and update the path in the $myforumroot variable to your vbulletin root|
|5||Run the following command in a console (cmd) to generate a sphinx config file based on your board:|
php <shpinx_root>\etc\vbulletin-sphinx.php > <shpinx_root>\etc\vbulletin_sphinx.conf
|6||Install the service by running this in a command line as administrator:|
<shpinx_root>\bin\searchd --install --config <shpinx_root>etc\vbulletin_sphinx.conf --servicename SphinxSearch
|7||Start the service by running:|
net start SphinxSearch
|8||Go to your AdminCP->Options->Search Type. In the drop down, select Sphinx Search, then hit go.|
Note: Do not upload your vbulletin-sphinx.php to a web accessible URL. Doing so would give away your database details. If you follow these exact instructions, it will not be in a web accessible URL.
If you adjust any of your config.php credentials you will need to restart your Sphinx daemon.