繁体   English   中英

php SOLR 扩展未在 wamp 中加载

[英]php SOLR extension is not loaded in wamp

I am trying to configure SOLR on PHP and using WAMP.Added extension in php.ini also pasted the php_solr.dll in the extension directory.

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

我只是很困惑,可能是我错过了任何配置步骤/

提前致谢。

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

extension=solr.so

有关更多信息,请参阅我的博客文章。 如果您需要更多帮助,请告诉我。

使用 Wamp 在 Windows 上安装 Solr

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

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

它还将安装一个 apache 服务器,所以如果你没有 wamp 或 apache 已经安装,比它超级容易,只需 go 即可。 如果您已经安装了 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.

快乐 solr 搜索

我无法使该插件正常工作,最终从http://code.google.com/p/solr-php-client/使用 solr-php-client

它可以完成您需要做的所有事情,您可以将其包含在您的脚本中,并且知道您可以将它们部署在标准的 PHP 安装上。

暂无
暂无

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

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