Installing APC for PHP 5.3.3

I find most of the versions available for APC aren’t compatible with PHP 5.3 .  “make” command returns the following error :-

"make: *** [php_apc.lo] Error 1 
 ERROR: 'make' failed" 

APC has released a version which is compatible and you’ll need to install the PHP extension from source.

 $ cd /usr/local/src 
 $ wget 
 $ tar xzvf APC-3.1.3p1.tgz 
 $ cd APC-3.1.3p1 
 $ phpize 
 $ ./configure --enable-apc --enable-mmap 
 $ make
 $ make install

After the extension successfully compiles,  move the into your extension directory . Make sure you are copying it to the correct extension directory .

$ cp /usr/local/src/APC-3.1.3p1/modules/ /usr/local/lib/php/extensions/no-debug-non-zts

Enable the extension in php.ini

extension =

To test that all is well , load a phpinfo page . You should have the APC PHP module displayed: