Icinga / icingaweb2-module-vsphere

VMware vSphere import source for the Icinga Director
GNU General Public License v2.0
32 stars 8 forks source link

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

Open tomaszszkudlarek opened 6 years ago

tomaszszkudlarek commented 6 years ago

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 commented 6 years ago

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

SjamonDaal commented 6 years ago

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

SjamonDaal commented 6 years ago

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

tomaszszkudlarek commented 6 years ago

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.

SjamonDaal commented 6 years ago

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

sonicos commented 5 years ago

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

pdroz commented 5 years ago

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

pcasis commented 5 years ago

Thx @sonicos 👍 It works :)

mrgohin commented 5 years ago

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.