Installation of CoreSeek and PHP extension modules under Linux

  • 2020-05-26 07:56:08
  • OfStack

The CoreSeek system I installed is Centos6.0 CoreSeek version: coreseek 3.2.14: click to download PHP: PECL/Sphinx extension: sphinx-1.2.0.tgz click to download. These software are source packages, we are to be compiled to install.

The prerequisite is that the system has been installed with the WEB service apache mysql php. I installed it as yum. If you haven't already, follow the links below to complete the basic installation of the LAMP environment.

LAMP installation tutorial: https: / / www ofstack. com article / 31379. htm (prior to installation you can turn off Selinx Iptables firewall and specific operation can also be found in this blog.)

Step 1: download the two source packages mentioned above and upload them to the /lamp directory under Linux. If the directory does not exist, you can create it yourself.

Step 2. To complete step 1, CorreSeek installs the OS base development library and mysql dependency library to support mysql data sources and xml data sources.

coreseek installation requires pre-installed software: yum install make g++ gcc-c ++ libtool autoconf automake imake libxml2-devel expat-devel

You can use the rpm-q package name to see if your system has any packages installed. If it has, you don't need to install it. For example, we don't need to install mysql-devel, because we already installed it when we installed LAMP.

Step 3: install mmseg

$ tar xzvf coreseek-3.2.14.tar.gz

$ cd coreseek-3.2.14

$ cd mmseg-3.2.14

$./bootstrap # output warning information can be ignored, if error appears, it needs to be resolved

$ ./configure --prefix=/usr/local/mmseg3

$ make & & make install

$ cd ..

Step 4: install coreseek

$ cd csft-3.2.14

$sh buildconf.sh # output warning information can be ignored, error needs to be resolved if it appears

$. / configure - prefix = / usr/local/coreseek - without - unixodbc - with - mmseg - with - mmseg - includes = / usr/local/mmseg3 / include/mmseg / - with - mmseg - libs = / usr local/mmseg3 / lib / - with - mysql # # if prompt mysql problem, can check MySQL data source installation instructions

$ make & & make install

$ cd ..

Now that the installation is complete, you can go to /usr/local/ to see if there are directories mmseg3 and coreseek.

Step 5: install the sphinx-1.2.0.tgz PHP extension

Before installation, I need to configure CoreSeek under 1 configuration file and the location of the start searchd service searchd in/usr/local/coreseek bin/directory. I won't tell you how to set this configuration, because I'm still working on it. I will provide my configuration file to big here. It is convenient to install the PHP extension below. After the installation, you can slowly study the functions of CoreSeek.

Click to download the configuration file and put/usr/local/coreseek etc /.

Now go back to /lamp/.

$ tar xzvf sphinx-1.2.0.tgz

$ cd sphinx-1.2.0

$phpize # here if you don't have the tool, you can install it using yum install php-devel.

$ cd ../coreseek-3.2.14/csft-3.2.14/api/libsphinxclient/

$ ./configure

$ make & & make install

$ cd-

$./configurl --with-php-config=/usr/bin/php-config --with-sphinx

$ make & & make install

$ vi /etc/php.ini

Find the place where extension loads the module, add the following 1 line of configuration save, exit and restart the apache service to see if phpinfo() has been installed.

extension=sphinx.so

$ :wq

$ service httpd restart


Related articles: