Install Sphinx 2.0.2 with Postgresql support on Redhat 5.6 Cloud Server

Summary: In this article i will explain how to install sphinx 2.0.2 the updated version on Redhat 5.6 cloud server with postgresql support. As i have already explain in previous articles about command and configurations file. So in this article i will list the steps how to install step by step.

Step-1:

cat /etc/redhat-release

Red Hat Enterprise Linux Server release 5.6 (Tikanga)

Step-2:

psql –version

psql (PostgreSQL) 8.4.7

Step-3:

whereis pg_config

pg_config

Step-4:

yum install postgresql84-devel

Installed Successfully.
Again check

whereis pg_config
pg_config: /usr/bin/pg_config /usr/include/pg_config.h /usr/share/man/man1/pg_config.1.gz

Step-5:

cd /usr/local/
wget http://http://sphinxsearch.com/downloads/accept.php?file=sphinx-2.0.2-beta.tar.gz

Step-6:

tar -zxvf sphinx-2.tar.gz

Step-7:

cd sphinx-2

Step-8:

mkdir /usr/local/sphinx

Step-9:

./configure –without-mysql –with-pgsql /usr/bin/pg_config –prefix=/usr/local/sphinx

Step-10:

make

Step-11:

make install

Step-12:

cd /usr/local/sphinx/etc
cp sphinx-min.conf sphinx.conf

Step-13: Do the required changes in sphinx.conf

Postgresqldatabase pgsql
database user
database name
database password
port: 5432
14:run the sphinx searchd
/usr/local/etc/bin/indexer –all
searchd start

That’s All how to configure Sphinx 2.0.2 with Postgresql support

Leave a Reply

Your email address will not be published. Required fields are marked *