[英]how to instal php-solr-client on aws beanstalk with pecl
i have installed a beanstalk server on amazon aws. 我已经在Amazon AWS上安装了beantalk服务器。 i also have a different instance running SOLR server. 我也有运行SOLR服务器的其他实例。
in my php scripts i use this module: http://php.net/manual/en/solrclient.adddocument.php to query the SOLR database. 在我的php脚本中,我使用以下模块: http : //php.net/manual/en/solrclient.adddocument.php查询SOLR数据库。
to install it on beanstalk, i login into its ec2 instance, (ec2-user). 要将其安装在beantalk上,我登录到其ec2实例((ec2-user))。 this module uses pecl 该模块使用pecl
in the ec2 shell: 在ec2 shell中:
sudo pecl install -n solr
once done, pecl will add extension = solr.so
to php.ini 完成后,pecl将在php.ini中添加extension = solr.so
from this point, when i run php scripts i recive: 从这一点来看,当我运行php脚本时,我会收到以下内容:
PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/solr.so' - /usr/lib/php/modules/solr.so: undefined symbol: curl_easy_getinfo in Unknown on line 0
i found a very few other posts about this issue, but most gave up or gave incomplete/unclear solutions. 我发现了很少其他有关此问题的帖子,但大多数都放弃或给出了不完整/不清楚的解决方案。
how to install solr php client on aws beanstalk - (this php client - http://php.net/manual/en/solrclient.construct.php ) 如何在AWS豆茎安装Solr的PHP客户端- (这个PHP客户端- http://php.net/manual/en/solrclient.construct.php )
Yaron's reply Didnt work for me. Yaron的回复Didnt为我工作。
However the below did. 但是下面做了。
i simply added 我只是添加
extension=curl.so
extension=json.so
extension=solr.so
at the end of php.ini and it worked without any issues. 在php.ini的末尾,它可以正常工作。
Note: i am using php 5.5.12 注意:我使用的是PHP 5.5.12
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.