How to install APC for PHP

Boost your server performance with APC for PHP.

The default settings are usually fine but you might want to look at advanced configuration (here).

Pro Tip: if you have WordPress and W3 Total Cache installed you can setup the cache plugin to work with APC. It will indeed improve your caching πŸ˜‰

Install APC

apt-get install php-apc

Restart Apache

/etc/init.d/apache2 reload

About Rick

Senior Front-end Software Engineer from Barcelona, Haidong Gumdo Instructor (korean martial art of the sword), street photographer, travel lover, TV addict, Boston Red Sox fan, and privacy advocate.
  • so many ways to restart apache
    depends on different machine~
    last time i tried

    /etc/init.d/apache2 restart
    /etc/init.d/httpd restart

    • I’d rather use “reload” instead of “restart”.

      If you use reload and there’s a problem with it, it won’t do it. So all the sites in the server will still be running.

      Thanks for posting leo πŸ˜‰

Leave a Reply

Add <code> Some Code </code> by using this tags.