Home > Media Temple > Installing Sphinx on Media Temple (dv)

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.

Media Temple

  1. May 12th, 2009 at 00:56 | #1

    Was this done on a grid server, I couldn’t get it to make.

  2. May 12th, 2009 at 01:24 | #2

    @Ammar
    No, it was done on a Dedicated Virtual (dv) Server.

  3. May 12th, 2009 at 12:23 | #3

    @Peter Schmalfeldt

    Ok I got it to install, but I just installed it in my .home directory. Is that the same place that you used? Does it matter where you install it? I’m guessing the daemon can be run from anywhere.

  1. No trackbacks yet.