Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Hi I have been trying to get Curl with SSL support on CentOS 5.9 server . I have in the process updated php to 5.4.11 using the remi repo. The system is running plesk and when I do I look at phpinfo() I can see curl but it's the wrong version and It doesn't have ssl support. here is some useful info:

[root@somwhere ~]# rpm -qa php\* \*curl\*
php-gd-5.4.11-1.el5.remi
php-mysql-5.4.11-1.el5.remi
php-common-5.4.11-1.el5.remi
libcurl-7.21.7-5.el5.remi.2
curl-7.21.7-5.el5.remi.2
php-ioncube-loader-4.2.2-2.el5.art
php-imap-5.4.11-1.el5.remi
compat-libcurl3-7.15.5-2.el5.remi
php-pear-1.9.4-12.el5.remi.1
php-cli-5.4.11-1.el5.remi
php-pdo-5.4.11-1.el5.remi
php-xml-5.4.11-1.el5.remi
php-pecl-sqlite-2.0.0-0.1.svn313074.el5.remi
php-devel-5.4.11-1.el5.remi
php-mbstring-5.4.11-1.el5.remi
php-5.4.11-1.el5.remi


[root@somewhere ~]# php -i | grep -A 25 curl

curl

cURL support => enabled
cURL Information => 7.29.0
Age => 3
Features
AsynchDNS => No
Debug => No
GSS-Negotiate => No
IDN => No
IPv6 => No
Largefile => Yes
NTLM => No
SPNEGO => No
SSL => No
SSPI => No
krb4 => No
libz => No
CharConv => No
Protocols => dict, file, ftp, gopher, http, imap, pop3, rtsp, smtp, telnet, tftp
Host => x86_64-unknown-linux-gnu

I am struggling with this one as its saying that php is loaded with curl 7.29 but my packages indicate the 7.21 is install and the 7.21 package from remi does have ssl support.

Any one got an idea on how to fix this?

Thanks

share|improve this question
add comment

1 Answer

okay I fixed this by removing /usr/lib/curl.so* as the Remi package was placing files in /usr/lib64/ I'm guessing the the /usr/lib files were getting searched first by php and causing the wrong version of curl to be used.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.