dongshi7350 2018-01-29 18:56
浏览 159

CENTOS 6.9 php soap扩展已安装但无法正常工作

I have VPS server on OVH with: CENTOS 6.9 kvm v68.0.27, WHM and cPanel

When I use SoapClient get error:

Uncaught Error: Class 'SoapClient' not found in /home/kowal/public_html/[...]

I successfully installed soap php extension as root

yum install php-soap

Then go to WHM -> MultiPHP INI Editor and found statement

;;;;
; Note: packaged extension modules are now loaded via the .ini files
; found in the directory /etc/php.d; these are loaded by default.
;;;;

I look into /etc/php.d and in this direcotory is soap.ini and there are files:

curl.ini      fileinfo.ini  json.ini      phar.ini      soap.ini      zip.ini

soap.ini contain extension=soap.so

when I run

php -m | grep -i soap

It return nothing.

My PHP script still return error "Class 'SoapClient' not found"

I did restart apache service even restart server.

--- EDIT ---

I have multiphp on my server, and I think that's why yum install php-soap doesn't make any change.

I found that there is ea-php70-php-soap.x86_64 packake available for install and run

yum install ea-php70-php-soap.x86_64

but it gives me error:

Protected multilib versions: ea-php70-php-common-7.0.27-1.1.3.cpanel.i686 != ea-php70-php-common-7.0.27-5.5.5.cpanel.x86_64

I try same with "yum install ea-php70-php-soap.i686" with same result

and I really don't know how to fix it.

  • 写回答

1条回答 默认 最新

  • douguanyan9928 2018-01-29 19:02
    关注

    Is /etc the folder that /home/kowal uses for its php.ini? If you have a newer webmin then the etc/php.ini your site uses may be in the /home/kowal directory.

    评论

报告相同问题?

悬赏问题

  • ¥15 yolov8边框坐标
  • ¥15 matlab中使用gurobi时报错
  • ¥15 WPF 大屏看板表格背景图片设置
  • ¥15 这个主板怎么能扩出一两个sata口
  • ¥15 不是,这到底错哪儿了😭
  • ¥15 2020长安杯与连接网探
  • ¥15 关于#matlab#的问题:在模糊控制器中选出线路信息,在simulink中根据线路信息生成速度时间目标曲线(初速度为20m/s,15秒后减为0的速度时间图像)我想问线路信息是什么
  • ¥15 banner广告展示设置多少时间不怎么会消耗用户价值
  • ¥16 mybatis的代理对象无法通过@Autowired装填
  • ¥15 可见光定位matlab仿真