Installing the PHP-SOLR Extension

Source: Internet
Author: User
Installing the PHP-SOLR extension

Download the installation:

LIBXML2 2.6.31 or later

Libcurl 7.18.0 or later

Download SOLR:HTTP://PECL.PHP.NET/PACKAGE/SOLR on the PHP website

And then:

/usr/local/php5/bin/phpize./configure--with-php-config=/usr/local/php5/bin/php-config sudo make sudo make test sudo Make install

After installation, there will be a hint like this:

Installing Shared extensions:/usr/local/lib/php/extensions/no-debug-non-zts-20090626/


Keep this in mind and then modify PHP.ini (Vim/usr/local/etc/php.ini) to put

Extension_dir = "./"

Revision changed to

Extension_dir = "/usr/local/php/lib/php/extensions/no-debug-non-zts-20090626/"

and add a row

Extension=solr.so

Note:/usr/local/php5/bin/phpize may change depending on the location of the PHP installation.

Related articles:

PHP's SOLR operation class and demo

Search Scenario solr+php How do I install the configuration?

Integrated PHP application and SOLR search engine

  • 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.