Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Just ordered a new Debian server and for some reason can not install php5-suhosin and php5-apc. Any ideas?

apt-get install php5-suhosin
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package php5-suhosin is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'php5-suhosin' has no installation candidate


apt-get install php5-apc
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package php5-apc

php -v
PHP 5.4.4-14+deb7u4 (cli) (built: Aug 23 2013 14:37:41)
share|improve this question
up vote 2 down vote accepted

APC and suhosin are not available in stable repository.

you can install it from dotdeb repo, by adding following to your sources.list

deb squeeze all
deb-src squeeze all
deb squeeze-php54 all
deb-src squeeze-php54 all

also, you can install apc for php < 5.5 via PECL:

apt-get install php5-dev gcc make
pecl install apc
share|improve this answer
A very quick search shows it's not available for Wheezy, which his question indicates he's using. – Michael Hampton Sep 8 '13 at 13:16

Suhosin hasn't been added to Wheezy's repositories (see: but APC is there, it's just called php-apc. (see:

share|improve this answer

Suhosin have their own repository which surely will be the most up to date. The preferred way of installing is to add that to your /apt/sources.list.d even if you have a debian version that provides the package.

See their documentation:

share|improve this answer

Your Answer


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.