Installing PHP APC On RHEL/CentOS

  1. Yum up some packages:
    yum install php-pear php-devel httpd-devel
  2. 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
  3. Tell PHP to load APC:
    echo extension=apc.so > /etc/php.d/apc.ini
  4. Restart Apache:
    /sbin/service httpd graceful

3 Comments

  1. Comment by Mark on October 3, 2008 9:23 am

    Thanks. Very simple, very clear, very complete directions. Are you sure you are a linux guy? They are going to revoke your group membership privileges if you don’t make these directions either partially incomplete or somewhat arcane.

  2. Comment by Casey Bisson on October 3, 2008 11:08 am

    @Mark:

    Thanks, but don’t worry for me. These directions will become incomplete and misleading as soon as the underlying OS changes.

  3. Comment by Andrzej on November 14, 2008 9:45 am

    Many thanks. I agree with Mark. After seeing so many ridiculously complicated explanations of the above simple process I can only say again - thank you for you help and effort.

Comments RSS TrackBack Identifier URI

Leave a comment

 

User contributed tags for this post:

apc centos (40) - yum apc (15) - php apc centos (11) - rhel install APC (9) - centos apc (8) - centos php-json (8) - centos php apc (7) - yum install apc (6) - install php apc (6) - centos apxs (6) - php apc (6) - شهوت سرا4 (5) - PECL rhel (5) - php apc install (5) - yum install pecl (5) - yum install json php (4) - php-apc centos (4) - pear install APC (4) - installing apc centos (4) - yum install JSON in centos (4) - php json centos (4) - No package httpd-devel available. (4) - php apc rpm (4) - apc php centos (4) - APC rhel5 (3) - apc yum (3) - centos install apc (3) - php apc apxs (3) - install apc rhel (3) - yum php-json (3) - centos download php (3) - centos php json (3) - centos install apxs (3) - php apc centos install (3) - apc rpm (3) - installing pecl apc (3) - php-json centos rpm (3) - apc rhel rpm (3) - install json yum (3) - pecl and rhel (3) - apxs centos 5 (3) - download php for centos 5 (3) - install apc centos 5 (3) - pecl apxs (3) - centos 4 php-json (3) - pear centos (3) - apc RHEL yum (2) - install php-json on RHEL 5 (2) - centos yum php json (2) - apxs php apc centos (2) - how to install apc in centos (2) - php memcache in rhel (2) - centos yum json (2) - RHEL how to install pear (2) - Mac os x php apc (2) - yum install apxs (2) - installing pecl rpm (2) - centos install php apc (2) - yum install php rhel 5 (2) - installing memcache on centos rhel (2) - rhel apc php (2) - Centos yum install PHP apxs (2) - centos yum apc (2) - install php on centos (2) - download php for centos (2) - rhel apc package (2) - install php on centos 4 (2) - apxs download for centos (2) - cracked menbership for ftv.com (2) - pecl apc apxs (2) - centos php memcached (2) - php centos (2) - rhel php apc (2) - apc php mac (2) - rhel 5 pear (2) - centos php (2) - install apxs centos (2) - centos 5 where is apxs (2) - yum install php-apc (2) - php install json yum (2) - CentOS APC package (2) - install APC centos (2) - php pear no centos (2) - PHP for RHEL 5 (2) - RHEL apxs (2) - installing pear on centos (2) - php-json centos 4 (2) - yum install php json centos (2) - centos yum install php (2) - rhel5 php memcache (2) - rhel php source yum install (2) - centos install pear (2) - yum install json (2) - php json centos 5 (2) - apc rhel4 (2) - yum apc centos (2) - yum install pear (2) - rhel php pecl (2) - yum json (2) - php apc rhel (2) - rpm php-json centos (2) - RHEL php (2) - yum install php-json (2) - centos apc yum (2) - yum install php memcache (2) - yum install php json (2) - pecl apc centos (2) - yum install php-memcache (2) - installing json php 5.1.6 (2) - apxs on centos 5 (2) - json php rhel (2) - centos 5 php json (2) - Centos (2) - json php 5.1.6 centos (2) - centos JSON yum (2) - rhel pecl php memcache (2) - install apc php (2) - json rhel (2) - centos install php json (2) - php centos install (1) - install json in 5.1.6 linux (1) - installing Pear and PECL on Fedora 6 (1) - rhel4 php-apc (1) - setting up php in rhel (1) - yum apc instal (1) - download php centos rpm (1) - centos apache apc (1) - how to install pecl os x tiger (1) - centos yum install apc (1) - PHP how to RHEL 5 yum (1) - how to install pecl libraries (1) - php-apc centos rpm (1) - apc pecl install on osx (1) - centos install. apxs (1) - pecl php rhel (1) - rhel pecl php (1) - uninstall php4 rpm RHEL (1) - centos yum install php-json (1) - installing apc rpm (1) - install apc memcache on linux (1) - centos 4 rpm apxs (1) - RHEL 5 install pear php (1) - json centos 4 (1) - php-json,rpm,centos5 (1) - centos install memcache apc (1) - yum install php-memcache fedora (1) - rhel 4 pecl install (1) - rhel 4 apc problems (1) - rpm php-json rhel5 (1) - php memcache on centos (1) -