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.

cURL SSL is broken after EasyApache 4 upgrade

Discussion in 'EasyApache' started by dAvIdP___, Jan 10, 2017.

  1. dAvIdP___

    dAvIdP___ Member

    Joined:
    Jun 13, 2016
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    UK
    cPanel Access Level:
    Root Administrator
    After upgrading Easy Apache from 3 to 4, I am now getting a cURL SSL error:

    '35: The error message is SSL connect error'

    The cURL SSL options are:

    curl_setopt($ch, CURLOPT_SSLVERSION, CURL_SSLVERSION_TLSv1); curl_setopt($ch, CURLOPT_SSL_CIPHER_LIST, 'RC4-MD5');

    The server's cURL settings are:

    curl 7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.21 Basic ECC zlib/1.2.3 libidn/1.18 libssh2/1.4.2


    Can you see what I need to do?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,021
    Likes Received:
    1,276
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    You can verify that cURL is installed for the version of PHP utilized by this website with a command such as:

    Code:
    rpm -qa|grep php-curl
    The output will resemble this, depending on what PHP versions are installed:

    Code:
    # rpm -qa|grep php-curl
    ea-php55-php-curl-5.5.38-8.8.6.cpanel.x86_64
    ea-php70-php-curl-7.0.14-1.1.6.cpanel.x86_64
    ea-php56-php-curl-5.6.29-1.1.5.cpanel.x86_64
    Is this the error message you reported from an actual script using cURL with PHP over SSL, or from a script that's testing if the server supports cURL SSL? There's a thread where this is discussed at:

    curlssl missing?

    Thank you.
     
  3. dAvIdP___

    dAvIdP___ Member

    Joined:
    Jun 13, 2016
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    UK
    cPanel Access Level:
    Root Administrator
    Thank you for replying.

    Some context:
    The error is happening on what was a working e-commerce website.
    The bit that took the money involved passing an XML message to a processor over a cURL post with the SSL settings above.
    I updated to Easy Apache 4 (from 3) and it knocked this cURL request out, with it now returning "SSL connect error".

    Running the command:
    Code:
    rpm -qa|grep php-curl
    Returns
    Code:
    ea-php55-php-curl-5.5.38-8.8.6.cpanel.x86_64
    ea-php71-php-curl-7.1.0-14.14.2.cpanel.x86_64
    ea-php56-php-curl-5.6.29-1.1.6.cpanel.x86_64
    ea-php54-php-curl-5.4.45-26.26.6.cpanel.x86_64
    The website I'm looking at is running 5.6.29.
     
  4. garconcn

    garconcn Well-Known Member

    Joined:
    Oct 29, 2009
    Messages:
    113
    Likes Received:
    4
    Trophy Points:
    68
    I also experienced the similar issue today after converting from EA3 to EA4. The curl was installed in EA3 but it was missing from PHP 5.6 after the conversion, however, I found PHP 5.5 and 7.0 have the curl installed. I've fixed the issue by re-compile the cpanel default profile "CloudLinux + All PHP Options + OpCache" instead of the conversion profile.
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,021
    Likes Received:
    1,276
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello @dAvIdP___,

    Feel free to open a support ticket using the link in my signature if you'd like us to take a closer look. You can post the ticket number here and we will update this thread with the outcome.

    Thank you.
     
Loading...

Share This Page