How To Install php-pecl-solr2 on CentOS 7
Introduction
In this tutorial we learn how to install php-pecl-solr2
on CentOS 7.
What is php-pecl-solr2
It effectively simplifies the process of interacting with Apache Solr using PHP5 and it already comes with built-in readiness for the latest features. 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. Please consult the documentation for more details on features. http Warning PECL Solr 1 is available in php-pecl-solr package.
We can use yum
or dnf
to install php-pecl-solr2
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install php-pecl-solr2.
Install php-pecl-solr2 on CentOS 7 Using yum
Update yum database with yum
using the following command.
After updating yum database, We can install php-pecl-solr2
using yum
by running the following command:
Install php-pecl-solr2 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-solr2
using dnf
by running the following command:
How To Uninstall php-pecl-solr2 on CentOS 7
To uninstall only the php-pecl-solr2
package we can use the following command:
References
Summary
In this tutorial we learn how to install php-pecl-solr2
on CentOS 7 using yum
and dnf
.