douxuelv7755 2016-03-17 21:53
浏览 150
已采纳

php 5.5.33上的pecl_http 2.5.3无法加载动态库http.so undefined symbol:php_resource_factory_handle_ctor

I am trying to use pecl_http 2.5.3 on my CentOS server, I have already installed it but when I do.

$request = new http\Client\Request("GET",
$endpoint,
[ "Api-Key"     => $apiKey,
  "X-Signature" => $signature,
  "Accept"      => "application/xml" ]);

I get the following error: Unable to load dynamic library '/opt/plesk/php/5.5/lib64/php/modules/http.so' - /opt/plesk/php/5.5/lib64/php/modules/http.so: undefined symbol: php_resource_factory_handle_ctor in /var/www/vhosts/bojorquez.viajes/httpdocs/desarrollo/panel/model/beds.php on line 5.

After installing it, I ran the following commands, to assign the location of the php.ini in which I have this:

pecl config-set php_ini /opt/plesk/php/5.5/etc/php.ini
pear config-set php_ini /opt/plesk/php/5.5/etc/php.ini

My php.ini is as follows:

   extension=/usr/lib64/php/modules/raphf.so
   extension=/usr/lib64/php/modules/propro.so
   extension=/usr/lib64/php/modules/http.so

In that order, I think that the "php_resource_factory_handle_ctor" comes from raph extension, but I have already included it and I don't know what's wrong, any idea what's going wrong?

  • 写回答

1条回答 默认 最新

  • drh19790711 2016-03-18 22:56
    关注

    Got it to work, since I have a server which has different domains along with different versions of PHP, the one that I installed compiled with the server php version, which is 5.4.16, so I changed my vhost domain to that version, and just included the same extension route. That worked for me, I don't know though if I could install pecl on a certain version that had the server.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 做个有关计算的小程序
  • ¥15 MPI读取tif文件无法正常给各进程分配路径
  • ¥15 如何用MATLAB实现以下三个公式(有相互嵌套)
  • ¥30 关于#算法#的问题:运用EViews第九版本进行一系列计量经济学的时间数列数据回归分析预测问题 求各位帮我解答一下
  • ¥15 setInterval 页面闪烁,怎么解决
  • ¥15 如何让企业微信机器人实现消息汇总整合
  • ¥50 关于#ui#的问题:做yolov8的ui界面出现的问题
  • ¥15 如何用Python爬取各高校教师公开的教育和工作经历
  • ¥15 TLE9879QXA40 电机驱动
  • ¥20 对于工程问题的非线性数学模型进行线性化