The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WHM plugin : PHP don't support SoapClient

Discussion in 'cPanel Developers' started by tizoo, Oct 5, 2012.

  1. tizoo

    tizoo Well-Known Member

    Joined:
    Jan 6, 2004
    Messages:
    66
    Likes Received:
    0
    Trophy Points:
    6
    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
     
  2. morissette

    morissette Well-Known Member

    Joined:
    May 24, 2009
    Messages:
    119
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Austin, TX
    cPanel Access Level:
    Root Administrator
    Modify /var/profiles/easy/apache/profile/makecpphp.profile.yaml

    then fun /scripts/makecpphp
     
  3. tizoo

    tizoo Well-Known Member

    Joined:
    Jan 6, 2004
    Messages:
    66
    Likes Received:
    0
    Trophy Points:
    6
    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
     
  4. tizoo

    tizoo Well-Known Member

    Joined:
    Jan 6, 2004
    Messages:
    66
    Likes Received:
    0
    Trophy Points:
    6
    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
     
Loading...

Share This Page