| | Version at: 03/05/2014, 08:30 vs. version at: 24/01/2015, 15:13 |
---|
1 | 1 | 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. |
---|
2 | 2 | |
---|
3 | 3 | ##Installing Sphinx on the VM |
---|
4 | 4 | |
---|
5 | 5 | * Download the latest version of Sphinx (starting out as the ordinary tatoeba user, not superuser): |
---|
6 | 6 | |
---|
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> |
---|
|
|
|
18 | 15 | |
---|
19 | 16 | * Now make the Sphinx directory and subdirectories: |
---|
| 17 | <pre> |
---|
| 18 | $ mkdir ~/sphinx |
---|
| 19 | $ cd ~/sphinx |
---|
| 20 | $ mkdir indices |
---|
| 21 | $ mkdir log |
---|
| 22 | </pre> |
---|
20 | 23 | |
---|
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> |
---|
|
|
|
|
|
|
|
|
31 | 26 | line 15 |
---|
32 | 27 | $sourcePath = "/home/tatoeba/sphinx/indices"; |
---|
33 | 28 | line 193-196: |
---|
34 | 29 | - sql_user = root |
---|
35 | 30 | - sql_pass = tatoeba |
---|
36 | 31 | - sql_db = tatoeba |
---|
37 | 32 | - sql_sock = /var/run/mysqld/mysqld.sock |
---|
38 | 33 | 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`. |
---|
40 | 35 | line 384, 385, 388: |
---|
41 | 36 | - log = /home/tatoeba/sphinx/log/searchd.log |
---|
42 | 37 | - query_log = /home/tatoeba/sphinx/log/query.log |
---|
43 | 38 | - pid_file = /home/tatoeba/sphinx/log/searchd.pid |
---|
| 39 | </pre> |
---|
44 | 40 | |
---|
45 | | * Generate the sphinx.conf file: |
---|
|
|
|
| 41 | * Generate the `sphinx.conf` file: |
---|
| 42 | <pre> |
---|
| 43 | $ php generate\_sphinx\_conf.php > sphinx.conf |
---|
| 44 | </pre> |
---|
46 | 45 | |
---|
47 | | php generate\_sphinx\_conf.php > sphinx.conf |
---|
| 46 | * As superuser, copy `sphinx.conf` to sphinxsearch, index, and run the service: |
---|
48 | 47 | |
---|
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> |
---|
|
|
|
|
60 | 55 | |
---|
61 | 56 | * If you want to stop the service, execute: |
---|
62 | 57 | |
---|
63 | | service sphinxsearch stop |
---|
|
|
| 58 | <pre> |
---|
| 59 | service 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.
Actions