Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 11 of 11
  1. #1
    Member
    Join Date
    Jan 2002
    Posts
    74

    Default libcurl problem with PHP build in buildapache.sea

    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. #2
    Member
    Join Date
    Aug 2001
    Posts
    114

    Default

    I had the same problem. I just downloaded curl-ssl-7.9.5-1.i386.rpm and installed it. Worked fine for me.

  3. #3
    Member
    Join Date
    Aug 2001
    Posts
    114

    Default

    Deleted

  4. #4
    Member
    Join Date
    Jan 2002
    Posts
    74

    Default

    [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. #5
    Member
    Join Date
    Aug 2001
    Posts
    124

    Default

    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. #6
    Member bert's Avatar
    Join Date
    Aug 2001
    Posts
    602

    Default

    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
    Bert Kammerer
    Creator of the X Skins[/url]

  7. #7
    Member
    Join Date
    Jan 2002
    Posts
    74

    Default

    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. #8
    Member
    Join Date
    Oct 2001
    Posts
    651

    Default

    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]
    Marty Hoskins
    TLC Web Enterprises

  9. #9
    Member Brad's Avatar
    Join Date
    Aug 2001
    Posts
    236

    Default

    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. #10
    Member bert's Avatar
    Join Date
    Aug 2001
    Posts
    602

    Default

    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.
    Bert Kammerer
    Creator of the X Skins[/url]

  11. #11
    Member Brad's Avatar
    Join Date
    Aug 2001
    Posts
    236

    Default

    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]

Similar Threads & Tags
Similar threads

  1. buildapache.sea (Thu Mar 6 01:34:39 2003) problem
    By gemby in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 03-12-2003, 03:07 PM
  2. Compiling buildapache.sea problem
    By kerosin in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 09-12-2002, 02:31 AM
  3. Upgrading PHP with buildapache.sea
    By mpope2 in forum cPanel and WHM Discussions
    Replies: 24
    Last Post: 07-01-2002, 03:56 AM
  4. Buildapache.sea 17th June upgrading problem in RH 7.3
    By mikerayner in forum cPanel and WHM Discussions
    Replies: 32
    Last Post: 06-28-2002, 03:41 AM
  5. Buildapache.sea 17th June upgrading problem in RH 7.3
    By mikerayner in forum cPanel and WHM Discussions
    Replies: 11
    Last Post: 06-22-2002, 06:23 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube