Control Web Panel
WebPanel => PHP => Topic started by: NALF on June 02, 2015, 04:23:59 PM
-
SOAP calls dont' seem to work on my brand new CWP installation.
I can see the SOAP module enabled on the PHP Short Info page but it does not appear on phpinfo() page.
When I do php -i | grep -i soap I see --enable-soap and Soap Client => enabled.
It all seems fine but It doesn't work when I try to use it in my code.
I have tried to (re)install it using yum install php-soap but still no luck.
Any clue please? :o
-
I got it.
- I went in CWP under Php Settings\Php version switcher
- I selected the same version as actually installed (5.4.27) and clicked Next
- I modified the Additional configuration section to add --enable-soap=shared (I am not sure if the shared is important)
- Click Start compiler in background
- Keep an eye on the progress...
tail -f /var/log/php-rebuild.log
- When finished, find the soap.so module:
find / -name soap.so
There is a couple files now. The good one is the one with a path like /usr/lib64/extensions/no-debug-non-zts-20100525/soap.so
Edit php.ini to add the module
nano /usr/local/cwp/php54/php.ini
Add the following at the end:
extension="/usr/lib64/extensions/no-debug-non-zts-20100525/soap.so"
Retstart Apache:
service httpd restart
And voilą! The SOAP information can be found on phpinfo() page and my code works.
-
I did the same thing to install ZipArchive