wget http://pecl.php.net/get/APC
tar -zxf APC
cd APC-3.0.16phpizewhereis php-configOUTPUT WILL BE LIKE :php-config: /usr/bin/php-config /usr/share/man/man1/php-config.1.gz./configure --enable-apc --enable-apc-mmap --with-apxs --with-php-config=/usr/bin/php-configmakemake installphp -i | grep php.inicp -ar /usr/local/lib/php.ini /usr/local/lib/php.ini.bakvi /usr/local/lib/php.iniAny where after "extension_dir" insertextension=apc.soNOTE :While I tried to install there was an error about pcre, so I installed pcre an pcre-develyum install pcreyum install pcre-develAfter the installation check if apc.so is present under the php extension_dirTo get the extension_dir path usephp -i | grep extension_dirIf its not present copy apc.so to the extension_dir
ERRORmake apc.lo error 1 error make' failedSolution : yum install pcre-develvi /etc/php.d/apc.iniextension=apc.so apc.enabled=1 apc.shm_segments=1 apc.optimization=0 apc.shm_size=1024 apc.ttl=0 apc.user_ttl=7200 apc.num_files_hint=0 apc.mmap_file_mask=/tmp/apc.XXXXXX apc.enable_cli=1 apc.cache_by_default=1 apc.include_once_override=1« Prev:Forcing InnoDB Recovery How to install and configure SVN on cpanel server:Next »