| | Version at: 16/03/2014, 19:09 vs. version at: 16/03/2014, 19:12 |
---|
1 | 1 | 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. |
---|
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 | 7 | mkdir ~/downloads |
---|
8 | 8 | |
---|
9 | 9 | cd ~/downloads/ |
---|
10 | 10 | |
---|
11 | 11 | wget http://sphinxsearch.com/files/sphinxsearch\_2.1.5-release-1~wheezy\_i386.deb |
---|
12 | 12 | |
---|
13 | 13 | su - |
---|
14 | 14 | |
---|
15 | 15 | dpkg -i sphinxsearch_2.1.5-release-1~wheezy_i386.deb |
---|
16 | 16 | |
---|
17 | 17 | exit |
---|
18 | 18 | |
---|
19 | 19 | * Now make the Sphinx directory and subdirectories: |
---|
20 | 20 | |
---|
21 | 21 | mkdir ~/sphinx |
---|
22 | 22 | |
---|
23 | 23 | cd ~/sphinx |
---|
24 | 24 | |
---|
25 | 25 | mkdir indices |
---|
26 | 26 | |
---|
27 | 27 | mkdir log |
---|
28 | 28 | |
---|
29 | 29 | * Edit docs/generate_sphinx_conf.php as follows: |
---|
30 | 30 | |
---|
31 | 31 | line 15 |
---|
32 | | $sourcePath = "/home/tatoeba/sphinx/indices" |
---|
| 32 | $sourcePath = "/home/tatoeba/sphinx/indices"; |
---|
33 | 33 | line 193-196: |
---|
34 | 34 | - sql\_user = root |
---|
35 | 35 | - sql\_pass = tatoeba |
---|
36 | 36 | - sql\_db = tatoeba |
---|
37 | 37 | - sql\_sock = /var/run/mysqld/mysqld.sock |
---|
38 | 38 | line 383: |
---|
39 | 39 | - change "port" to "listen" because the latest sphinx version uses "listen" instead of "port". |
---|
40 | 40 | line 384, 385, 388: |
---|
41 | 41 | - log = /home/tatoeba/sphinx/log/searchd.log |
---|
42 | 42 | - query\_log = /home/tatoeba/sphinx/log/query.log |
---|
43 | 43 | - pid\_file = /home/tatoeba/sphinx/log/searchd.pid |
---|
44 | 44 | |
---|
| 45 | * Generate the sphinx.conf file: |
---|
| 46 | |
---|
| 47 | php generate\_sphinx\_conf.php > sphinx.conf |
---|
| 48 | |
---|
| 49 | * As superuser, copy it 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 |
---|
| 60 | |
---|
| 61 | * If you want to stop the service, execute: |
---|
| 62 | |
---|
| 63 | searchd --stop |
---|
diff view generated by jsdifflib |
---|
Version at: 16/03/2014, 19:09
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
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
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