How To Install php-pecl-solr on CentOS 7
Introduction
In this tutorial we learn how to install php-pecl-solr
on CentOS 7.
What is php-pecl-solr
Feature-rich library that allows PHP developers to communicate easily and efficiently with Apache Solr server instances using an object-oriented API. It effectively simplifies the process of interacting with Apache Solr using PHP5 and it already comes with built-in readiness for the latest features added in Solr 3.1. The extension has features such as built-in, serializable query string builder objects which effectively simplifies the manipulation of name-value pair request parameters across repeated requests. The response from the Solr server is also automatically parsed into native php objects whose properties can be accessed as array keys or object properties without any additional configuration on the client-side. Its advanced HTTP client reuses the same connection across multiple requests and provides built-in support for connecting to Solr servers secured behind HTTP Authentication or HTTP proxy servers. It is also able to connect to SSL-enabled containers. More info on PHP-Solr can be found at http Warning
We can use yum
or dnf
to install php-pecl-solr
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install php-pecl-solr.
Install php-pecl-solr on CentOS 7 Using yum
Update yum database with yum
using the following command.
After updating yum database, We can install php-pecl-solr
using yum
by running the following command:
Install php-pecl-solr on CentOS 7 Using dnf
If you don’t have dnf installed you can install DNF on CentOS 7 first.
Update yum database with dnf
using the following command.
After updating yum database, We can install php-pecl-solr
using dnf
by running the following command:
How To Uninstall php-pecl-solr on CentOS 7
To uninstall only the php-pecl-solr
package we can use the following command:
References
Summary
In this tutorial we learn how to install php-pecl-solr
on CentOS 7 using yum
and dnf
.