Results 1 to 7 of 7

Thread: suPHP and eAccelerator?

  1. #1
    Registered Member
    Join Date
    Jun 2008
    Posts
    296

    Default suPHP and eAccelerator?

    Hi,

    We want the security of suPHP with the performance of an opcode cache.

    We've always heard that no opcode caches work with suPHP because opcode caches cache user data and that's not consistent with the way suPHP works.

    However, I have heard that cPanel's implementation of eAccelerator just caches scripts but not user data. In that case, would it still work with suPHP?

    If so, is there any way to test and make sure it's working?

    Thanks,

    Mark

  2. #2
    Registered Member
    Join Date
    Feb 2012
    Posts
    16
    cPanel Access Level

    Root Administrator

    Default Re: suPHP and eAccelerator?

    eAccelerator won't work with SuPHP because SuPHP runs php as a child process under different users. eAccelerator needs all processes to be forked from the same parent to share a memory segment.
    You cannot use an Opcode Cache (such as eAccelerator, Xcache or APC) with suPHP. This may slow down your site little bit.

    You can try using FastCGI with suexec enabled. That won't cause security issues and allow eaccelerator.

  3. #3
    cPanel Staff cPanelMichael's Avatar
    Join Date
    Apr 2011
    Posts
    14,815
    cPanel Access Level

    Root Administrator

    Default Re: suPHP and eAccelerator?

    Hello

    It's important to note that cPanel does not recommend an FCGI configuration for your PHP handler. FCGI requires fine tuning of mod_fcgid to ensure that the server does not become overloaded with idle PHP processes. You may want to consider using DSO with Mod_Ruid2 instead of FastCGI.

    Thank you.
    cPResources: Support Options - Submit a ticket here - Additional Support Options - Forums Search - Mailing Lists - Documentation - Migration Services - Change Logs
    -- cPanelMichael - Migration Specialist, Technical Analyst, cPanel Technical Support

  4. #4
    Registered Member
    Join Date
    Jun 2008
    Posts
    296

    Default Re: suPHP and eAccelerator?

    Hi, according to CloudLinux, Mod_Ruid2 is very weak from a security standpoint. Is that not true?

  5. #5
    Registered Member
    Join Date
    Jun 2008
    Posts
    296

    Default Re: suPHP and eAccelerator?

    Also, Mod_Ruid2 still shows as "EXPERIMENTAL" in EasyApache. Is it production-ready?

  6. #6
    Registered Member
    Join Date
    Jan 2013
    Posts
    16
    cPanel Access Level

    DataCenter Provider

    Default Re: suPHP and eAccelerator?

    I'd recommend to go with DSO if you own all websites on the server otherwise SuPHP and FCGI are better options , if you necesary need Opcode cache then SuPHP is out and you can go with FCGI - don't forget that it needs lots of experience to configure it properly so that it won't overload the server , if you're not experienced enough with it ask a server manager to do it otherwise you're not going to have any stability with FCGI.
    HugeServer.com - in Business since 2008
    █ Enterprise Dedicated Servers
    █ Top Notch DataCenters - Premium Network - Great Customer Service
    Sales@HugeServer.com | 888-842-8570

  7. #7
    Registered Member
    Join Date
    Jun 2008
    Posts
    296

    Default Re: suPHP and eAccelerator?

    Thanks to all for their input.

    I'm wondering how badly we need opcode caching. We do WordPress hosting with UNIXy Varnish, and with W3 Total Cache preconfigured on every site. Given that configuration, I am wondering if opcode caching would help much at all. With those levels of caching, the vast, vast majority of page loads are cached items that shouldn't even run PHP. Does that make sense?

    I've just done some benchmarks, and there was no nominal hit when switching to suPHP in about 90 percent of cases.

    We can also install memcached (an object cache that is compatible with suPHP) to give our users one additional caching option.

    Thanks,

    Mark
    Last edited by markb14391; 12-30-2013 at 12:57 PM. Reason: Clarity

Similar Threads

  1. Replies: 1
    Last Post: 08-06-2013, 04:07 PM
  2. Replies: 1
    Last Post: 07-02-2013, 02:51 PM
  3. Replies: 0
    Last Post: 05-21-2010, 03:56 PM
  4. Trying to figure out hot to use SuPHP and eaccelerator
    By spearhead in forum General Discussion
    Replies: 4
    Last Post: 01-24-2008, 02:30 PM
bargain