Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 16
  1. #1
    cPanel Partner NOC cPanel Partner NOC Badge cyon's Avatar
    Join Date
    Jan 2003
    Posts
    323

    Default SOAP extension for cPanel PHP

    Hello,

    Is there an option to compile the cPanel PHP (/usr/local/cpanel/3rdparty/bin/php) with your one options? I need the SOAP (PHP5) extension within the skin.

    Otherwise i've to use nuSOAP or PEAR:SOAP.

    Thanks for your advise.

  2. #2
    Member apscinsspl's Avatar
    Join Date
    Mar 2008
    Posts
    112

    Default

    Hello,

    In order to compile php with soap you need to login to WHM--update apache -- select your configuration and keep proceeding till you get the exhaustive list option where you will find soap, check the box and compile apache.

    After that soap should be enabled for you.

  3. #3
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,788
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by apscinsspl View Post
    Hello,

    In order to compile php with soap you need to login to WHM--update apache -- select your configuration and keep proceeding till you get the exhaustive list option where you will find soap, check the box and compile apache.

    After that soap should be enabled for you.
    That only updates the system PHP installation, not the one cPanel uses.

    To update the binary cPanel uses, create a new profile in EasyApache wherein you enable SOAP support for PHP. Save the profile and don't build. Then copy your new profile like this (using example.yaml as the profile file name):

    Code:
    # mv /scripts/makecpphp.profile.yaml /scripts/makecpphp.profile.yaml.backup
    # cp /var/cpanel/easy/apache/profile/custom/example.yaml /scripts/makecpphp.profile.yaml
    # /scripts/makecpphp
    The /scripts/makecpphp command builds a new PHP binary for cPanel to use.

  4. #4
    Member
    Join Date
    Apr 2004
    Location
    São Paulo - Brasil
    Posts
    22

    Default Installing SOAP on Cpanel php binary (not with easy apache)

    Hi guys, is this stil valid?

    http://forums.cpanel.net/f4/soap-ext...tml#post448857

    Couldn't find .yaml files on /scripts/

    Thanks
    .marcel touma

  5. #5
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by touma View Post
    Hi guys, is this stil valid?

    http://forums.cpanel.net/f4/soap-ext...tml#post448857

    Couldn't find .yaml files on /scripts/

    Thanks
    The profile that /scripts/makecpphp uses nowadays is stored in /var/cpanel/easy/apache/profle/makecpphp.profile.yaml. The easiest way to create one of these profiles is to go through EasyApache, click on Exhaustive Options List in Step 5 and instead of building, just saving the profile. This profile will be saved in /var/cpanel/easy/apache/profile/custom/. I recommend making a backup of makecpphp.profile.yaml before overwriting it.

  6. #6
    BANNED
    Join Date
    Jun 2005
    Location
    Wild Wild West
    Posts
    2,025

    Lightbulb

    EasyApache has the option to setup SOAP but as your subject says that you do not want to use EasyApache, I might mention that it is very easy to manually install this as well and for that one is pretty much just compiling PHP with the "--enable-soap" configure option:
    Code:
    # cd /usr/local/src
    # wget http://us2.php.net/get/php-5.2.10.tar.bz2/from/this/mirror
    # tar zxvf ./php-5.2.10.tar.bz2
    # cd php-5.2.10
    # make clean
    # ./configure --enable-soap !!!YOUR OTHER OPTIONS HERE!!!
    # make
    # make test
    # make install
    (Get !!!YOUR OTHER OPTIONS HERE!!! by looking at your phpinfo() screen)

  7. #7
    Member
    Join Date
    Apr 2004
    Location
    São Paulo - Brasil
    Posts
    22

    Default

    Guys,

    I was trying to change on hand the line Cpanel::Easy::PHP5::SOAP: 0 to 1, but found on /scripts/makecpphp the system '/scripts/cpanel_easy_sanity_check', '--quiet'; command that overwrites the makecpphp.profile.yaml file on every run.

    It's safe to disable this line? If it is, a cpanel update won't bring back this line?

    Can i manually change the yaml file?

    Thanks!
    .marcel touma

  8. #8
    Member
    Join Date
    Feb 2005
    Posts
    282

    Default

    Quote Originally Posted by cpanelkenneth View Post
    That only updates the system PHP installation, not the one cPanel uses.

    To update the binary cPanel uses, create a new profile in EasyApache wherein you enable SOAP support for PHP. Save the profile and don't build. Then copy your new profile like this (using example.yaml as the profile file name):

    Code:
    # mv /scripts/makecpphp.profile.yaml /scripts/makecpphp.profile.yaml.backup
    # cp /var/cpanel/easy/apache/profile/custom/example.yaml /scripts/makecpphp.profile.yaml
    # /scripts/makecpphp
    The /scripts/makecpphp command builds a new PHP binary for cPanel to use.
    Is this still needed or with the new easyapache and/or whm is not required anymore?

  9. #9
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,788
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by Secmas View Post
    Is this still needed or with the new easyapache and/or whm is not required anymore?
    The profile used by makecpphp is now:

    /var/cpanel/easy/apache/profile/makecpphp.profile.yaml
    Kenneth
    Product Manager
    cPanel, Inc.

  10. #10
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,555
    cPanel/Enkompass Access Level

    DataCenter Provider

    Lightbulb

    Here is a revised set of commands (where your custom build profile file name is "example.yaml"):
    Code:
    # mv /var/cpanel/easy/apache/profile/makecpphp.profile.yaml /var/cpanel/easy/apache/profile/makecpphp.profile.yaml.backup
    # cp /var/cpanel/easy/apache/profile/custom/example.yaml /var/cpanel/easy/apache/profile/makecpphp.profile.yaml
    # /scripts/makecpphp

  11. #11
    Member
    Join Date
    Feb 2005
    Posts
    282

    Default

    Excelent! Thanks.

  12. #12
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,788
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    cPanelDon's writeup is accurate.
    Kenneth
    Product Manager
    cPanel, Inc.

  13. #13
    Registered User
    Join Date
    Sep 2009
    Posts
    4

    Default

    Quote Originally Posted by touma View Post
    Guys,

    I was trying to change on hand the line Cpanel::Easy::PHP5::SOAP: 0 to 1, but found on /scripts/makecpphp the system '/scripts/cpanel_easy_sanity_check', '--quiet'; command that overwrites the makecpphp.profile.yaml file on every run.

    It's safe to disable this line? If it is, a cpanel update won't bring back this line?

    Can i manually change the yaml file?

    Thanks!
    i have a similar problem, please help me, how can i setup the SOAP ext.

  14. #14
    Registered User
    Join Date
    Sep 2009
    Posts
    4

    Default

    Quote Originally Posted by cPanelDon View Post
    Here is a revised set of commands (where your custom build profile file name is "example.yaml"):
    Code:
    # mv /var/cpanel/easy/apache/profile/makecpphp.profile.yaml /var/cpanel/easy/apache/profile/makecpphp.profile.yaml.backup
    # cp /var/cpanel/easy/apache/profile/custom/example.yaml /var/cpanel/easy/apache/profile/makecpphp.profile.yaml
    # /scripts/makecpphp
    when i do /scripts/makecpphp the /scripts/cpanel_easy_sanity_check in makecpphp everything rewrite like was in previous file. please help me

  15. #15
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,555
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    Quote Originally Posted by t00r View Post
    when i do /scripts/makecpphp the /scripts/cpanel_easy_sanity_check in makecpphp everything rewrite like was in previous file. please help me
    What method is being used to modify the EasyApache build profile?

    To help clarify, what is the precise indication that "everything" is being rewritten like the (default?) previous file?

Similar Threads & Tags
Similar threads

  1. bytesCode PHP Encoder next request for cPanel PHP extension build in
    By RodrigoGregorio in forum Feature Requests for cPanel/WHM
    Replies: 0
    Last Post: 11-12-2010, 04:30 PM
  2. Installing SOAP on Cpanel php binary (not with easy apache)
    By touma in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 12-10-2009, 09:40 PM
  3. Replies: 0
    Last Post: 01-30-2006, 06:34 PM
  4. How do we enable SOAP extension in PHP?
    By gegervision in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 12-02-2005, 02:52 AM
  5. PHP 5 with SOAP (how to ./configure --enable-soap)
    By jfxberns in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 10-03-2004, 05:52 PM
Tags for this Thread
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube