4

I need to install php-apc on Ubuntu 10.04 and Ubuntu 9.04

First of all, can I just install this package to make it work with php 5.2 + lighttpd on these Ubuntu versions ?

I've tried to install it on Ubuntu 10.04 and I get the following error:

sudo apt-get install php-apc

The following packages have unmet dependencies:
  php-apc: Depends: phpapi-20090626+lfs
E: Broken packages

thanks

ajmitch
  • 18,203
  • 11
  • 56
  • 53
aneuryzm
  • 869
  • 3
  • 12
  • 21
  • I realize it has been awhile since activity on this but did you ever get this resolved. I am dealing with the same issue. Thanks. – davedpss May 21 '12 at 20:22
  • [fluteflute](http://askubuntu.com/users/866/fluteflute)'s [answer](http://askubuntu.com/a/19701/22949) has been accepted, so you might try that and see if it works. If it doesn't, you should post a new question detailing your problem and also including a link to this question. (Your post here will probably be [deleted soon](http://askubuntu.com/faq#deletion), since it is posted as an answer but is not an attempt to answer the question.) – Eliah Kagan May 21 '12 at 20:28

1 Answers1

5

php-apc cannot be installed because it depends on the virtual package phpapi-20090626+lfs. For the system to consider this virtual package 'installed', then you need to have installed either Apache or PHP.

Seeing as you don't need Apache I would suggest you install the php5-cgi package. (This will give you PHP 5.3 in 10.04.)

8128
  • 28,630
  • 27
  • 111
  • 145
  • I actually don't want to upgrade to php 5.3, because it doesn't support Drupal 6 yet. Can I make it with php 5.2 ? – aneuryzm Jan 02 '11 at 08:39
  • @Patrick according to the [drupal website](http://drupal.org/requirements) you can use PHP 5.3 with the latest Drupal 6 releases – 8128 Jan 02 '11 at 08:43
  • 1
    I know but it is an optimistic statement. I work with it and some modules are not properly working. Trust me. – aneuryzm Jan 02 '11 at 09:51