2011-05-27 66 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的搜索