Results 1 to 3 of 3

Thread: php-fcgid+eaccelerator+custom php.ini+apache2-mpm-worker= segfault?

  1. #1
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Feb 2003
    Location
    Gothenburg, Sweden
    Posts
    329
    cPanel/WHM Access Level

    DataCenter Provider

    Default php-fcgid+eaccelerator+custom php.ini+apache2-mpm-worker= segfault?

    Hey guys,

    Running fcgid here with eaccelerator turned on as default php handler. It's running perfectly so far but we've found a minor bug in the case when a customer wants to manipulate php settings.
    Customer creates (or we do for him) a wrapper file and gets a copy of our php.ini which he places in the same directory. He modifies his .htaccess file to make use of the wrapper file when calling .php files.

    All good there - but IF the php.ini has the eaccelerator extension in it, we get a segfault and it spits our 3 core files in the directory where the wrapper file resides. I'm "guessing" from what I've googled that I'm trying to run PHP threaded because of mpm-worker but Eaccelerator doesn't support threading and therefor segfaults.

    Only solution to use prefork instead? Loaded it up on a testserver and it seems to do well and no segfaults when running php files with custom php.ini. Also read that XCache is thread safe and could be used instead of eaccelerator ( maybe a choice for easyapache? ).

    The custom php.ini probably has nothing to do with it, weird thing is that I can't find the core files when running without custom php.ini, they aren't among the user's files nor where the php5 binary resides.

    Discuss

    twitter: oderland_david

  2. #2
    Member
    Join Date
    Jun 2006
    Posts
    79

    Default Re: php-fcgid+eaccelerator+custom php.ini+apache2-mpm-worker= segfault?

    If you're using mod_fcgid on a shared server, totally forget the cache, neither eaccelerator, xcache and APC are good for that, you'll get out of memory very quickly. If the server is a dedicated server for 1 to 5 sites, then, yes, use cache, but APC only, and don't add neither Zend or Ioncube.

    My tests on a shared server with mod_fcgid with and without an opcode cache, the velocity is almost the same that if i had the cache. With cache, we get out of memory very quickly.

  3. #3
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    7,611
    cPanel/WHM Access Level

    Root Administrator

    Default Re: php-fcgid+eaccelerator+custom php.ini+apache2-mpm-worker= segfault?

    Hello xanubi,

    Could you please state the RAM on the machine you used for testing purposes so users have an idea on how much memory it had available when the out of memory issues occurred?

    Thanks.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Technical Analyst III, Forums Specialist, cPanel Tech Support

    Submit a ticket | Check an existing ticket

Similar Threads

  1. Fastcgi (Fcgid) and php.ini per user
    By speckados in forum cPanel & WHM Discussions
    Replies: 22
    Last Post: 11-09-2012, 06:41 PM
  2. Replies: 8
    Last Post: 04-30-2012, 12:30 AM
  3. mpm-worker forces --disable-cgi PHP flag
    By pricejn2 in forum cPanel & WHM Discussions
    Replies: 0
    Last Post: 11-13-2010, 01:28 PM
  4. custom php.ini with php handler set as cgi
    By johny_gjx in forum cPanel & WHM Discussions
    Replies: 0
    Last Post: 02-16-2009, 03:54 AM
  5. EasyApache3, Apache2, and the fcgid-script stuff for PHP
    By p.kiula in forum cPanel & WHM Discussions
    Replies: 0
    Last Post: 09-15-2007, 09:51 PM