2

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?

2

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());

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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