WHM plugin : PHP don't support SoapClient

tizoo

Well-Known Member
Jan 6, 2004
77
3
158
cPanel Access Level
DataCenter Provider
Hi all,

For the plugin we are currently developping (whm & cpanel) we need to do some soap calls.

This is ok for cpanel plugin but in the whm plugin, the php version used doesn't have support for soap.

Is there a reason why whm php version doesn't support soap ? Will it be supported in future version of whm ?

Otherwise, is it possible to recompile the php version used by whm or is there another possibility to do soap calls ?

Thanks in advance for any answer.

Cheers,
Philippe
 

tizoo

Well-Known Member
Jan 6, 2004
77
3
158
cPanel Access Level
DataCenter Provider
Modify /var/profiles/easy/apache/profile/makecpphp.profile.yaml

then fun /scripts/makecpphp
Thank a lot for the tip.

I didn't find anything related to Soap until your answer. And now that I know what I have to look for, I find some information related to makecpphp.

Modifying the file you point make me lost PDO support...

So I had a look at other places where it seems that other makecpphp.profile.yaml file stay and I found

/var/cpanel/easy/apache/profile/makecpphp.profile.yaml

Which is also the one that makecpphp script seems to use.

But modifying it didn't do anything. It seems that something make the build don't take makecpphp.profile.yaml file into account, but I don't know what by now.

Thanks again.
Philippe
 

tizoo

Well-Known Member
Jan 6, 2004
77
3
158
cPanel Access Level
DataCenter Provider
Hi,

Confirmation of the process.

I succeeded on recompiling PHP for WHM by modifying the file :

/var/cpanel/easy/apache/profile/makecpphp.profile.yaml

But as it was modified by I don't know what, I set it as immutable (chattr +i) and I though I would have a working PHP version 5.3.17 with PDO and Soap as seems to say the end of the build process :


-- End opt 'PHP 5.3.17 support' --
!! Verbose logfile is at '/usr/local/cpanel/logs/easy/apache/build.1349476674' !!

Done rebuilding cPanel's internal PHP.
Testing: /var/cpanel/3rdparty/bin/php WORKS!
Successfully rebuilt cPanel's internal PHP: /var/cpanel/3rdparty/bin/php


But even as the configuration contain :

Cpanel::Easy::PHP5::PDO: 1
Cpanel::Easy::PHP5::PDOMySQL: 1


It seems I don't have PDO anymore. I use it with SQLite.

Did some one know how to recover the default PHP installation and to simple ADD it the soap support ?
It seems that this process is far more complicated then it should be.

Many thanks in advance for any tips.

Cheers,
Philippe