W3 Total Cache support many page cache methods. For VPS or Dedicated server, it’s better to use Opcode than disk. The Alternative PHP Cache will be built into PHP6, so it’s a good to try it now.
“APC is a free, open, and robust framework for caching and optimizing PHP intermediate code.”
On CentOS, you can install it though:
# pecl install apc
Or manually install it
# wget http://pecl.php.net/get/APC-3.1.6.tgz
# tar -xvzf APC-*.tgz
# cd APC-*
# phpize
# ./configure
# make
# make install
I’ve see the following error when to install APC through pecl. To solve the problem, just install pcre-devel package first
# yum install pcre-devel
//Error message
/root/tmp/pear/APC/apc.c:369: error: expected specifier-qualifier-list before 'pcre' /root/tmp/pear/APC/apc.c: In function 'apc_regex_compile_array': /root/tmp/pear/APC/apc.c:430: error: 'apc_regex' has no member named 'preg' /root/tmp/pear/APC/apc.c:430: error: 'apc_regex' has no member named 'preg' /root/tmp/pear/APC/apc.c:431: error: 'apc_regex' has no member named 'nreg' /root/tmp/pear/APC/apc.c:431: error: 'apc_regex' has no member named 'nreg' /root/tmp/pear/APC/apc.c: In function 'apc_regex_match_array':