Install CoreSeek and PHP extension modules in Linux

Source: Internet
Author: User
The prerequisite is that the system has installed apachemysqlphp WEB service. I installed it with yum. If you have not installed CoreSeek, follow the link provided below to install the basic LAMP environment. install CoreSeek in Centos6.0 coreseek version: CoreSeek 3.2.14. click to download PHP: PECL/Sphinx extension: Click to download the sphinx-1.2.0.tgz. These software are all source code packages. we need to compile and install them.

The prerequisite is that the system has installed the WEB service of apache mysql php. I installed it with yum. If you have not installed the basic LAMP environment, follow the link below to complete the installation.

LAMP installation tutorial: http://www.bitsCN.com/article/31379.htm (before installation, you can first disable seltner and Iptables firewall specific operations can also be found in this blog .)

Step 1: Download the two source code packages mentioned above and upload them to the/lamp directory under Linux. if the directory does not exist, you can create it on your own.

Step 2: complete CorreSeek's installation of the basic development library of the operating system and the mysql dependent library to support mysql data sources and xml data sources,

Coreseek install software to be preinstalled: yum install make gcc g ++ gcc-c ++ libtool autoconf automake imake mysql-devel libxml2-devel expat-devel

You can use the rpm-q package name to check whether your system has installed the package. if you have installed the package, you do not need to install it. for example, we do not need to install mysql-devel, because we have installed the LAMP environment.

Step 3. install mmseg

$ Tar xzvf coreseek-3.2.14.tar.gz

$ Coreseek-3.2.14 cd

$ Mmseg-3.2.14 cd

$./Bootstrap # The output warning information can be ignored. If an error occurs, it must be resolved.

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

$ Make & make install

$ Cd ..

Step 4. install coreseek

$ Csft-3.2.14 cd

$ Sh buildconf. sh # The output warning information can be ignored. If an error occurs, it must be resolved.

$. /Configure -- prefix =/usr/local/coreseek -- without-unixodbc -- with-mmseg-separated des =/usr/local/mmseg3/include/mmseg/--- mmseg-libs =/usr/local/mmseg3/lib/-- with-mysql # if a mysql problem is prompted, you can view the MySQL data source installation instructions.

$ Make & make install

$ Cd ..

Now that the installation is complete, you can go to/usr/local/to check whether the mmseg3 and coreseek directories exist. If yes, the installation is correct.

Step 5. install PHP extension for sphinx-1.2.0.tgz

Before installing the extension, configure the configuration file of CoreSeek and start searchd in the/usr/local/coreseek/bin/directory. I will not talk about how to set this configuration, because I am also studying it. I will provide a large configuration file here. It is easy to install the PHP extension below. after installation, you can slowly study the function of CoreSeek.

Click Download Configuration file and put it under/usr/local/coreseek/etc.

Now go back to the/lamp/directory.

$ Tar xzvf sphinx-1.2.0.tgz

$ Cd sph0000- 1.2.0

$ Phpize # If you are prompted not to use this tool, you can use yum install php-devel to install the software.

$ 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 the extension loading module adds the following line of configuration, save it, and restart the apache service. you can use phpinfo () to check whether it has been installed.

Extension = sphworkflow. so

$: Wq

$ Service httpd restart

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.