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?


No, you don't. The simplest way to install APC module is to use PECL as described here: http://php.net/manual/en/apc.installation.php.

  • 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. – Max Kochubey Jan 16 '13 at 11:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.