There were more than a few instructions on how to do this. They were all wrong, at least for my default install of CentOS 5.6.
In a nutshell, here is how I was able to do it:
cd /tmp yum install pcre-devel wget http://pecl.php.net/get/APC-3.1.9.tgz tar -xvf APC-3.1.9.tgz cd APC-3.1.9 phpize whereis php-config ./configure –enable-apc –enable-apc-mmap –with-apxs –with-php config=/path/to/php-config make make install echo "extension=apc.so" >> /etc/php.d/apc.ini echo "apc.slam_defense=0" >> /etc/php.d/apc.ini echo "apc.write_lock=1" >> /etc/php.d/apc.ini service httpd restart
I also make these changes to my httpd.conf file
Timeout 40 KeepAlive On MaxKeepAliveRequests 200 KeepAliveTimeout 2