2011-05-27 67 views
3

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

不幸的是扩展的细节没有出现在我的PHP信息。

我只是困惑,可能是我失踪的任何配置步骤/

在此先感谢。

+0

你重新启动服务器? – RobertPitt 2011-05-27 21:42:11

+0

是的,我已经重新启动了所有的服务 – mushfiq 2011-05-28 09:03:48

+0

一些信息出错会有所帮助。 error.log(或access.log)中是否有任何信息? – 2011-05-28 22:49:35

回答

0

我无法得到该插件工作,并最终从http://code.google.com/p/solr-php-client/

去为Solr的-PHP客户端它,你需要它的一切,你可以include_once它变成你的脚本,知道你可以部署他们在一个标准的PHP安装。

1

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

extension=solr.so 

See my blog post for more information. 让我知道如果你需要更多的帮助。

0

与WAMP

Solr的在Windows上安装Solr的是全文搜索和更伟大的工具,从Apache软件基金会。它基于Apache Lucene搜索库并对其进行扩展。在这篇文章中,我会告诉你如何在Windows上安装Solr并将其与WAMP集成。如果您不使用WAMP,则不需要与WAMP集成。

在Windows上安装solr的esyest方法是使用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. 

快乐Solr的搜索