php SOLR扩展未加载到wamp中

时间:2011-05-27 21:39:36

标签: php solr

我正在尝试在PHP上配置SOLR并在php.ini中使用WAMP.Added扩展名也粘贴了 php_solr.dll在扩展目录中。

不幸的是,扩展程序详细信息没有出现在我的php信息中。

我很困惑,可能是我缺少任何配置步骤/

提前致谢。

3 个答案:

答案 0 :(得分:1)

如果您使用的是Linux,请转到/etc/php5/apache2/conf.d/。如果找到另一个.ini然后创建一个solr.ini文件,请添加以下行并重新启动Apache服务。

extension=solr.so

See my blog post for more information. 如果您需要更多帮助,请告诉我。

答案 1 :(得分:0)

我无法使用该插件并最终从http://code.google.com/p/solr-php-client/

获取solr-php-client

它可以完成您需要的所有操作,您可以将它包含在脚本中,并且知道您可以在标准的PHP安装上进行部署。

答案 2 :(得分:0)

在带有Wamp的Windows上安装Solr

Solr是一个很棒的全文搜索工具,来自Apache Software Foundation。它基于Apache Lucene搜索库并对其进行扩展。在这篇文章中,我将告诉您如何在Windows上安装Solr并将其与WAMP集成。如果您不使用WAMP,则不必与WAMP集成。

在Windows上安装solr的最简单方法是使用BitNami的Solr安装程序。这可以在http://bitnami.com/stack/solr找到。下载安装程序并使用管理权限运行它。尝试保持安装路径简单,例如“c:/ solr /”是合适的。

它还将安装一个apache服务器,所以如果你没有已经安装的wamp或apache超级简单,只需顺其自然。如果你已经安装了wamp而不是让这个apache监听80以外的一些可用端口(wamp apache正在监听)。

一旦设置完成,Solr将可用于在设置期间选择的端口(请参阅没什么大不了的)。现在,如果你有wamp并且你不希望运行两个apache服务,请执行以下步骤。

Enable proxy_module and proxy_http_module via wamp menu or directly from apache conf file.
Open httpd.conf file and add following line at the end of the file

Include "c:/solr/apache-solr/conf/solr.conf"

Note that the path here should be correctly pointing to the solr.conf file. Use the path where you installed the Solr.
Now restart the wamp apache via wamp menu. If it starts correctly than its cool, otherwise check if you have correctly enabled the said modules, and path to solr config file.
Now check http://localhost/solr/ this should show the dashboard for solr.
Remember the extra apache service we need to disable it so it does not start automatically as we don’t need it. So goto Control Panel > Administrative Tools > Services , double click “solrApache” service and change its “Startup Type” to “Manual”. Now it will not start once your system is restated.

快乐搜索