View Full Version : php curl with ssl
nick2004
02-02-2004, 05:11 PM
How can I compile php curl with ssl support ?
I was trying to change the build script
under curl section
./configure --with-ssl
but it's now working
still get
curl
CURL support enabled
CURL Information libcurl/7.10.5 zlib/1.1.4
but it should be
curl
CURL support enabled
CURL Information libcurl/7.10.5 OpenSSL/0.9.7a zlib/1.1.4
Please help
DirectAdmin Support
02-04-2004, 11:24 AM
Hello,
I've never tried compling curl with ssl, so I'm not completely sure of the process, but just make sure that curl has ssl included, and also that php has the required curl configure lines as well.
John
nick2004
02-04-2004, 11:46 AM
CURL installed with the ssl:
# /usr/local/bin/curl-config --prefix
/usr/local
# /usr/local/bin/curl-config --feature
SSL
libz
I configure php as follows:
#!/bin/sh
./configure \
--with-kerberos=/usr/kerberos \
--with-openssl=/usr \
--with-apxs \
--with-curl=/usr/local \
--with-gd \
--with-gd-dir=/usr/local/lib \
--with-gettext \
--with-jpeg-dir=/usr/local/lib \
--with-kerberos \
--with-mcrypt \
--with-mysql \
--with-pear \
--with-png-dir=/usr/local/lib \
--with-xml \
--with-zlib \
--with-zlib-dir=/usr/local/lib \
--enable-bcmath \
--enable-calendar \
--enable-ftp \
--enable-magic-quotes \
--enable-sockets \
--enable-track-vars
So everything should work but I am still have
CURL support enabled
CURL Information libcurl/7.10.5 zlib/1.1.4
Please help
DirectAdmin Support
02-04-2004, 12:12 PM
Hello,
I just check our servers here and they all have curl with ssl, without having to do anything.. that's how it came. So, my only suggestion is to download and recompile everything:
cd /usr/local/directadmin/customapache
./build clean
rm -rf configure.*
./build update
./build all
service httpd restart
John
rumrugby
04-30-2004, 10:00 PM
hmmm i am having the same problem, i did what you said above about re-building apache ect, however this has not helped. I read the other thead "cuRl with SSL" and i did what they said however it still doesn't work...what does one do???
nick2004
05-03-2004, 04:16 AM
Hello Justin,
I have reinstalled the ssl by hand few months ago and everything is working fine
davef8
05-13-2004, 06:19 PM
Just like rumrugby I can't get this to work. I have followed the procedures in this thread and in http://www.directadmin.com/forum/showthread.php?threadid=1807&highlight=curl+AND+ssl
I am on a fedora virtual private server runing under User Mode Linux.
I use these commands:
./build update
./build all
Before running ./build all I added --with-curl and --with-openssl /usr to configure.php. I also added --with-ssl to the do_curl function in the build script. The compilation process works fine and I don't see any errors during the procedure.
However when I enter curl -V it shows
"curl 7.11.0 (i686-pc-linux-gnu) libcurl/7.11.0 ipv6 zlib/1.1.4" no open ssl.
What I am I doing wrong and what are possible alternatives?
I ran this test script http://forums.oscommerce.com/index.php?showtopic=90086&hl=curl and recieved the following error:
Errors: 1 libcurl was built with SSL disabled, https: not supported!
ProWebUK
05-13-2004, 07:42 PM
Ive fixed this numerous times on another servers, just havnt written it down anywhere and dont have it at the top of my head....
If anyone has the problem and wants me to take a look, ill need the login information and possibly up to 30minutes (on and off) of downtime while compiles are taking place ;)
Chris
rumrugby
05-14-2004, 01:39 AM
how much would you charge?
ProWebUK
05-14-2004, 07:08 AM
What I mentioned above, i'd do free for one just so I can write it down, then I can post it on here, seeing how common the problem is.
Chris
davef8
05-14-2004, 03:49 PM
John from the DA support team came through on this one.
Here is what John did to solve this issue on my server:
I didn't use the build script, I just ran:
cd /usr/local/directadmin/customapache/curl-7.11.0
CPPFLAGS="-I/usr/kerberos/include" LDFLAGS="-L/usr/kerberos/lib" ./configure --with-ssl
make
make install
/sbin/service httpd restart
curl -V
curl 7.11.0 (i686-pc-linux-gnu) libcurl/7.11.0 OpenSSL/0.9.7a ipv6 zlib/1.1.4
Protocols: ftp gopher telnet dict ldap http file https ftps
Features: IPv6 SSL libz NTLMThank you,
John
Dixiesys
05-26-2004, 08:41 PM
Originally posted by davef8
John from the DA support team came through on this one.
Here is what John did to solve this issue on my server:
I didn't use the build script, I just ran:
cd /usr/local/directadmin/customapache/curl-7.11.0
CPPFLAGS="-I/usr/kerberos/include" LDFLAGS="-L/usr/kerberos/lib" ./configure --with-ssl
make
make install
/sbin/service httpd restart
curl -V
curl 7.11.0 (i686-pc-linux-gnu) libcurl/7.11.0 OpenSSL/0.9.7a ipv6 zlib/1.1.4
Protocols: ftp gopher telnet dict ldap http file https ftps
Features: IPv6 SSL libz NTLMThank you,
John
This is such an easy add-on I would like to see it as part of the default settings :)
Powered by vBulletin™ Version 4.0.4 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.