Installing APC Manually
Pecl was giving me some problems so I needed to install APC for PHP manually. Pecl was compaining that apxs was not found during the config process, so I had to install it myself so that I could pass it the proper path.
wget http://pecl.php.net/get/APC-3.0.19.tgz
tar -xzf APC-3.0.19.tgz
cd APC*
phpize
./configure --enable-apc --enable-apc-mmap --with-apxs=/usr/local/apache2/bin/apxs
make
make install
Make sure you actually use your correct path to apxs. If apxs isn’t installed then you need to install the httpd-devel package, which usually works just fine through yum install httpd-devel
Then, just add the so path to your php ini and restart.
vi /usr/local/lib/php.ini
extension=apc.so
Then restart your server and should be done! Try running phpinfo(); to see if APC reports as installed and enabled.
Possibly related posts: