Installing PHP APC On RHEL/CentOS

Yum up some packages:

yum install php-pear php-devel httpd-devel

Install APC using pear (the pear installer is smarter than the pecl installer):
When the installer asks about APXS, say ‘no’. 

pear install pecl/apc

Tell PHP to load APC:

echo extension=apc.so > /etc/php.d/apc.ini

Restart Apache:

/sbin/service httpd graceful

Speedy PHP: Intermediate Code Caching

I’ve been working on MySQL optimization for a while, and though there’s still more to done on that front, I’ve gotten to the point where the the cumulative query times make up less than half of the page generation time.
So I’m optimizing code when the solution is obvious (and I hope to rope Zach into [...]