Jump to content

cURL PHP extension


NoGi

Recommended Posts

In upgrading to 4.0.8, the pre-check notes:

You do not have the cURL PHP extension loaded or it is running a version less than 7.36. While this is not required, it is recommended.

On my VPS, when I run yum install php-curl, I get:

yum install php-curl
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: centos.uberglobalmirror.com
 * epel: fedora.mirror.serversaustralia.com.au
 * extras: centos.uberglobalmirror.com
 * remi: remi.conetix.com.au
 * updates: centos.uberglobalmirror.com
Package php-common-5.4.42-1.el6.remi.x86_64 already installed and latest version
Nothing to do

It's come back with me running the latest version for my version of PHP, where is v7.36 from?

Link to comment
Share on other sites

In upgrading to 4.0.8, the pre-check notes:

On my VPS, when I run yum install php-curl, I get:

yum install php-curl

It's come back with me running the latest version for my version of PHP, where is v7.36 from?

That's the php extension part. You are looking for "yum curl" and "yum libcurl".  Do "yum list *curl*" and you'll see what you've got installed/available.

Edit: And the reason you might see a message on 4.0.8 about the php curl extension not being loaded is because there was a bug with versions of curl < 7.36 so if you have an earlier version loaded they fall back to using sockets instead and just report that the extension is not loaded. I have the same message but it's not worth upgrading curl for.

http://community.invisionpower.com/4bugtrack/curl-and-requirements-checker-r6193/ 

Link to comment
Share on other sites

  • Management

There was an error in the curl checking part of the upgrade process. This has since been fixed and we've updated the 4.0.8 release.

While 7.36 is nice, it's not essential any longer and your suite will still use curl for everything except chunking which it has to fall back to sockets for.

Link to comment
Share on other sites

I can confirm this, had the same issue today while upgrading to 4.0.8. I downloaded a fresh IPB 4.0.8 zip today, but "the curl checking part" still gave this error.

My curl version was 7.35, it seems IPB will not accept any version below 7.36. The error message was a bit vague to find upgrading to be the solution. I only found this thread afterI found the solution.. hehe.

I updated curl via diractadmin custombuild (upgrading to 7.37)

cd /usr/local/directadmin/custombuild
wget http://curl.haxx.se/snapshots/curl-7.37.0-20140401.tar.gz
perl -pi -e 's/curl:.*/curl:7.37.0-20140401:af816f2c93249ab8376e0efce2106a97/' versions.txt
./build curl
/usr/local/bin/curl --version

or you can try:

cd /usr/local/src
wget http://curl.haxx.se/download/curl-7.36.0.tar.gz
tar -xvzf curl-7.36.0.tar.gz
rm *.gz
cd curl-7.6.0
./configure
make
make install

restart apache after, should do the trick.

Link to comment
Share on other sites

This is all very confusing. I have curl 7.15.5  Do I need to upgrade? What am I missing by not upgrading?

If you want to use curl, you need to upgrade it. If not, the system will use sockets instead.
Curl is the better option, you might want to google curl vs socket or something along those lines for more info.

Link to comment
Share on other sites

How did you upgrade in centos? Did you compile like the example above or use yum?

Nope.

I installed city-fan.org repo.

Run this: 
rpm -Uvh http://www.city-fan.org/ftp/contrib/yum-repo/city-fan.org-release-1-12.rhel6.noarch.rpm

Then i went to the repo folder and i edited that repo file to disable it. I don't want that repo to mess with the yum update.

After that i did just run this: 
yum --enablerepo=city-fan.org update libcurl

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...