Skip directly to content

Installing PHP APC for Performance on Fedora/CentOS using Yum in 5 Steps

on Sat, 03/06/2010 - 07:29
  1. Install basic packages:
    yum install php-pear php-devel httpd-devel
  2. Install APC using pear. This is important: When the installer asks about APXS, say ‘no’. 
    pear install pecl/apc
    
  3. Tell PHP to load APC:
    echo extension=apc.so > /etc/php.d/apc.ini
  4. Restart Apache:
    service httpd graceful
  5. Check if APC is correctly installed
    php -i | grep apc