Version at: 03/05/2014, 08:30 vs. version at: 24/01/2015, 15:13
11Execute these instructions after you have followed the other instructions for [setting up a development virtual machine](install-tatoeba-on-vm). 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
7 mkdir ~/downloads
8
9 cd ~/downloads/
10
11 wget http://sphinxsearch.com/files/sphinxsearch\_2.1.5-release-1~wheezy\_i386.deb
12
13 su -
14
15 dpkg -i sphinxsearch_2.1.5-release-1~wheezy_i386.deb
16
17 exit
7<pre>
8$ mkdir ~/downloads
9$ cd ~/downloads/
10$ wget http://sphinxsearch.com/files/sphinxsearch\_2.1.5-release-1~wheezy\_i386.deb
11$ su -
12$ dpkg -i sphinxsearch_2.1.5-release-1~wheezy_i386.deb
13$ exit
14</pre>
1815
1916* Now make the Sphinx directory and subdirectories:
17<pre>
18$ mkdir ~/sphinx
19$ cd ~/sphinx
20$ mkdir indices
21$ mkdir log
22</pre>
2023
21 mkdir ~/sphinx
22
23 cd ~/sphinx
24
25 mkdir indices
26
27 mkdir log
28
29* Edit docs/generate_sphinx_conf.php as follows:
30
24* Edit `docs/generate_sphinx_conf.php` as follows:
25<pre>
3126 line 15
3227 $sourcePath = "/home/tatoeba/sphinx/indices";
3328 line 193-196:
3429 - sql_user = root
3530 - sql_pass = tatoeba
3631 - sql_db = tatoeba
3732 - sql_sock = /var/run/mysqld/mysqld.sock
3833 line 383:
39 - change "port" to "listen" because the latest sphinx version uses "listen" instead of "port".
34 - change `port` to `listen` because the latest sphinx version uses `listen` instead of `port`.
4035 line 384, 385, 388:
4136 - log = /home/tatoeba/sphinx/log/searchd.log
4237 - query_log = /home/tatoeba/sphinx/log/query.log
4338 - pid_file = /home/tatoeba/sphinx/log/searchd.pid
39</pre>
4440
45* Generate the sphinx.conf file:
41* Generate the `sphinx.conf` file:
42<pre>
43$ php generate\_sphinx\_conf.php > sphinx.conf
44</pre>
4645
47 php generate\_sphinx\_conf.php > sphinx.conf
46* As superuser, copy `sphinx.conf` to sphinxsearch, index, and run the service:
4847
49* As superuser, copy sphinx.conf to sphinxsearch, index, and run the service:
50
51 su
52
53 cp sphinx.conf /etc/sphinxsearch/
54
55 indexer --all
56
57 searchd
58
59 exit
48<pre>
49$ su
50$ cp sphinx.conf /etc/sphinxsearch/
51$ indexer --all
52$ searchd
53$ exit
54</pre>
6055
6156* If you want to stop the service, execute:
6257
63 service sphinxsearch stop
58<pre>
59service sphinxsearch stop
60</pre>
diff view generated by jsdifflib

Version at: 03/05/2014, 08:30

Execute these instructions after you have followed the other instructions for [setting up a development virtual machine](install-tatoeba-on-vm). 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

version at: 24/01/2015, 15:13

Execute these instructions after you have followed the other instructions for [setting up a development virtual machine](install-tatoeba-on-vm). 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):

<pre>
$ 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 
</pre>

* Now make the Sphinx directory and subdirectories:
<pre>
$ mkdir ~/sphinx
$ cd ~/sphinx
$ mkdir indices
$ mkdir log
</pre>

* Edit `docs/generate_sphinx_conf.php` as follows:
<pre>
    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
</pre>

* Generate the `sphinx.conf` file:
<pre>
$ php generate\_sphinx\_conf.php > sphinx.conf
</pre>

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

<pre>
$ su 
$ cp sphinx.conf /etc/sphinxsearch/
$ indexer --all
$ searchd
$ exit
</pre>

* If you want to stop the service, execute:

<pre>
service sphinxsearch stop
</pre>

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.