Installing Sphinx on Media Temple (dv)
April 17th, 2009
This is pretty straight forward.
Just download the file from here: http://www.sphinxsearch.com/downloads.html
1) Install it:
wget http://www.sphinxsearch.com/downloads/sphinx-0.9.8.1.tar.gz tar -xf sphinx-0.9.8.1.tar.gz cd sphinx-0.9.8.1 ./configure make make install
2) Setup the config file
touch /usr/local/etc/sphinx.conf nano /usr/local/etc/sphinx.conf
And paste in your own modified version of the sample sphinx.conf file in this zip file
3) Index the new config file
indexer --all
4) Start the daemon:
searchd
5) Make it start on boot
nano /etc/rc.local
and add the following lines
## Start Sphinx /usr/local/bin/searchd
Now you can access it via PHP with the sphinx PHP library, or you can use our modified library (with sample usage) in this zip file.