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.

libcurl problem with PHP build in buildapache.sea

Discussion in 'EasyApache' started by brianteeter, May 12, 2002.

  1. brianteeter

    brianteeter Well-Known Member

    Joined:
    Jan 6, 2002
    Messages:
    72
    Likes Received:
    0
    Trophy Points:
    6
    I have a client who needs to do SSL connections using CURL in PHP. Unfortunately, the build script within buildapache.sea builds libcurl without SSL.

    I've tried all sorts of combinations of modifications to the build scripts. Including changing the PHP config and rebuilding. (See below:

    root@ensim [~/buildapache/php-4.2.0]# cat 1.sh
    #!/bin/sh

    ./configure --with-apxs=/usr/local/apache/bin/apxs --with-xml --with-openssl=/usr/ --enable-bcmath --enable-calendar --with-curl=/usr/local/ --with-swf=/usr/local/flash --enable-ftp --with-gd=../gd-1.8.4 --with-jpeg-dir=/usr/local --with-xpm-dir=/usr/X11R6 --with-png-dir=/usr --with-mcrypt --with-ming=../ming-0.1.1 --enable-magic-quotes --with-mysql --with-pear --enable-safe-mode --enable-track-vars --with-ttf --enable-versioning --with-zlib --with-pgsql

    I've also downloaded and build a curl source package with ssl enabled. Still no luck.

    Any advice? Please?

    Thanks - Brian
     
  2. sbrad

    sbrad Well-Known Member

    Joined:
    Aug 14, 2001
    Messages:
    113
    Likes Received:
    0
    Trophy Points:
    16
    I had the same problem. I just downloaded curl-ssl-7.9.5-1.i386.rpm and installed it. Worked fine for me.
     
  3. sbrad

    sbrad Well-Known Member

    Joined:
    Aug 14, 2001
    Messages:
    113
    Likes Received:
    0
    Trophy Points:
    16
    Deleted
     
  4. brianteeter

    brianteeter Well-Known Member

    Joined:
    Jan 6, 2002
    Messages:
    72
    Likes Received:
    0
    Trophy Points:
    6
    [quote:683303a0d2][i:683303a0d2]Originally posted by sbrad[/i:683303a0d2]

    I had the same problem. I just downloaded curl-ssl-7.9.5-1.i386.rpm and installed it. Worked fine for me.[/quote:683303a0d2]

    Excellent. I will give this a try. (Assuming I can find the RPM on RPMFind.)

    Thanks,

    Brian
     
  5. kwimberl

    kwimberl Well-Known Member

    Joined:
    Aug 13, 2001
    Messages:
    123
    Likes Received:
    0
    Trophy Points:
    16
    from root:

    wget curl.haxx.se/download/curl-ssl-7.9.6-1.i386.rpm
    rpm --upgrade= curl-ssl-7.9.6-1.i386.rpm

    That should do the trick for you!
     
  6. bert

    bert Well-Known Member

    Joined:
    Aug 21, 2001
    Messages:
    602
    Likes Received:
    0
    Trophy Points:
    16
    I also had the same problem, but could not install curl from RPM. Kept giving me an error, so I recompiled curl:

    & cd /usr/local/src
    & wget http://curl.haxx.se/download/curl-7.9.7.tar.gz
    & tar -zxpf curl-7.9.7.tar.gz
    & cd curl-7.9.7
    & ./configure --prefix=/usr --with-ssl
    & make
    & make install

    This will definetely install it with ssl and without problems :)
     
  7. brianteeter

    brianteeter Well-Known Member

    Joined:
    Jan 6, 2002
    Messages:
    72
    Likes Received:
    0
    Trophy Points:
    6
    Interesting. I did the same thing and it didn't solve the problem for me. I _was_ able to do https curl calls from the command line, but not from PHP. I think when you recompile it installs it in a different location than the RPM's. But, then again, I didn't specifu the prefix as you did, so that was probably the problem.

    In any event, installing the openssl, openssl-devel and the curl-ssl RPM's worked for me.

    Is it just me or shouldn't a SSL Curl version be a default part of the CPanel install? Just a thought...

    Thanks everyone for the help!

    Brian

    [quote:5aea5051a7][i:5aea5051a7]Originally posted by bert[/i:5aea5051a7]

    I also had the same problem, but could not install curl from RPM. Kept giving me an error, so I recompiled curl:

    & cd /usr/local/src
    & wget http://curl.haxx.se/download/curl-7.9.7.tar.gz
    & tar -zxpf curl-7.9.7.tar.gz
    & cd curl-7.9.7
    & ./configure --prefix=/usr --with-ssl
    & make
    & make install

    This will definetely install it with ssl and without problems :)[/quote:5aea5051a7]
     
  8. Marty

    Marty Well-Known Member

    Joined:
    Oct 10, 2001
    Messages:
    630
    Likes Received:
    1
    Trophy Points:
    18
    I had the same problem. Do this:

    cp /usr/local/src/curl-7.9.7/lib/libcurl* /usr/lib

    and then restart httpd.

    that solved it for me.

    Marty


    [quote:d451cfb460][i:d451cfb460]Originally posted by brianteeter[/i:d451cfb460]

    Interesting. I did the same thing and it didn't solve the problem for me. I _was_ able to do https curl calls from the command line, but not from PHP. I think when you recompile it installs it in a different location than the RPM's. But, then again, I didn't specifu the prefix as you did, so that was probably the problem.

    In any event, installing the openssl, openssl-devel and the curl-ssl RPM's worked for me.

    Is it just me or shouldn't a SSL Curl version be a default part of the CPanel install? Just a thought...

    Thanks everyone for the help!

    Brian

    [quote:d451cfb460][i:d451cfb460]Originally posted by bert[/i:d451cfb460]

    I also had the same problem, but could not install curl from RPM. Kept giving me an error, so I recompiled curl:

    & cd /usr/local/src
    & wget http://curl.haxx.se/download/curl-7.9.7.tar.gz
    & tar -zxpf curl-7.9.7.tar.gz
    & cd curl-7.9.7
    & ./configure --prefix=/usr --with-ssl
    & make
    & make install

    This will definetely install it with ssl and without problems :)[/quote:d451cfb460][/quote:d451cfb460]
     
  9. Brad

    Brad Well-Known Member

    Joined:
    Aug 16, 2001
    Messages:
    231
    Likes Received:
    0
    Trophy Points:
    16
    Is this a problem with the newest buildapache.sea?

    I was going to install today but we have to have curl for billing software with php and this would break our setup.

    Nick, is this something that needs to be fixed?
     
  10. bert

    bert Well-Known Member

    Joined:
    Aug 21, 2001
    Messages:
    602
    Likes Received:
    0
    Trophy Points:
    16
    Brad,

    I don't think there is a problem with the buildapache.sea script. It just does not compile curl to work with https. You can still upgrade, you will just then have to recompile curl. ;)
     
  11. Brad

    Brad Well-Known Member

    Joined:
    Aug 16, 2001
    Messages:
    231
    Likes Received:
    0
    Trophy Points:
    16
    Hmm, Well it worked before with no problems.

    Yes, I understand.

    [quote:c2c1db208f][i:c2c1db208f]Originally posted by bert[/i:c2c1db208f]

    Brad,

    I don't think there is a problem with the buildapache.sea script. It just does not compile curl to work with https. You can still upgrade, you will just then have to recompile curl. ;) [/quote:c2c1db208f]
     
Loading...

Share This Page