Version at: 16/03/2014, 19:12 vs. version at: 16/03/2014, 19:20
11Execute 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.
22
33##Installing Sphinx on the VM
44
55* Download the latest version of Sphinx (starting out as the ordinary tatoeba user, not superuser):
66
77 mkdir ~/downloads
88
99 cd ~/downloads/
1010
1111 wget http://sphinxsearch.com/files/sphinxsearch\_2.1.5-release-1~wheezy\_i386.deb
1212
1313 su -
1414
1515 dpkg -i sphinxsearch_2.1.5-release-1~wheezy_i386.deb
1616
1717 exit
1818
1919* Now make the Sphinx directory and subdirectories:
2020
2121 mkdir ~/sphinx
2222
2323 cd ~/sphinx
2424
2525 mkdir indices
2626
2727 mkdir log
2828
2929* Edit docs/generate_sphinx_conf.php as follows:
3030
3131 line 15
3232 $sourcePath = "/home/tatoeba/sphinx/indices";
3333 line 193-196:
3434 - sql\_user = root
3535 - sql\_pass = tatoeba
3636 - sql\_db = tatoeba
3737 - sql\_sock = /var/run/mysqld/mysqld.sock
3838 line 383:
3939 - change "port" to "listen" because the latest sphinx version uses "listen" instead of "port".
4040 line 384, 385, 388:
4141 - log = /home/tatoeba/sphinx/log/searchd.log
4242 - query\_log = /home/tatoeba/sphinx/log/query.log
4343 - pid\_file = /home/tatoeba/sphinx/log/searchd.pid
4444
4545* Generate the sphinx.conf file:
4646
4747 php generate\_sphinx\_conf.php > sphinx.conf
4848
4949* As superuser, copy it to sphinxsearch, index, and run the service:
5050
5151 su
5252
5353 cp sphinx.conf /etc/sphinxsearch/
5454
5555 indexer --all
5656
5757 searchd
5858
5959 exit
6060
6161* If you want to stop the service, execute:
6262
6363 searchd --stop
diff view generated by jsdifflib

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

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:

    searchd --stop

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

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:

    searchd --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.