How to install APC on CentOS 6.2

Various instructions in Internet on the subject did not give any joy, so compiling my own sequence, which did the trick:

yum install php-pear php-devel httpd-devel gcc pcre-devel apc
nano /etc/php.d/apc.ini

Put the following in apc.ini:


; Enable apc extension module
extension=apc.so
apc.enabled=1
apc.shm_segments=1
apc.shm_size=256
apc.stat=0

Then copy apc.php to public_html directory of your website:

cp /usr/share/pear/apc.php /home/username/public_html
service httpd restart

Add new comment

Filtered HTML

  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <pre>
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
To