简体   繁体   English

我无法将solr_php扩展名添加到php中

[英]I can't add solr_php extension to php

Can you help me? 你能帮助我吗? I can't add solr_php extension to php, I use WAMPSERVER with php 7.2.4 and solr.7.5.0. 我无法将solr_php扩展名添加到php中,我将WAMPSERVER与php 7.2.4和solr.7.5.0一起使用。 when I run my file the error below shows up: 当我运行文件时,出现以下错误:

Class 'SolrClient' not found in C:\\wamp64\\www\\SolrPhp\\facet_001.php. 在C:\\ wamp64 \\ www \\ SolrPhp \\ facet_001.php中找不到类“ SolrClient”。

Make sure you fulfill the system requirements for the extension, have downloaded the Apache Solr extension and put it in the extensions directory. 确保满足扩展的系统要求 ,已下载Apache Solr扩展并将其放在extensions目录中。 Then you must add this line in the global php.ini file: 然后,您必须在全局php.ini文件中添加以下行:

; In your php.ini file
extension=solr

Restart your server and you're done! 重新启动服务器,您就完成了!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM