I have successfully compiled Solr PHP extension It took me a whole day :S. I have compiled the code and also copied the solr.so extension file to /opt/lampp/lib/php/extensions
. I also edited my php.ini
file and created a new file called solr.ini
in /etc/php.d
folder. I basically followed most of the steps according to this link http://www.gosquared.com/liquidicity/archives/836.
我已经成功编译了Solr PHP扩展它花了我一整天:S。我编译了代码并将solr.so扩展文件复制到/ opt / lampp / lib / php / extensions。我还编辑了我的php.ini文件,并在/etc/php.d文件夹中创建了一个名为solr.ini的新文件。我基本上按照这个链接http://www.gosquared.com/liquidicity/archives/836跟踪了大部分步骤。
Now I check ed with $ php -m
to see if Solr PHP extensions was succesfully installed. It appeared so. And then I tried to use its functions. None of them works. What have I missed?
现在我用$ php -m检查ed,看看是否成功安装了Solr PHP扩展。它看起来如此。然后我尝试使用它的功能。它们都不起作用。我错过了什么?
Please help me! This have been really baking my nuts!
请帮我!这真的是我的坚果!
EDIT:
I have also restarted my lampp server, so that is not the case
我也重新启动了我的lampp服务器,所以情况并非如此
1 个解决方案
#1
0
The CLI PHP executable, i.e., the one you're running with php -m
is using a different php.ini file than the web server.
CLI PHP可执行文件,即您使用php -m运行的文件正在使用与Web服务器不同的php.ini文件。
You can check which files are being loaded by the cli with php --ini
; for the web server, create a script with the content <?php phpinfo();
and check the configuration section.
您可以使用php --ini检查cli正在加载哪些文件;对于Web服务器,使用内容
#1
0
The CLI PHP executable, i.e., the one you're running with php -m
is using a different php.ini file than the web server.
CLI PHP可执行文件,即您使用php -m运行的文件正在使用与Web服务器不同的php.ini文件。
You can check which files are being loaded by the cli with php --ini
; for the web server, create a script with the content <?php phpinfo();
and check the configuration section.
您可以使用php --ini检查cli正在加载哪些文件;对于Web服务器,使用内容