Author Topic: SOAP  (Read 5941 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
SOAP
« 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

Offline
*
Re: SOAP
« Reply #1 on: June 02, 2015, 07:23:40 PM »
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...

Code: [Select]
tail -f /var/log/php-rebuild.log
- When finished, find the soap.so module:

Code: [Select]
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

Code: [Select]
nano /usr/local/cwp/php54/php.ini
Add the following at the end:

Code: [Select]
extension="/usr/lib64/extensions/no-debug-non-zts-20100525/soap.so"
Retstart Apache:

Code: [Select]
service httpd restart
And voilą! The SOAP information can be found on phpinfo() page and my code works.

 




Offline
*
Re: SOAP
« Reply #2 on: June 02, 2015, 07:57:23 PM »
I did the same thing to install ZipArchive