Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tomaszszkudlarek opened this issue Sep 13, 2018 · 9 comments
Open

Comments

@tomaszszkudlarek
Copy link

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
Copy link
Author

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

@SjamonDaal
Copy link

SjamonDaal commented Sep 28, 2018

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

@SjamonDaal
Copy link

SjamonDaal commented Sep 28, 2018

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
Copy link
Author

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
Copy link

SjamonDaal commented Sep 28, 2018

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

@sonicos
Copy link

sonicos commented Jan 4, 2019

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
Copy link

pdroz commented Jan 9, 2019

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

@pcasis
Copy link

pcasis commented Feb 7, 2019

Thx @sonicos 👍
It works :)

@mrgohin
Copy link

mrgohin commented May 7, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants