First you’ll want to make sure you have all required packages installed:
yum install php-pear php-devel httpd-devel pcre-devel gcc make
Most tutorials will now say to use PECL to install APC:
[[email protected] ~]# pecl install apc downloading APC-3.1.13.tgz ... Starting to download APC-3.1.13.tgz (171,591 bytes)
But that actually installs the latest version, even if it’s in beta (in this case it is), so we’ll actually manually download and install it.