Knowledgebase

cURL error:Protocol https not supported or disabled in libcurl

Posted by ovisopa, 01-12-2010, 06:42 AM
Hello guys, I have an issue with libcurl while trying to make an PHP script conecting to an https link using curl, the script returns than I have checked the server # curl --version curl 7.15.5 (i686-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5 Protocols: tftp ftp telnet dict ldap http file https ftps Features: GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz # curl-config --feature SSL IPv6 libz IDN NTLM # openssl version -a OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008 built on: Fri Sep 4 08:29:03 EDT 2009 platform: linux-elf options: bn(64,32) md2(int) rc4(idx,int) des(ptr,risc1,16,long) blowfish(idx) compiler: gcc -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DKRB5_MIT -I/usr/kerberos/include -DL_ENDIAN -DTERMIO -Wall -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=generic -fasynchronous-unwind-tables -Wa,--noexecstack -DOPENSSL_USE_NEW_FUNCTIONS -fno-strict-aliasing -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM OPENSSLDIR: "/etc/pki/tls" engines: padlock dynamic Do I still need to recompile the Apache/PHP using Easy Apache in WHM ? or is there an configuration I can make to curl to be able to use SSL.

Posted by LeaTrueman, 01-12-2010, 06:59 AM
Hello, Could you please confirm that you have compiled php with curlSSL. Please run easyapache to enable curlSSL.

Posted by ovisopa, 01-12-2010, 07:18 AM
In EasyApache the curlSSL is not checked, I was thinking to ask before because as I seen # curl --version is reporting https, # curl-config --feature shows the SSL .. I was thinking it is already installed and maybe there's some more config to be done to enable it. Tonight I will try to run EasyApache because I'm not sure if ImageMagick and Imagick will work fine after recompiling PHP, I think I'll have to reinstall ImageMagick also .. this is why I didn't tryed now to recompile it because I have few visited websites (4000+ unique/day) which depends on ImageMagick and Imagick

Posted by LeaTrueman, 01-12-2010, 07:53 AM
Easyapache wont affect ImageMagick installation. You can recompile it with curlSSL which will fix the issue.

Posted by ovisopa, 01-12-2010, 08:02 AM
Thank you. I'll try it and let you guys know. P.S. so if # curl-config --feature reports SSL and # curl --version supports protocol https, this doesn't mean that SSL is available ?

Posted by LeaTrueman, 01-12-2010, 09:10 AM
Hello, Please try selecting the curlSSL from easyapache and let me know if you are still having issues.

Posted by ovisopa, 01-12-2010, 11:29 AM
just a short notice Imagick doesn't work after recompiling Apache/PHP using Easy Apache I'll be back with more info after I will fix the issue with ImageMagick and Imagick Last edited by ovisopa; 01-12-2010 at 11:38 AM.

Posted by ovisopa, 01-12-2010, 11:56 AM
The default versions (Imagick & ImageMagick) installed using WHM had some issues and I had to manualy downgrade to another version to make them work ok. I have reinstalled (first remove and than install again, NOT update or Reinstall button from WHM) Imagick and it worked. It seems that what I was afraid off ..did happened. This is why is better to recompile on night time, there's a small chance that things go wrong. With curlSSL installed my php script is working perfect, now I can send SMS messages from my webpage



Was this answer helpful?

Add to Favourites Add to Favourites

Print this Article Print this Article

Also Read
Need VPS (Views: 607)
Huge exim logs (Views: 618)
OpenVZ Problem (Views: 607)
vpsville outage? (Views: 634)


Language:

Client Login

Email

Password

Remember Me

Search