icingaweb2-module-vsphere icon indicating copy to clipboard operation
icingaweb2-module-vsphere copied to clipboard

The PHP SOAP extension (php-soap) is not installed/enabled

Open tomaszszkudlarek opened this issue 7 years ago • 9 comments

vSphere Module version 1.1.0 Director Version - latest CentOS 7, php 5.4.16, Soap Module installed (visible in all info commands, and tested via simple script which executes exactly the same condition - if class_exists ('SoapClient') - which is returning true) No errors in httpd log. Error comes when i try to add new import source. Honestly i have no idea how to investigate this further.

tomaszszkudlarek avatar Sep 13 '18 13:09 tomaszszkudlarek

httpd as well as the whole server was restarted just to be sure

tomaszszkudlarek avatar Sep 13 '18 13:09 tomaszszkudlarek

I've got the same issue over here. Running on the same configuration but running on PHP 7.1

SjamonDaal avatar Sep 28 '18 09:09 SjamonDaal

Fixed it! System was installing SOAP by default for PHP 5.4 but icingaweb2 is running on (in my case) rh-php71 (Check in /etc/opt/rh what version you have installed)

[root@SDH-DRO-MON01 ~]# ls /etc/opt/rh Returns: rh-php71

For rh-php71: https://centos.pkgs.org/7/centos-sclo-rh/rh-php71-php-soap-7.1.8-1.el7.x86_64.rpm.html

Command: yum install rh-php71-php-soap

SjamonDaal avatar Sep 28 '18 09:09 SjamonDaal

It's in fact 7.1, however i didn't solve the problem by installing it (and restarting httpd). But maybe in my case i require some additional configuration steps. I'll check it later. Thanks for a tip.

tomaszszkudlarek avatar Sep 28 '18 12:09 tomaszszkudlarek

After just restarting the service it didn't work on my system. I've restarted the machine. 😄

SjamonDaal avatar Sep 28 '18 12:09 SjamonDaal

For those of you having this issue after installing the aforementioned package and restarting apache, you're probably configured to use php-fpm. You'll need to run the following command: systemctl restart rh-php71-php-fpm.service

sonicos avatar Jan 04 '19 14:01 sonicos

Confirmed on Centos 7.x the following works: yum install rh-php71-php-soap systemctl restart rh-php71-php-fpm.service

pdroz avatar Jan 09 '19 02:01 pdroz

Thx @sonicos 👍 It works :)

pcasis avatar Feb 07 '19 14:02 pcasis

Small tip at the end: If you are using PHP-FPM under CentOS and install some new extention you always have to restart the PHP-FPM daemon because it is taking care about PHP under CentOS.

cannotcodetm avatar May 07 '19 11:05 cannotcodetm