mm_create - failed to open semaphore file


Well-Known Member
Feb 17, 2002
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?

Last edited:


Jun 21, 2007
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.


Jun 21, 2007
I have found this while googling :

--> RE: [[email protected]] 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?


Technical Product Specialist
Nov 29, 2006
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:

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

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!


Active Member
Oct 6, 2004
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.