The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

mm_create - failed to open semaphore file

Discussion in 'General Discussion' started by handsonhosting, Jul 13, 2009.

  1. handsonhosting

    handsonhosting Well-Known Member

    Joined:
    Feb 17, 2002
    Messages:
    151
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Omaha, NE
    cPanel Access Level:
    Root Administrator
    Hi guys,

    We did a recent compile of the 5.2.10 PHP on a few of our servers using EasyApache on 7/11/2009 and also again today 7/13/2009 however we're getting errors with a few different scripts (wordpress, xcart, zencart) that are displaying errors simlar to this;

    PHP Warning: PHP Startup: mm_create(0, /tmp/session_mm_cgi32007) failed, err mm:core: failed to open semaphore file (File exists) in Unknown on line 0

    The MM module is compiled in EasyApache.

    We did find that the session.save_path is commented out in PHP5 (which has been fine until this 5.2.10 version). We were able to resolve SOME of the scripts by uncommenting that line in the php.ini and setting the path to /tmp

    This was not an issue with 5.2.9, however in 5.2.10 we're generating mm_create errors all over the place.

    Anyone have any ideas or suggestions on this?

    Thanks,
     
    #1 handsonhosting, Jul 13, 2009
    Last edited: Jul 13, 2009
  2. kampret

    kampret Member

    Joined:
    Jun 21, 2007
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    I have the same problems too...
    Compiled of the 5.2.10 generates many errors on many accounts.
    I'm now running EA in purpose to back to php 5.2.9 again.

    I hope there will be an explanation for this soon.
     
  3. kampret

    kampret Member

    Joined:
    Jun 21, 2007
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    I have found this while googling :

    --> RE: [users@httpd] APACHE set up on Linux - Ouch! ap_mm_create


    But when I run ipcs -l on my all servers, they are showing the same values for Semaphore Limits :

    ------ Semaphore Limits --------
    max number of arrays = 128
    max semaphores per array = 250
    max semaphores system wide = 32000
    max ops per semop call = 32
    semaphore max value = 32767



    The strange is : this semaphore issue has only affected to just one box of mine, another boxes is not having this problem.
    So... should I still do increase the semaphore limits to just only one machine which have this semaphore problems?


    FYI : My three boxes have the exact same of softwares and hardwares configuration, even the kernel.

    Any suggestion on this?
     
  4. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    If anyone is experiencing issues with PHP 5.2.10, I recommend the following.

    1. First read jdlightsey's post on PHP 5.2.10 posted at:

    http://forums.cpanel.net/f5/php-5-2-10-a-123289.html#post540537

    2. If that does not resolve the issue for you, please inform our technical analysts of the issue you are experiencing:

    http://tickets.cPanel.net/submit

    Our technical analysts can determine the causes of the issues being experienced and file reports with QA and development if such reports are needed. This puts us in a better position to properly fix any issues being experienced.

    Thank you!
     
  5. SupaDucta

    SupaDucta Active Member

    Joined:
    Oct 6, 2004
    Messages:
    40
    Likes Received:
    0
    Trophy Points:
    6
    It's not cPanel-related, it's 5.2.10 related. And the "fixes" stating session.save_path should be specified to a writeable dir like /tmp, hold no or very little water, as they break memcached as well:

    session.save_handler memcache memcache
    session.save_path tcp://localhost:11211 tcp://localhost:11211

    which was and is working in all versions prior to 5.2.10 flawlessly.

    And no, -with-mm has nothing to do with it, omit or include, ends up the same. I suppose it's another of PHP's b0ffs, the same as the recent 5.2.x (can't remember which, think it was first 5.2.9 drop to stable, or 5.2.8) version that was dropped to stable and released and a day or two later withdrawn as it contained bugs.
     
Loading...

Share This Page