1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Which Opcode Cache?

Discussion in 'Server Configuration and Hosting' started by akia, Oct 23, 2011.

  1. akia

    akia Well-Known Member

    What would people recommend I use as a Opcode Cache?
    APC, Xcache or eacclerator?

    I'm currently running my site with FastCgi mainly so that all the sites I host run under the sites users and any files uploaded have the correct file ownership.

    I've been told that as my site is using FastCGI, not all the opcode cache will work, Is this correct?

    Alternatively I could not use FastCgi and run php as the apache user, but how would I then deal with the file upload permissions? I'm not keen on using suPHP as I've been told this will slow my system down even further.
  2. Slavik

    Slavik XenForo Moderator Staff Member

    If your running fastcgi your easiest option to install will be eacclerator. APC can work, though requires a bit more technical knowledge to set up, and xcache is out of the question all together.
  3. Shamil

    Shamil Well-Known Member

    As Slavik said above, however, I would recommend looking into running an opcode cache with Memcache, if you can.
  4. akia

    akia Well-Known Member

    I've been doing a little research into it, and apparently, as the only sites that are hosted on my server are my own, I'm actually better using php as a Apache process, and running them under the apache user, so that I can use any opcode cache.

    So that now begs the question, which is best to use?
  5. akia

    akia Well-Known Member

    I already use Memcache and will continue to do so.
  6. Luke F

    Luke F Well-Known Member

    Having tried most of them, I prefer APC

    (I run php-fpm behind nginx)
  7. Slavik

    Slavik XenForo Moderator Staff Member

    APC ;)
  8. Shamil

    Shamil Well-Known Member

    APC is maintained by the PHP developers, Xcache is slightly, but not significantly faster.
  9. latimer

    latimer Active Member

    I've used both APC and XCache with nginx and php-fpm and both work fine. I didn't see a noticeable difference between the two, so I just use APC since it's supposed to be bundled with PHP 5.4.x at some point in time. Never used eAccelerator but their site has been down for a while now...
    Marcus likes this.

Share This Page