Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

cURL is not compiled into PHP. I'm running:

[root@vps ~]# cat /etc/issue
CentOS release 5.7 (Final)
Kernel \r on an \m

Then I execute yum install curl and yum install php-curl. Then:

   [root@vps ~]# which curl
    /usr/bin/curl
   [root@vps ~]# /usr/bin/curl -v
curl: no URL specified!
curl: try 'curl --help' for more information

My environment still shows that I haven't compile curl into php. Why?

I used phpinfo(), which shows:

cURL support: enabled

but when I install zencart on my vps hosting, it shows:

CURL not compiled into PHP - notify server administrator

How can I fix this?

share|improve this question
add comment

1 Answer

Check if by any chance curl_init() is on the disabled_functions of your php.ini, because from what I see here the Zencart installer checks that.

Also, on a test script (like the one you created for phpinfo()) try this to see what happens:

var_dump(curl_init());
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.