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
$ tar xzvf APC-3.1.3p1.tgz
$ cd APC-3.1.3p1
$ ./configure --enable-apc --enable-mmap
$ make install
After the extension successfully compiles, move the apc.so into your extension directory . Make sure you are copying it to the correct extension directory .
$ cp /usr/local/src/APC-3.1.3p1/modules/apc.so /usr/local/lib/php/extensions/no-debug-non-zts
Enable the extension in php.ini
extension = apc.so
To test that all is well , load a phpinfo page . You should have the APC PHP module displayed: