web analytics

Multpile sphinx instances in a single server using wordpress sphinx plugin

Not satisfied with the server sphinx instance? Need sphinx on your own? Try this.

Install wordpress and get the sphinx plugin from http://wordpress.org/plugins/wordpress-sphinx-plugin/


Go to your wordpress admin panel -> Plugins -> Add new -> Upload
Upload the zip file of the plugin you just downloaded
Click Install
Activate

Once the plugin is activated, you need to install and start searchd through wordpress.


Go to Wp Admin Panel -> Settings -> Sphinx Search -> Start Wizard
Enter the following details:
Host name or IP address – localhost
Port – 9312 will be enabled by default. Please note, if you already have a serverwide sphinx running, this will conflict. If so, change port to anything else. I used 9315.
Index name – leave as default
Install or use existing binaries – Since you need a sphinx search of your own, do not use systemwide binaries. Select the option ‘install sphinx’
Notice the path where sphinx will be installed.

Save and continue

Now click on ‘Run indexing and continue’. Sometimes you will get an error as follows.


Indexer: reindexing error, try to run it manually.
Command: /home/abc/public_html/wordpressblog/wp-content/uploads/sphinx/bin/indexer –rotate –config /home/abc/public_html/wordpressblog/wp-content/uploads/sphinx/sphinx.conf wp_blogdelta wp_blogmain wp_blogstats

If you get an error as above, make sure ssh is available for the user ‘abc’. Login to shell and execute the command as above.

All done. Many a times I have noticed that indexing, starting and stopping searchd doesn’t work through admin panel. In that case just run that command in shell.

2 comments to Multpile sphinx instances in a single server using wordpress sphinx plugin

  • ubezpieczenia grupowe pracownicze  says:

    Very good website, you can find interesting information.

  • モンクレール  says:

    モンクレール

    I have read some excellent stuff here. Certainly worth bookmarking for revisiting. I wonder how so much attempt you put to make this kind of great informative website.

Leave a reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>