1. MagicESP
  2. Ubuntu Server 22.04
  3. Install Sphinx on Ubuntu 16.04

Install Sphinx on Ubuntu 16.04

OUTDATED!

apt-get install libpq-dev g++

Install Sphinx

cd /usr/local/src/
wget http://www.sphinxsearch.com/downloads/sphinx-1.10-beta.tar.gz && tar zxvf sphinx-1.10-beta.tar.gz && cd sphinx-1.10-beta

./configure --with-pgsql --without-mysql

make && make install

Config Sphinx

cd /usr/local/etc
cp sphinx.conf.dist sphinx.conf
vim sphinx.conf
mkdir /var/lib/sphinx
mkdir /var/log/sphinx
indexer --all --rotate
/usr/local/bin/searchd
/usr/local/bin/searchd --stopwait

echo "0-55/5 *        * * *   root    /usr/local/bin/searchd --status > /var/www/searchd.txt;" > /etc/cron.d/searchd