How to install APC for PHP

19 October 2011 by Rick ~ 2 Comments 810 views

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

Subscribe by E-mail:

« »

2 Comments

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

       

Add a Comment

Use [code] example piece of code [/code] to insert code into your comment.