Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

I have a custom PHP installation which I compiled because the packaged version was too old for my project.

I would need to install APC, do I need to recompile PHP to add APC module or is there another way?

share|improve this question

No, you don't. The simplest way to install APC module is to use PECL as described here:

share|improve this answer
Thanks for you answer. However, on the server I have the packaged PHP version installed, next to the compiled PHP version. So, if I use PECL to install APC, how to use PECL to use the compiled PHP version ? – userD Jan 16 '13 at 11:07
Which Linux distro is installed on your server? If it's Ubuntu/Debian, you'll have to compile php5-dev package which provides the files from the PHP5 source needed for compiling additional modules. – hangover Jan 16 '13 at 11:43

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.