php curl with ssl

nick2004

Verified User
Joined
Jan 31, 2004
Messages
7
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
 
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
 
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
 
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:
Code:
cd /usr/local/directadmin/customapache
./build clean
rm -rf configure.*
./build update
./build all

service httpd restart
John
 
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???
 
Hello Justin,

I have reinstalled the ssl by hand few months ago and everything is working fine
 
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!
 
Last edited:
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
 
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
 
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:
Code:
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 NTLM
Thank you,

John
 
davef8 said:
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:
Code:
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 NTLM
Thank you,

John

This is such an easy add-on I would like to see it as part of the default settings :)
 
Back
Top