Thinking Sphinx + Passenger on OS X 01 October 2010

I just looked at Apache’s error log on my Mac and noticed a lot of errors like this:

Sphinx cannot be found on your system. You may need to configure the following
settings in your config/sphinx.yml file:
  * bin_path
  * searchd_binary_name
  * indexer_binary_name
  For more information, read the documentation:`

After scratching my head for a while I discovered that the problem was down to Passenger needing to be told where to look for things. One way around this is to add 'bin_path' to sphinx.yml but, since I work with other developers, this wasn’t really an option. Instead I added SetEnv /usr/local/bin to my httpd.conf and now TS knows where to look for the Sphinx binaries.

comments powered by Disqus