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
Code language: JavaScript (javascript)

Restart Apache

/etc/init.d/apache2 reload


  1. leo

    so many ways to restart apache
    depends on different machine~
    last time i tried

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

    1. 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

Your email address will not be published. Required fields are marked *