I am trying to run to use the SolrClient PHP extension but I am unable to do so successfully. I did everything in this tutorial. But I keep getting the following error every time I try to create an object of the SolrClient class:
Fatal error: Class 'SolrClient' not found in /...
Server running:
Apache Solr:
solr-spec 5.3.1
solr-impl 5.3.1 1703449 - noble - 2015-09-17 01:48:15
lucene-spec 5.3.1
lucene-impl 5.3.1 1703449 - noble - 2015-09-17 01:38:09
JVM: Oracle Corporation OpenJDK 64-Bit Server VM (1.8.0_65 25.65-b01)
Installed required extensions:
Solved by going to the WHM cpanel >> Software >> Module Installers >> PHP Pecl Manager
Then I searched for Solr then clicked install.
You might need to install curl-devel, pcre-devel before you install Solr module like so:
yum install curl-devel
yum install pcre-devel
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.