Add a php5-curl extension to php-fpm Debian configuration

Hi–first time poster here, hope this is the right place for it.

I followed the instructions here (~~[http://www.failover.co/blog/quick-setup-apache-worker-fastcgi-php-fpm-and-apc" target="_blank">](http://www.failover.co/blog/quick-setup … pm-and-apc">http://www.failover.co/blog/quick-setup-apache-worker-fastcgi-php-fpm-and-apc]() to use apache worker,fastcgi,php-fpm and apc to get my website moving faster and it worked great.

Now I'm building an app on the site that uses php5-curl but I can't add the extension:

"sudo apt-get install php5-curl" leads to

–--------

Reading package lists… Done

Building dependency tree

Reading state information… Done

Some packages could not be installed. This may mean that you have

requested an impossible situation or if you are using the unstable

distribution that some required packages have not yet been created

or been moved out of Incoming.

The following information may help to resolve the situation:

The following packages have unmet dependencies:

php5-curl : Depends: phpapi-20100525+lfs

E: Broken packages


Does anyone know how to add an extension (e.g., php5-curl) to a php-fpm configuration?

4 Replies

Which distribution/version are you running? What do you get for "apt-cache policy php5-fpm" and "apt-cache policy php5-curl" on your system?

It should just work…

Thanks hoopycat

I'm running:

Debian GNU/Linux 6.0.6 (squeeze)

Linux 3.8.4-linode50 i686

on a single Linode 1024

"apt-cache policy php5-fpm" gets:

Installed: 5.3.24-1~dotdeb.0

Candidate: 5.4.15-1~dotdeb.2

Version table:

5.4.15-1~dotdeb.2 0

500 http://packages.dotdeb.org/ stable/all i386 Packages

*** 5.3.24-1~dotdeb.0 0

100 /var/lib/dpkg/status

"apt-cache policy php5-curl" gets:

Installed: (none)

Candidate: 5.4.15-1~dotdeb.2

Version table:

5.4.15-1~dotdeb.2 0

500 http://packages.dotdeb.org/ stable/all i386 Packages

5.3.3-7+squeeze15 0

500 http://security.debian.org/ squeeze/updates/main i386 Packages

5.3.3-7+squeeze14 0

500 http://ftp.us.debian.org/debian/ squeeze/main i386 Packages

So you are using the dotdeb repo and have it set to stable, not squeeze, which means your system has now been installing dotdeb packages from Debian Wheezy instead of Debian Squeeze. That'll definitely break your packages.

I'd suggest fixing your sources.list file so that it points to squeeze, not stable, then uninstall, update, and reinstall your packages.

Alternatively, you could just move to Debian 7 (wheezy) which has FPM in the official Debian repos.

-Tim

Thanks Tim, appreciate it. I'll try the upgrade to Wheezy.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct