Version at: 16/03/2014, 19:22

Execute these instructions after you have followed the other instructions for setting up a development virtual machine. It is assumed that you have already installed libpq5.

##Installing Sphinx on the VM

* Download the latest version of Sphinx (starting out as the ordinary tatoeba user, not superuser):

    mkdir ~/downloads

    cd ~/downloads/

    wget http://sphinxsearch.com/files/sphinxsearch\_2.1.5-release-1~wheezy\_i386.deb

    su -

    dpkg -i sphinxsearch_2.1.5-release-1~wheezy_i386.deb

    exit 

* Now make the Sphinx directory and subdirectories:

    mkdir ~/sphinx

    cd ~/sphinx

    mkdir indices

    mkdir log

* Edit docs/generate_sphinx_conf.php as follows:

    line 15
        $sourcePath = "/home/tatoeba/sphinx/indices";
    line 193-196:
        - sql\_user = root
        - sql\_pass = tatoeba
        - sql\_db = tatoeba
        - sql\_sock = /var/run/mysqld/mysqld.sock
    line 383:
        - change "port" to "listen" because the latest sphinx version uses "listen" instead of "port".
    line 384, 385, 388:
        - log = /home/tatoeba/sphinx/log/searchd.log
        - query\_log = /home/tatoeba/sphinx/log/query.log
        - pid\_file = /home/tatoeba/sphinx/log/searchd.pid

* Generate the sphinx.conf file:

    php generate\_sphinx\_conf.php > sphinx.conf

* As superuser, copy it to sphinxsearch, index, and run the service:

    su
 
    cp sphinx.conf /etc/sphinxsearch/

    indexer --all

    searchd

    exit

* If you want to stop the service, execute:

    service sphinxsearch stop

version at: 16/03/2014, 19:23

Execute these instructions after you have followed the other instructions for setting up a development virtual machine. It is assumed that you have already installed libpq5.

##Installing Sphinx on the VM

* Download the latest version of Sphinx (starting out as the ordinary tatoeba user, not superuser):

    mkdir ~/downloads

    cd ~/downloads/

    wget http://sphinxsearch.com/files/sphinxsearch\_2.1.5-release-1~wheezy\_i386.deb

    su -

    dpkg -i sphinxsearch_2.1.5-release-1~wheezy_i386.deb

    exit 

* Now make the Sphinx directory and subdirectories:

    mkdir ~/sphinx

    cd ~/sphinx

    mkdir indices

    mkdir log

* Edit docs/generate_sphinx_conf.php as follows:

    line 15
        $sourcePath = "/home/tatoeba/sphinx/indices";
    line 193-196:
        - sql\_user = root
        - sql\_pass = tatoeba
        - sql\_db = tatoeba
        - sql\_sock = /var/run/mysqld/mysqld.sock
    line 383:
        - change "port" to "listen" because the latest sphinx version uses "listen" instead of "port".
    line 384, 385, 388:
        - log = /home/tatoeba/sphinx/log/searchd.log
        - query\_log = /home/tatoeba/sphinx/log/query.log
        - pid\_file = /home/tatoeba/sphinx/log/searchd.pid

* Generate the sphinx.conf file:

    php generate\_sphinx\_conf.php > sphinx.conf

* As superuser, copy sphinx.conf to sphinxsearch, index, and run the service:

    su
 
    cp sphinx.conf /etc/sphinxsearch/

    indexer --all

    searchd

    exit

* If you want to stop the service, execute:

    service sphinxsearch stop

Note

The lines in green are the lines that have been added in the new version. The lines in red are those that have been removed.