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.

EasyApache not compiling Curl with SSH

Discussion in 'General Discussion' started by mofolo, Nov 30, 2014.

  1. mofolo

    mofolo Member

    Joined:
    Jan 26, 2012
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    EasyApache not compiling Curl with SSL

    Hey All,

    I recently ran Easy Apache and it broke my server's SSL cURL ability.

    Upon looking at the Easy Apache build logs, I found this error while cURL's makefile is being compiled.

    Code:
    /usr/bin/ld: /usr/local/lib/librtmp.a(rtmp.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
    /usr/local/lib/librtmp.a: could not read symbols: Bad value
    collect2: ld returned 1 exit status
    make[2]: *** [libcurl.la] Error 1
    I read around, and found that compiling with -fPIC should fix the problem; I just don't know where to put this flag?

    Additionally, I noted that this is a shared data issue, so, I SSH and ran:

    Code:
    cd /home/cpeasyapache/src/curl-7/
    ./configure --disable-shared --enable-ssl
    This works fine, however PHP still does not identify that cURL has HTTPS support, despite getting this response:

    Code:
    curl -V
    curl 7.38.0 (x86_64-unknown-linux-gnu) libcurl/7.38.0 OpenSSL/1.0.1e zlib/1.2.3 libidn/1.18 librtmp/2.2e
    Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtmp rtsp smtp smtps telnet tftp 
    Features: IDN IPv6 Largefile NTLM NTLM_WB SSL lib
    I tried re-building PHP alone, however this did not fix the issue.

    What can I do?

    Thanks.
     
    #1 mofolo, Nov 30, 2014
    Last edited: Nov 30, 2014
  2. mofolo

    mofolo Member

    Joined:
    Jan 26, 2012
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Ticket #: 5760935
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page